public class RESTSession
extends java.lang.Object
implements javax.servlet.http.HttpSessionBindingListener
Modifier and Type | Method and Description |
---|---|
void |
cacheResource(java.lang.String rootResourceContext,
java.lang.String key,
Resource resource) |
void |
cleanup() |
void |
clearResourceCache(java.lang.String resourceRootContext) |
java.lang.Object |
getAttribute(java.lang.String name) |
Resource |
getCachedResource(java.lang.String rootResourceContext,
java.lang.String key) |
MXSession |
getMXSession() |
void |
releseResource(java.lang.String resourceId) |
java.lang.Object |
setAttribute(java.lang.String name,
java.lang.Object value) |
void |
valueBound(javax.servlet.http.HttpSessionBindingEvent arg0) |
void |
valueUnbound(javax.servlet.http.HttpSessionBindingEvent arg0) |
public MXSession getMXSession()
public void valueBound(javax.servlet.http.HttpSessionBindingEvent arg0)
valueBound
in interface javax.servlet.http.HttpSessionBindingListener
public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent arg0)
valueUnbound
in interface javax.servlet.http.HttpSessionBindingListener
public java.lang.Object getAttribute(java.lang.String name)
public java.lang.Object setAttribute(java.lang.String name, java.lang.Object value)
public Resource getCachedResource(java.lang.String rootResourceContext, java.lang.String key)
public void clearResourceCache(java.lang.String resourceRootContext)
public void cacheResource(java.lang.String rootResourceContext, java.lang.String key, Resource resource)
public void releseResource(java.lang.String resourceId) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public void cleanup()