abstract
void
|
close()
Ends this exchange by doing the following in sequence:
- close the request InputStream, if not already closed
- close the response OutputStream, if not already closed.
|
abstract
Object
|
getAttribute(String name)
Filter modules may store arbitrary objects with HttpExchange
instances as an out-of-band communication mechanism.
|
abstract
HttpContext
|
getHttpContext()
Get the HttpContext for this exchange
|
abstract
InetSocketAddress
|
getLocalAddress()
Returns the local address on which the request was received
|
abstract
HttpPrincipal
|
getPrincipal()
If an authenticator is set on the HttpContext that owns this exchange,
then this method will return the HttpPrincipal that represents
the authenticated user for this HttpExchange.
|
abstract
String
|
getProtocol()
Returns the protocol string from the request in the form
protocol/majorVersion.minorVersion.
|
abstract
InetSocketAddress
|
getRemoteAddress()
Returns the address of the remote entity invoking this request
|
abstract
InputStream
|
getRequestBody()
returns a stream from which the request body can be read.
|
abstract
Headers
|
getRequestHeaders()
Returns an immutable Map containing the HTTP headers that were
included with this request.
|
abstract
String
|
getRequestMethod()
Get the request method
|
abstract
URI
|
getRequestURI()
Get the request URI
|
abstract
OutputStream
|
getResponseBody()
returns a stream to which the response body must be
written.
|
abstract
int
|
getResponseCode()
Returns the response code, if it has already been set
|
abstract
Headers
|
getResponseHeaders()
Returns a mutable Map into which the HTTP response headers can be stored
and which will be transmitted as part of this response.
|
abstract
void
|
sendResponseHeaders(int rCode, long responseLength)
Starts sending the response back to the client using the current set of response headers
and the numeric response code as specified in this method.
|
abstract
void
|
setAttribute(String name, Object value)
Filter modules may store arbitrary objects with HttpExchange
instances as an out-of-band communication mechanism.
|
abstract
void
|
setStreams(InputStream i, OutputStream o)
|