com.sibvisions.rad.server
Class AbstractServerContext

java.lang.Object
  extended by javax.rad.server.ServerContext
      extended by com.sibvisions.rad.server.AbstractServerContext
Direct Known Subclasses:
ServerContextImpl

public abstract class AbstractServerContext
extends ServerContext

The AbstractServerContext is a general ServerContext implementation.


Method Summary
protected  void destroy()
          Destroyes any resources associated with this ServerContext instance.
 ICallHandler getCallHandler()
          Gets the ICallHandler for the current context.
 IServer getServer()
          Gets the server.
 String getServerIdentifier()
          Gets the identifier of the server that started this context.
 ISession getSession()
          Gets the session instance if available.
 String getSystemIdentifier()
          Gets the system identifier.
protected  void setSession(ISession pSession)
          Sets the session.
 
Methods inherited from class javax.rad.server.ServerContext
getCurrentInstance, getCurrentSession, isReleased, release, setInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

destroy

protected void destroy()
Destroyes any resources associated with this ServerContext instance.

Specified by:
destroy in class ServerContext

getSession

public ISession getSession()
Gets the session instance if available.

Specified by:
getSession in class ServerContext
Returns:
the session or null if session is not available

getSystemIdentifier

public String getSystemIdentifier()
Gets the system identifier. The identifier is unique for each server and deployment mode, e.g. web application deployed as war, desktop application, ...

Specified by:
getSystemIdentifier in class ServerContext
Returns:
the identifier

getServerIdentifier

public String getServerIdentifier()
Gets the identifier of the server that started this context.

Specified by:
getServerIdentifier in class ServerContext
Returns:
a VM unique server identifier

getCallHandler

public ICallHandler getCallHandler()
Gets the ICallHandler for the current context. The handler is session independent.

Specified by:
getCallHandler in class ServerContext
Returns:
the call handler or null if no current session is available

setSession

protected void setSession(ISession pSession)
Sets the session.

Parameters:
pSession - the session

getServer

public IServer getServer()
Gets the server.

Returns:
the server


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.