|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ServiceSession
The ServiceSession associated with the request to the pulse
service.
| Method Summary | |
|---|---|
void |
addSessionRole(Role role)
Adds the given Role to the to the Roles only valid for
the session. |
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 a per session secret which is used in token computation. |
java.util.Set<Role> |
getSessionRoles()
Returns the Roles only valid 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. |
| Methods inherited from interface org.torweg.pulse.bundle.JDOMable |
|---|
deserializeToJDOM |
| Method Detail |
|---|
boolean isBound()
ServiceSession is actually bound to the
underlying session management.
true, if and only if the ServiceSession is bound
to the underlying session management. Otherwise false.boolean hasState()
ServiceSession has a different state than
upon creation.
true, if and only if the ServiceSession has a
different state than upon creation. Otherwise false.java.io.Serializable getAttribute(java.lang.String name)
Serializable bound with the specified name in this
ServiceSession, or <strong>null</strong> if no Serializable is bound under the name.
name - the attribute's name
java.util.Set<java.lang.String> getAttributeNames()
List with the attribute names of this ServiceSession.
long getCreationTime()
ServiceSession was created, measured in
milliseconds since midnight January 1, 1970 GMT.
void setAttribute(java.lang.String name,
java.io.Serializable value)
ServiceSession.
Any previously added attributes of the same name will be removed from the
ServiceSession and be replaced by the specified value.
name - the attribute's namevalue - the attribute's valuevoid removeAttribute(java.lang.String name)
ServiceSession.
name - the attribute to be removedbyte[] getSecret()
Implementations must not return null under any circumstances!
RequireTokenvoid addSessionRole(Role role)
Role to the to the Roles only valid for
the session.
role - the Role to addjava.util.Set<Role> getSessionRoles()
Roles only valid for the session.
Roles
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||