com.sibvisions.rad.server
Class ServerContextImpl

java.lang.Object
  extended by javax.rad.server.ServerContext
      extended by com.sibvisions.rad.server.ServerContextImpl

public class ServerContextImpl
extends ServerContext

The ServerContextImpl is an internal 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.
 java.lang.String getServerIdentifier()
          Gets the identifier of the server that started this context.
 ISession getSession()
          Gets the session instance if available.
 java.lang.String getSystemIdentifier()
          Gets the system identifier.
 
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 java.lang.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 java.lang.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

getServer

public IServer getServer()
Gets the server.

Returns:
the server


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.