public interface HttpInboundConnection
Modifier and Type | Method and Description |
---|---|
void |
finish(java.lang.Exception e)
When a container is finished with the connection, this API signals that
and allows the dispatcher to complete any remaining work for the connection.
|
HttpDateFormat |
getDateFormatter()
Access the HTTP date format utility class.
|
EncodingUtils |
getEncodingUtils()
Access the string encoding utility class.
|
java.lang.String |
getLocalHostAddress()
Access the local/server side address of the connection.
|
java.lang.String |
getLocalHostAlias() |
java.lang.String |
getLocalHostName(boolean canonical)
Access the local/server side address of the connection.
|
int |
getLocalPort()
Access the local/server side port of the connection.
|
java.lang.String |
getRemoteHostAddress()
Access the remote/client side address of the connection.
|
java.lang.String |
getRemoteHostName(boolean canonical)
Access the remote/client side address of the connection.
|
int |
getRemotePort()
Access the remote/client side port of the connection.
|
HttpRequest |
getRequest()
Access the request message object for this connection.
|
java.lang.String |
getRequestedHost()
Get the requested host based on the Host and/or private headers.
|
int |
getRequestedPort()
Get the requested port based on the Host and/or private headers.
|
HttpResponse |
getResponse()
Access the response message object for this connection.
|
SSLContext |
getSSLContext()
Access any SSL information, if this connection was secure.
|
java.lang.String |
getTrustedHeader(java.lang.String headerKey)
Return the value of the specified trusted header if trusted headers
are enabled for this connection.
|
boolean |
useTrustedHeaders()
This will indicate whether or not private headers should be trusted on this connection.
|
java.lang.String getLocalHostName(boolean canonical)
canonical
- if true, attempts to find fully qualified domain nameInetAddress.getHostName()
,
InetAddress.getCanonicalHostName()
java.lang.String getLocalHostAddress()
int getLocalPort()
java.lang.String getLocalHostAlias()
java.lang.String getRemoteHostName(boolean canonical)
canonical
- if true, attempts to find fully qualified domain nameInetAddress.getHostName()
,
InetAddress.getCanonicalHostName()
java.lang.String getRemoteHostAddress()
int getRemotePort()
HttpRequest getRequest()
HttpResponse getResponse()
SSLContext getSSLContext()
EncodingUtils getEncodingUtils()
HttpDateFormat getDateFormatter()
void finish(java.lang.Exception e)
e
- boolean useTrustedHeaders()
java.lang.String getTrustedHeader(java.lang.String headerKey)
headerKey
- Trusted header to findjava.lang.String getRequestedHost()
per Servlet spec, this is similar to getServerName: Returns the host name of the server to which the request was sent. It is the value of the part before ":" in the Host header value, if any, or the resolved server name, or the server IP address.
int getRequestedPort()