com.sibvisions.rad.server.http
Class HttpContext

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

public class HttpContext
extends Object

The ServerContextImpl is an internal ServerContext implementation.


Constructor Summary
HttpContext(Object pRequest, Object pResponse)
          Creates a new instance of HttpContext.
 
Method Summary
static HttpContext getCurrentInstance()
          Gets the current instance of HttpContext.
 Object getRequest()
          Gets the current request.
 Object getResponse()
          Gets the current esponse.
 boolean isReleased()
          Gets the release state of this ServerContext.
 void release()
          Release any resources associated with this SessionContext 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(Object pRequest,
                   Object pResponse)
Creates a new instance of HttpContext.

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

getRequest

public Object getRequest()
Gets the current request.

Returns:
the request

getResponse

public 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 SessionContext instance.

See Also:
isReleased()

isReleased

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

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


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.