|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.rad.server.ServerContext
public abstract class ServerContext
A ServerContext
contains all of the per-request state information related to the processing
of a single server call. It is passed to, and potentially modified by, each phase of the request processing
lifecycle.
A ServerContext instance remains active until its release() method is called.
While a ServerContext instance is active, it must not be referenced from any thread other than the one
upon which the server executing this application utilizes for the processing of this call.
ServerContext
Constructor Summary | |
---|---|
ServerContext()
|
Method Summary | |
---|---|
protected abstract void |
destroy()
Destroyes any resources associated with this ServerContext instance. |
abstract ICallHandler |
getCallHandler()
Gets the ICallHandler for the current context. |
static ServerContext |
getCurrentInstance()
Gets the current instance of ServerContext . |
static ISession |
getCurrentSession()
Gets the current session. |
abstract java.lang.String |
getServerIdentifier()
Gets the identifier of the server that started this context. |
abstract ISession |
getSession()
Gets the session instance if available. |
abstract java.lang.String |
getSystemIdentifier()
Gets the system identifier. |
boolean |
isReleased()
Gets the release state of this ServerContext . |
void |
release()
Release any resources associated with this ServerContext instance. |
protected void |
setInstance(ServerContext 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 |
---|
public ServerContext()
Method Detail |
---|
protected abstract void destroy()
public abstract ISession getSession()
null
if session is not availablepublic abstract java.lang.String getSystemIdentifier()
public abstract java.lang.String getServerIdentifier()
public abstract ICallHandler getCallHandler()
ICallHandler
for the current context. The handler is session
independent.
null
if no current session is availablepublic static ServerContext getCurrentInstance()
ServerContext
.
public static ISession getCurrentSession()
protected void setInstance(ServerContext pContext)
pContext
- the context instancepublic final void release()
ServerContext
instance.
isReleased()
public boolean isReleased()
ServerContext
.
true
if there is no current instance of ServerContext
(means
that the ServerContext
is released); otherwise false
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |