Package ch.rswk.meta.engine
Record Class HttpService.HttpServiceHeaderConfig
java.lang.Object
java.lang.Record
ch.rswk.meta.engine.HttpService.HttpServiceHeaderConfig
- Record Components:
csp-HttpService.CSP_HEADER_DEFAULT_FRAME_ANCESTORSis appended, if not already part of this
- Enclosing class:
HttpService
public static record HttpService.HttpServiceHeaderConfig(@Nullable HttpService.HttpServiceHeaderCorsConfig cors, @Nullable String csp, @Nullable List<HttpService.HttpServiceHeaderPatternConfig> patterns)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable HttpService.HttpServiceHeaderCorsConfigThe field for thecorsrecord component.private final @Nullable StringThe field for thecsprecord component.private final @Nullable List<HttpService.HttpServiceHeaderPatternConfig> The field for thepatternsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionHttpServiceHeaderConfig(@Nullable HttpService.HttpServiceHeaderCorsConfig cors, @Nullable String csp, @Nullable List<HttpService.HttpServiceHeaderPatternConfig> patterns) Creates an instance of aHttpServiceHeaderConfigrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable HttpService.HttpServiceHeaderCorsConfigcors()Returns the value of thecorsrecord component.@Nullable Stringcsp()Returns the value of thecsprecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable List<HttpService.HttpServiceHeaderPatternConfig> patterns()Returns the value of thepatternsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
cors
The field for thecorsrecord component. -
csp
-
patterns
The field for thepatternsrecord component.
-
-
Constructor Details
-
HttpServiceHeaderConfig
public HttpServiceHeaderConfig(@Nullable HttpService.HttpServiceHeaderCorsConfig cors, @Nullable String csp, @Nullable List<HttpService.HttpServiceHeaderPatternConfig> patterns) Creates an instance of aHttpServiceHeaderConfigrecord class.- Parameters:
cors- the value for thecorsrecord componentcsp- the value for thecsprecord componentpatterns- the value for thepatternsrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
cors
Returns the value of thecorsrecord component.- Returns:
- the value of the
corsrecord component
-
csp
-
patterns
Returns the value of thepatternsrecord component.- Returns:
- the value of the
patternsrecord component
-