Record Class RemoteIp.Header
java.lang.Object
java.lang.Record
org.springframework.boot.tomcat.RemoteIp.Header
- Record Components:
host- name of the HTTP header from which the remote host is extracted ornullto keep defaultport- name of the HTTP header used to override the original port value ornullto keep defaultremoteIp- name of the HTTP header from which the remote IP is extracted ornullto keep defaultprotocol- name of the HTTP header that holds the incoming protocol ornullto keep defaultprotocolHttpsValue- value of the protocol header indicating whether the incoming request uses SSL ornullto keep default
- Enclosing class:
RemoteIp
-
Constructor Summary
ConstructorsConstructorDescriptionHeader(@Nullable String host, @Nullable String port, @Nullable String remoteIp, @Nullable String protocol) Header(@Nullable String host, @Nullable String port, @Nullable String remoteIp, @Nullable String protocol, @Nullable String protocolHttpsValue) Creates an instance of aHeaderrecord 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.host()Returns the value of thehostrecord component.port()Returns the value of theportrecord component.protocol()Returns the value of theprotocolrecord component.Returns the value of theprotocolHttpsValuerecord component.remoteIp()Returns the value of theremoteIprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Header
-
Header
public Header(@Nullable String host, @Nullable String port, @Nullable String remoteIp, @Nullable String protocol, @Nullable String protocolHttpsValue) Creates an instance of aHeaderrecord class.- Parameters:
host- the value for thehostrecord componentport- the value for theportrecord componentremoteIp- the value for theremoteIprecord componentprotocol- the value for theprotocolrecord componentprotocolHttpsValue- the value for theprotocolHttpsValuerecord 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). -
host
-
port
-
remoteIp
-
protocol
-
protocolHttpsValue
Returns the value of theprotocolHttpsValuerecord component.- Returns:
- the value of the
protocolHttpsValuerecord component
-