com.sibvisions.rad.server.http
Class HttpContext

java.lang.Object
  extended by com.sibvisions.rad.server.http.HttpContext

public class HttpContext
extends java.lang.Object

The HttpContext is simple context for accessing request and response objects.


Constructor Summary
HttpContext(java.lang.Object pRequest, java.lang.Object pResponse)
          Creates a new instance of HttpContext.
 
Method Summary
static HttpContext getCurrentInstance()
          Gets the current instance of HttpContext.
 java.lang.Thread getInitialThread()
          The initial thread at constructor time.
 java.lang.Object getRequest()
          Gets the current request.
 java.lang.Object getResponse()
          Gets the current esponse.
 boolean isReleased()
          Gets the release state of this HttpContext.
 void release()
          Release any resources associated with this HttpContext instance.
protected  void setInstance(HttpContext pContext)
          Sets the current context instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpContext

public HttpContext(java.lang.Object pRequest,
                   java.lang.Object pResponse)
Creates a new instance of HttpContext.

Parameters:
pRequest - the servlet request
pResponse - the servlet response
Method Detail

getRequest

public java.lang.Object getRequest()
Gets the current request.

Returns:
the request

getResponse

public java.lang.Object getResponse()
Gets the current esponse.

Returns:
the response

getCurrentInstance

public static HttpContext getCurrentInstance()
Gets the current instance of HttpContext.

Returns:
the current instance

setInstance

protected void setInstance(HttpContext pContext)
Sets the current context instance.

Parameters:
pContext - the context instance

release

public final void release()
Release any resources associated with this HttpContext instance.

See Also:
isReleased()

isReleased

public boolean isReleased()
Gets the release state of this HttpContext.

Returns:
true if there is no current instance of HttpContext (means that the HttpContext is released); otherwise false

getInitialThread

public java.lang.Thread getInitialThread()
The initial thread at constructor time.

Returns:
the initial thread


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.