public interface DiameterSession
| Modifier and Type | Method and Description |
|---|---|
DiameterServletRequest |
createRequest(DiameterCommand command,
boolean maintained)
Returns a new
DiameterRequest. |
ApplicationId |
getApplicationId() |
javax.servlet.sip.SipApplicationSession |
getApplicationSession() |
Object |
getAttribute(String name)
Returns the object bound with the specified name in this session, or null if no object is
bound under the name.
|
Enumeration<String> |
getAttributeNames()
Returns an Enumeration over the
String objects containing the names of all the
objects bound to this session. |
String |
getDestinationHost()
Return the destination host associated with this session.
|
String |
getDestinationRealm()
Return the destination realm associated with this session.
|
String |
getId()
Returns the session ID.
|
void |
invalidate()
Invalidates this session and unbinds any objects bound to it.
|
boolean |
isValid()
Returns
true if this DiameterSession is valid, false
otherwise. |
void |
removeAttribute(String name)
Removes the object bound with the specified name from this session.
|
void |
setAttribute(String name,
Object value)
Binds an object to this session, using the name specified.
|
javax.servlet.sip.SipApplicationSession getApplicationSession()
DiameterServletRequest createRequest(DiameterCommand command, boolean maintained)
DiameterRequest.command - the command of the new DiameterRequest.maintained - if true, add the AVP Auth-Session-State with the value AuthSessionState.STATE_MAINTAINED.DiameterRequest.IllegalStateException - if this DiameterSession has been invalidated.Common.AUTH_SESSION_STATE,
Common.AuthSessionState.STATE_MAINTAINEDString getId()
Common.SESSION_IDApplicationId getApplicationId()
String getDestinationRealm()
Common.DESTINATION_REALMString getDestinationHost()
Common.DESTINATION_HOSTboolean isValid()
true if this DiameterSession is valid, false
otherwise. The DiameterSession can be invalidated by calling the method
invalidate() on it.true if this DiameterSession is valid, false
otherwise.void invalidate()
IllegalStateException - if this method is called on an invalidated sessionObject getAttribute(String name)
name - a string specifying the name of the objectNullPointerException - if the name is null.IllegalStateException - if session is invalidatedEnumeration<String> getAttributeNames()
String objects containing the names of all the
objects bound to this session.String objects containing the names of
all the objects bound to this session.IllegalStateException - if session is invalidatedvoid removeAttribute(String name)
name - the name of the object to remove from this sessionIllegalStateException - if session is invalidatedvoid setAttribute(String name, Object value)
name - the name to which the object is boundvalue - the object to be boundIllegalStateException - if session is invalidatedNullPointerException - on null name or value.Copyright © 2014. All Rights Reserved.