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_ANCESTORS
is 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.HttpServiceHeaderCorsConfig
The field for thecors
record component.private final @Nullable String
The field for thecsp
record component.private final @Nullable List
<HttpService.HttpServiceHeaderPatternConfig> The field for thepatterns
record component. -
Constructor Summary
ConstructorsConstructorDescriptionHttpServiceHeaderConfig
(@Nullable HttpService.HttpServiceHeaderCorsConfig cors, @Nullable String csp, @Nullable List<HttpService.HttpServiceHeaderPatternConfig> patterns) Creates an instance of aHttpServiceHeaderConfig
record class. -
Method Summary
Modifier and TypeMethodDescription@Nullable HttpService.HttpServiceHeaderCorsConfig
cors()
Returns the value of thecors
record component.@Nullable String
csp()
Returns the value of thecsp
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@Nullable List
<HttpService.HttpServiceHeaderPatternConfig> patterns()
Returns the value of thepatterns
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
cors
The field for thecors
record component. -
csp
-
patterns
The field for thepatterns
record component.
-
-
Constructor Details
-
HttpServiceHeaderConfig
public HttpServiceHeaderConfig(@Nullable HttpService.HttpServiceHeaderCorsConfig cors, @Nullable String csp, @Nullable List<HttpService.HttpServiceHeaderPatternConfig> patterns) Creates an instance of aHttpServiceHeaderConfig
record class.- Parameters:
cors
- the value for thecors
record componentcsp
- the value for thecsp
record componentpatterns
- the value for thepatterns
record 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 thecors
record component.- Returns:
- the value of the
cors
record component
-
csp
-
patterns
Returns the value of thepatterns
record component.- Returns:
- the value of the
patterns
record component
-