Method Summary |
|
public String | getHostDomain() Returns the host domain name. |
public int | getHostPort() Returns the host port. |
abstract public ReadableByteChannel | getRequestChannel() Returns the request entity channel if it exists. |
public Representation | getRequestEntity() Returns the request entity if available. |
abstract public InputStream | getRequestStream() Returns the request entity stream if it exists. |
abstract public WritableByteChannel | getResponseChannel() Returns the response channel if it exists. |
abstract public OutputStream | getResponseStream() Returns the response stream if it exists. |
protected void | readRequestHead(InputStream headStream) Reads the HTTP request head (request line and headers). |
public void | sendResponse(Response response) Sends the response back to the client. |
public void | writeResponseBody(Representation entity) Effectively writes the response body. |
public void | writeResponseHead(Response response) Writes the response status line and headers. |
protected void | writeResponseHead(OutputStream headStream) Writes the response head to the given output stream. |