public interface ConnectionInformation
Modifier and Type | Method and Description |
---|---|
SocketAddress |
connectionHostAddress()
Returns the address of the host which received the request, possibly
null in case of Unix Domain Sockets. |
SocketAddress |
connectionRemoteAddress()
Returns the address of the client that initiated the request, possibly
null in case of Unix Domain Sockets. |
String |
connectionScheme()
Returns the current protocol scheme.
|
SocketAddress |
hostAddress()
Returns the address of the host which received the request, possibly
null in case of Unix Domain Sockets. |
String |
hostName()
Returns the host name derived from the
Host /X-Forwarded-Host /Forwarded header
associated with this request. |
int |
hostPort()
Returns the host port derived from the
Host /X-Forwarded-* /Forwarded header
associated with this request. |
SocketAddress |
remoteAddress()
Returns the address of the client that initiated the request, possibly
null in case of Unix Domain Sockets. |
String |
scheme()
Returns the current protocol scheme.
|
@Nullable SocketAddress hostAddress()
null
in case of Unix Domain Sockets.
The returned address is the merged information from all proxies.@Nullable SocketAddress connectionHostAddress()
null
in case of Unix Domain Sockets.@Nullable SocketAddress remoteAddress()
null
in case of Unix Domain Sockets.
The returned address is the merged information from all proxies.@Nullable SocketAddress connectionRemoteAddress()
null
in case of Unix Domain Sockets.String scheme()
String connectionScheme()
String hostName()
Host
/X-Forwarded-Host
/Forwarded
header
associated with this request.Host
/X-Forwarded-Host
/Forwarded
header
associated with this request.int hostPort()
Host
/X-Forwarded-*
/Forwarded
header
associated with this request.Host
/X-Forwarded-*
/Forwarded
header
associated with this request.