Record Class ForwardedRequestHeaders
java.lang.Object
java.lang.Record
org.springframework.boot.web.server.ForwardedRequestHeaders
- Record Components:
naming- header namingusePrefix- if the 'prefix' forward header should be used.
public record ForwardedRequestHeaders(ForwardedRequestHeaders.Naming naming, boolean usePrefix)
extends Record
Configuration for forwarded request headers.
- Since:
- 4.2.0
- Author:
- Brian Clozel, Phillip Webb
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumNaming for forwarded headers. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic ForwardedRequestHeadersAForwardedRequestHeadersinstance usingForwardedRequestHeaders.Naming.X_FORWARDEDandusePrefixoffalse. -
Constructor Summary
ConstructorsConstructorDescriptionForwardedRequestHeaders(ForwardedRequestHeaders.Naming naming, boolean usePrefix) Creates an instance of aForwardedRequestHeadersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.naming()Returns the value of thenamingrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theusePrefixrecord component.
-
Field Details
-
X_FORWARDED_WITHOUT_PREFIX
AForwardedRequestHeadersinstance usingForwardedRequestHeaders.Naming.X_FORWARDEDandusePrefixoffalse.
-
-
Constructor Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
naming
-
usePrefix
-