|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HttpInboundConnection
Representation of an inbound HTTP connection that the dispatcher will provide to containers.
Method Summary | |
---|---|
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. |
Method Detail |
---|
java.lang.String getLocalHostName(boolean canonical)
canonical
- if true, attempts to find fully qualified domain name
InetAddress.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 name
InetAddress.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 find
java.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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |