|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.spardat.xma.session.XMASession
at.spardat.xma.session.XMASessionServer
The representation of a XMA session at the server side.
| Constructor Summary | |
XMASessionServer(javax.servlet.http.HttpSession httpSession,
javax.security.auth.Subject subject,
java.lang.String contextPath)
Constructor which creates an XMASessionServer and binds this as an attribute to the provided httpSession. |
|
| Method Summary | |
byte[] |
getApplicationVersion()
Application Hash-Code built from application descriptors. |
java.lang.String |
getBootRuntimeVersion()
|
java.lang.String |
getClientIPAddress()
|
ComponentServer |
getComponent(short id)
Returns the ComponentServer registered for the provided id or null if there is no such component. |
java.lang.String |
getComponentClassName(java.lang.String namComponent)
Given the short name of a component (which is also the name of the class without the package name), this method returns the fully qualified name of the components class. |
XMAContext |
getContext()
Returns the execution context of this session. |
java.lang.String |
getContextPath()
Returns the context path of the enclosing web-application. |
void |
getCounts(int[] counts)
Requires that counts holds an array of size at least 3 and returns the following counts in the array elements: The number of stateful components active in this session, the number of pages in all these components and the estimated number of bytes of all pages in all components in this session. |
javax.servlet.http.HttpSession |
getHttpSession()
Returns the servlet session that this XMASession is an attribute of. |
PluginManager |
getPluginManager()
Returns the PluginManager that must be used to retrieve client side plugin implementations. |
java.util.Map |
getServerHighCounts()
|
javax.security.auth.Subject |
getSubject()
Returns the subject as supplied by the JAAS conforming login module. |
static XMASession |
getXMASession()
Returns the XMASession bound to the currently executing thread. |
static XMASessionServer |
getXMASession(javax.servlet.http.HttpSession httpSession)
Returns the XMASessionServer object that is bound to the given httpSession or null if none is bound yet. |
boolean |
isAtServer()
Returns true if this session is in the server JVM. |
void |
registerComponent(ComponentServer cs)
Registers a Component with this session if the component is stateful. |
void |
removeComponent(short id)
Removes a component with a given id from this. |
static void |
setSessionAsThreadLocal(XMASessionServer session)
Sets the provided session as the current threads session. |
| Methods inherited from class at.spardat.xma.session.XMASession |
checkPermission, getApplicationVersionShort |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XMASessionServer(javax.servlet.http.HttpSession httpSession,
javax.security.auth.Subject subject,
java.lang.String contextPath)
httpSession - the servlet session this is an attribute of.contextPath - the context path of the webapplication without leading slash.
java.lang.IllegalStateException - if there is already an XMASession bound
to the provided httpSession.| Method Detail |
public java.lang.String getContextPath()
public static XMASessionServer getXMASession(javax.servlet.http.HttpSession httpSession)
public XMAContext getContext()
getContext in class XMASessionpublic javax.security.auth.Subject getSubject()
getSubject in class XMASessionpublic void registerComponent(ComponentServer cs)
cs - the Component to register. cs is required to
1) have a valid id set and 2) that a component
with this id is not registered yet.
java.lang.IllegalArgumentException - if some of above mentioned conditions is violated.public void removeComponent(short id)
May only be called from ComponentServer!!!!!
public ComponentServer getComponent(short id)
public java.lang.String getComponentClassName(java.lang.String namComponent)
namComponent - the name of the component
public void getCounts(int[] counts)
public javax.servlet.http.HttpSession getHttpSession()
public static XMASession getXMASession()
public static void setSessionAsThreadLocal(XMASessionServer session)
public PluginManager getPluginManager()
XMASession
getPluginManager in class XMASessionpublic byte[] getApplicationVersion()
getApplicationVersion in class XMASessionpublic boolean isAtServer()
XMASession
isAtServer in class XMASessionXMASession.isAtServer()public java.util.Map getServerHighCounts()
public java.lang.String getBootRuntimeVersion()
public java.lang.String getClientIPAddress()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||