|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.service.request.HttpBoundSession
public final class HttpBoundSession
The HttpBoundSession associated with the request to the
pulse service.
| Method Summary | |
|---|---|
void |
addSessionRole(Role role)
Adds the given Role as session role. |
org.jdom.Element |
deserializeToJDOM()
Returns a JDOM representation of the ServiceSession. |
java.io.Serializable |
getAttribute(java.lang.String name)
returns the Serializable bound with the specified name in this
ServiceSession, or <strong>null</strong> if no Serializable is bound under the name. |
java.util.Set<java.lang.String> |
getAttributeNames()
returns a List with the attribute names of this ServiceSession. |
long |
getCreationTime()
get the time when this ServiceSession was created, measured in
milliseconds since midnight January 1, 1970 GMT. |
byte[] |
getSecret()
returns the session's secret. |
static ServiceSession |
getSession()
returns a dummy HttpBoundSession which is not
bound to the HttpSession. |
static HttpBoundSession |
getSession(javax.servlet.http.HttpServletRequest req)
get the HttpBoundSession that is registered to the given HttpServletRequest. |
java.util.Set<Role> |
getSessionRoles()
Returns the Roles valid only for the session. |
boolean |
hasState()
returns whether the ServiceSession has a different state than
upon creation. |
boolean |
isBound()
returns whether the ServiceSession is actually bound to the
underlying session management. |
void |
removeAttribute(java.lang.String name)
removes an attribute from the ServiceSession. |
void |
setAttribute(java.lang.String name,
java.io.Serializable value)
add an attribute to the ServiceSession. |
void |
valueBound(javax.servlet.http.HttpSessionBindingEvent arg0)
|
void |
valueUnbound(javax.servlet.http.HttpSessionBindingEvent arg0)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static HttpBoundSession getSession(javax.servlet.http.HttpServletRequest req)
req - the request
public static ServiceSession getSession()
HttpBoundSession which is not
bound to the HttpSession.
HttpBoundSession which is not
bound to the HttpSessionpublic boolean isBound()
ServiceSession is actually bound to the
underlying session management.
isBound in interface ServiceSessiontrue, if and only if the ServiceSession is bound
to the HttpSession. Otherwise false.public boolean hasState()
ServiceSession has a different state than
upon creation.
hasState in interface ServiceSessiontrue, if and only if the ServiceSession has a
different state than upon creation. Otherwise false.public java.io.Serializable getAttribute(java.lang.String name)
ServiceSessionSerializable bound with the specified name in this
ServiceSession, or <strong>null</strong> if no Serializable is bound under the name.
getAttribute in interface ServiceSessionname - the name of the attribute to fetch
null, if no such attribute has
been stored in the sessionServiceSession.getAttribute(java.lang.String)public java.util.Set<java.lang.String> getAttributeNames()
ServiceSessionList with the attribute names of this ServiceSession.
getAttributeNames in interface ServiceSessionServiceSession.getAttributeNames()public long getCreationTime()
ServiceSessionServiceSession was created, measured in
milliseconds since midnight January 1, 1970 GMT.
getCreationTime in interface ServiceSessionServiceSession.getCreationTime()
public void setAttribute(java.lang.String name,
java.io.Serializable value)
ServiceSessionServiceSession.
Any previously added attributes of the same name will be removed from the
ServiceSession and be replaced by the specified value.
setAttribute in interface ServiceSessionname - the name of the attribute to be setvalue - the value of the attribute to be setServiceSession.setAttribute(java.lang.String,
java.io.Serializable)public void removeAttribute(java.lang.String name)
ServiceSessionServiceSession.
removeAttribute in interface ServiceSessionname - the name of the attribute to be removedServiceSession.removeAttribute(java.lang.String)public void valueBound(javax.servlet.http.HttpSessionBindingEvent arg0)
valueBound in interface javax.servlet.http.HttpSessionBindingListenerarg0 - is completely ignoredHttpSessionBindingListener.valueBound(javax.servlet.http.HttpSessionBindingEvent)public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent arg0)
valueUnbound in interface javax.servlet.http.HttpSessionBindingListenerarg0 - is completely ignoredHttpSessionBindingListener.valueUnbound(javax.servlet.http.HttpSessionBindingEvent)public byte[] getSecret()
getSecret in interface ServiceSessionServiceSession.getSecret()public void addSessionRole(Role role)
Role as session role.
addSessionRole in interface ServiceSessionrole - the Role to addpublic java.util.Set<Role> getSessionRoles()
Roles valid only for the session.
getSessionRoles in interface ServiceSessionpublic org.jdom.Element deserializeToJDOM()
ServiceSession.
JDOMable values will be expanded, other values will be
represented by their toString()-methods.
deserializeToJDOM in interface JDOMableServiceSession.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||