public interface ProxyProtocolData
Proxy protocol data parsed by
ProxyProtocolHandler
.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Protocol family.static enum
Protocol type. -
Method Summary
Modifier and TypeMethodDescriptionDestination address that is either IP4 or IP46 depending onfamily()
.int
destPort()
Destination port number.family()
Family from protocol header.protocol()
Protocol from protocol header.Source address that is either IP4 or IP6 depending onfamily()
.int
Source port number.
-
Method Details
-
family
ProxyProtocolData.Family family()Family from protocol header.- Returns:
- family
-
protocol
ProxyProtocolData.Protocol protocol()Protocol from protocol header.- Returns:
- protocol
-
sourceAddress
String sourceAddress()Source address that is either IP4 or IP6 depending onfamily()
.- Returns:
- source address or
""
if not provided
-
destAddress
String destAddress()Destination address that is either IP4 or IP46 depending onfamily()
.- Returns:
- source address or (@code ""} if not provided
-
sourcePort
int sourcePort()Source port number.- Returns:
- source port.
-
destPort
int destPort()Destination port number.- Returns:
- port number.
-