Class jls.net.http.HttpExchange

This class encapsulates a HTTP request received and a response to be generated in one exchange. It provides methods for examining the request from the client, and for building and sending the response.
Defined in: HttpExchange.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
 
Gets the context.
 
Gets the request header.
 
Gets the request method.
 
Gets the request URI.
 
Gets the response code.
 
Gets the response header.
 
Sets the request body selection handler.
 
Sets the response body selection handler.
Class Detail
jls.net.http.HttpExchange()
Method Detail
{jls.net.http.HttpContext} getHttpContext()
Gets the context.
Returns:
{jls.net.http.HttpContext} the context.

{jls.net.http.HttpRequestHeader} getRequestHeaders()
Gets the request header.
Returns:
{jls.net.http.HttpRequestHeader} the request header.

{String} getRequestMethod()
Gets the request method.
Returns:
{String} the request method.

{String} getRequestURI()
Gets the request URI.
Returns:
{String} the request URI.

{Number} getResponseCode()
Gets the response code.
Returns:
{Number} the response code.

{jls.net.http.HttpResponseHeader} getResponseHeaders()
Gets the response header.
Returns:
{jls.net.http.HttpResponseHeader} the response header.

setRequestBodySelectionHandler(sh)
Sets the request body selection handler.
Parameters:
{jls.net.SelectionHandler} sh
The selection handler to use for the request body.

setResponseBodySelectionHandler(sh)
Sets the response body selection handler.
Parameters:
{jls.net.SelectionHandler} sh
The selection handler to use for the response body.

Documentation generated by JsDoc Toolkit 2.3.2 on Sat Jan 08 2011 02:00:14 GMT+0100 (CET)