public interface IBMApplicationSession
Modifier and Type | Method and Description |
---|---|
void |
encodeURI(java.lang.Object URI)
Encodes the ID of this IBMApplicationSession into the specified SIP URI.
|
java.lang.String |
encodeURI(java.lang.String URI)
Encodes the ID of this IBMApplicationSession into the specified HTTP URI.
|
java.lang.Object |
getAttribute(java.lang.String name)
Returns the object bound with the specified name in this session, or null
if no object is bound under the name.
|
java.util.Iterator |
getAttributeNames()
Returns an Iterator over the String objects containing the names of all the
objects bound to this session.
|
long |
getCreationTime()
Returns the time when this session was created, measured in milliseconds
since midnight January 1, 1970 GMT.
|
java.lang.String |
getId()
Returns a string containing the unique identifier assigned to this session.
|
long |
getLastAccessedTime()
Returns the last time an event occurred on this application session.
|
java.util.Iterator |
getSessions()
Returns an Iterator over all "protocol" sessions associated with this
application session.
|
java.util.Iterator |
getSessions(java.lang.String protocol)
Returns an Iterator over the "protocol" session objects associated of the
specified protocol
associated with this application session.
|
java.util.Collection |
getTimers()
Returns all active timers associated with this application session.
|
void |
invalidate()
Invalidates this application session.
|
void |
removeAttribute(java.lang.String name)
Removes the object bound with the specified name from this session.
|
void |
setAttribute(java.lang.String name,
java.lang.Object attribute)
Binds an object to this session, using the name specified.
|
int |
setExpires(int deltaMinutes)
Sets the time of expiry for this application session.
|
void |
sync()
Forces replication of application session changes
|
void encodeURI(java.lang.Object URI)
URI
- object expected to be an instance of javax.servlet.sip.URIjava.lang.String encodeURI(java.lang.String URI)
URI
- string representation of the http urijava.lang.Object getAttribute(java.lang.String name)
name
- name of the attribute to retrievejava.util.Iterator getAttributeNames()
long getCreationTime()
java.lang.String getId()
long getLastAccessedTime()
java.util.Iterator getSessions()
java.util.Iterator getSessions(java.lang.String protocol)
protocol
- string representation of protocol, either "SIP" or "HTTP"java.util.Collection getTimers()
void invalidate()
void removeAttribute(java.lang.String name)
name
- name of the attribute to removevoid setAttribute(java.lang.String name, java.lang.Object attribute)
name
- name of the attribute to setattribute
- value of the attribute to setint setExpires(int deltaMinutes)
deltaMinutes
- the number of minutes that the lifetime of this
IBMApplicationSession is extendedvoid sync()