Class jls.net.http.HttpURLConnection

This class represents an URL connection over HTTP.
Defined in: HttpURLConnection.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
 
Connects.
 
Disconnects.
 
Connects this socket to the server.
 
Returns the response body selection handler.
 
Returns the response header.
 
This function is called when the response body is available, can be overrided.
 
This function is called when the response header is available, can be overrided.
 
send()
Sends.
 
Sets the requests method.
 
setRequestProperty(key, value)
Sets a requests property.
 
Sets the response body selection handler.
Class Detail
jls.net.http.HttpURLConnection()
Method Detail
connect()
Connects.

disconnect()
Disconnects.

{Number} getContentLength()
Connects this socket to the server.
Returns:
{Number} The response header.

{jls.net.SelectionHandler} getResponseBodySelectionHandler()
Returns the response body selection handler.
Returns:
{jls.net.SelectionHandler} The response body selection handler.

{jls.net.http.HttpResponseHeader} getResponseHeader()
Returns the response header.
Returns:
{jls.net.http.HttpResponseHeader} The response header.

onResponseBody()
This function is called when the response body is available, can be overrided.

onResponseHeader()
This function is called when the response header is available, can be overrided.

send()
Sends.

setRequestMethod(value)
Sets the requests method.
Parameters:
{String} value
The requests method.

setRequestProperty(key, value)
Sets a requests property.
Parameters:
{String} key
The property key.
{String} value
The property value.

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

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