Top Description Methods
reactor.netty.http.server

public Interface ConnectionInformation

Known Direct Subinterfaces
reactor.netty.http.server.HttpServerInfos
Imports
reactor.util.annotation.Nullable, java.net.SocketAddress

Resolve information about the connection from which an http request is received.
Since
1.0.26

Method Summary

Modifier and TypeMethod and Description
public SocketAddress

Returns:

the address of the host which received the request
connectionHostAddress
()

Returns the address of the host which received the request, possibly null in case of Unix Domain Sockets.

public SocketAddress

Returns:

the address of the client that initiated the request
connectionRemoteAddress
()

Returns the address of the client that initiated the request, possibly null in case of Unix Domain Sockets.

public String

Returns:

the protocol scheme
connectionScheme
()

Returns the current protocol scheme.

public SocketAddress

Returns:

the address merged from all proxies of the host which received the request
hostAddress
()

Returns the address of the host which received the request, possibly null in case of Unix Domain Sockets.

public String

Returns:

the host name derived from the Host/X-Forwarded-Host/Forwarded header associated with this request.
hostName
()

Returns the host name derived from the Host/X-Forwarded-Host/Forwarded header associated with this request.

public int

Returns:

the host port derived from the Host/X-Forwarded-*/Forwarded header associated with this request.
hostPort
()

Returns the host port derived from the Host/X-Forwarded-*/Forwarded header associated with this request.

public SocketAddress

Returns:

the address merged from all proxies of the client that initiated the request
remoteAddress
()

Returns the address of the client that initiated the request, possibly null in case of Unix Domain Sockets.

public String

Returns:

the protocol scheme merged from all proxies
scheme
()

Returns the current protocol scheme.

Method Detail

connectionHostAddressback to summary
public SocketAddress connectionHostAddress()

Returns the address of the host which received the request, possibly null in case of Unix Domain Sockets.

Returns:SocketAddress

the address of the host which received the request

Annotations
@Nullable
connectionRemoteAddressback to summary
public SocketAddress connectionRemoteAddress()

Returns the address of the client that initiated the request, possibly null in case of Unix Domain Sockets.

Returns:SocketAddress

the address of the client that initiated the request

Annotations
@Nullable
connectionSchemeback to summary
public String connectionScheme()

Returns the current protocol scheme.

Returns:String

the protocol scheme

hostAddressback to summary
public SocketAddress hostAddress()

Returns the address of the host which received the request, possibly null in case of Unix Domain Sockets. The returned address is the merged information from all proxies.

Returns:SocketAddress

the address merged from all proxies of the host which received the request

Annotations
@Nullable
hostNameback to summary
public String hostName()

Returns the host name derived from the Host/X-Forwarded-Host/Forwarded header associated with this request.

Returns:String

the host name derived from the Host/X-Forwarded-Host/Forwarded header associated with this request.

Since
1.0.29
hostPortback to summary
public int hostPort()

Returns the host port derived from the Host/X-Forwarded-*/Forwarded header associated with this request.

Returns:int

the host port derived from the Host/X-Forwarded-*/Forwarded header associated with this request.

Since
1.0.29
remoteAddressback to summary
public SocketAddress remoteAddress()

Returns the address of the client that initiated the request, possibly null in case of Unix Domain Sockets. The returned address is the merged information from all proxies.

Returns:SocketAddress

the address merged from all proxies of the client that initiated the request

Annotations
@Nullable
schemeback to summary
public String scheme()

Returns the current protocol scheme. The returned address is the merged information from all proxies.

Returns:String

the protocol scheme merged from all proxies