Record Class RemoteIp
java.lang.Object
java.lang.Record
org.springframework.boot.tomcat.RemoteIp
- Record Components:
header- settings for the header ornullto keep defaultsproxies- setting for the proxies ornullto keep defaultsusage- when the configuration should be used
public record RemoteIp(@Nullable RemoteIp.Header header, @Nullable RemoteIp.Proxies proxies, RemoteIp.Usage usage)
extends Record
Settings for Tomcat's
remote IPs.- Since:
- 4.2.0
- Author:
- Phillip Webb
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRemote IP header settings.static final recordRemote IP proxy settings.static enum -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRemoteIp(@Nullable RemoteIp.Header header, @Nullable RemoteIp.Proxies proxies) RemoteIp(@Nullable RemoteIp.Header header, @Nullable RemoteIp.Proxies proxies, RemoteIp.Usage usage) Creates an instance of aRemoteIprecord 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.header()Returns the value of theheaderrecord component.proxies()Returns the value of theproxiesrecord component.final StringtoString()Returns a string representation of this record class.usage()Returns the value of theusagerecord component.
-
Field Details
-
DEFAULTS
UseRemoteIpValvedefaults.
-
-
Constructor Details
-
RemoteIp
public RemoteIp(@Nullable RemoteIp.Header header, @Nullable RemoteIp.Proxies proxies, RemoteIp.Usage usage) Creates an instance of aRemoteIprecord class. -
RemoteIp
-
-
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). -
header
-
proxies
-
usage
-