|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DiameterSession
Point-to-point Diameter relationship.
Method Summary | |
---|---|
DiameterServletRequest |
createRequest(DiameterCommand command,
boolean maintained)
Returns a new DiameterRequest . |
ApplicationId |
getApplicationId()
|
javax.servlet.sip.SipApplicationSession |
getApplicationSession()
|
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.Enumeration<java.lang.String> |
getAttributeNames()
Returns an Enumeration over the String objects containing the names of all the
objects bound to this session. |
java.lang.String |
getDestinationHost()
Return the destination host associated with this session. |
java.lang.String |
getDestinationRealm()
Return the destination realm associated with this session. |
java.lang.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(java.lang.String name)
Removes the object bound with the specified name from this session. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Binds an object to this session, using the name specified. |
Method Detail |
---|
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
.
java.lang.IllegalStateException
- if this DiameterSession
has been invalidated.Common.AUTH_SESSION_STATE
,
Common.AuthSessionState.STATE_MAINTAINED
java.lang.String getId()
Common.SESSION_ID
ApplicationId getApplicationId()
java.lang.String getDestinationRealm()
Common.DESTINATION_REALM
java.lang.String getDestinationHost()
Common.DESTINATION_HOST
boolean 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()
java.lang.IllegalStateException
- if this method is called on an invalidated sessionjava.lang.Object getAttribute(java.lang.String name)
name
- a string specifying the name of the object
java.lang.NullPointerException
- if the name is null.
java.lang.IllegalStateException
- if session is invalidatedjava.util.Enumeration<java.lang.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.
java.lang.IllegalStateException
- if session is invalidatedvoid removeAttribute(java.lang.String name)
name
- the name of the object to remove from this session
java.lang.IllegalStateException
- if session is invalidatedvoid setAttribute(java.lang.String name, java.lang.Object value)
name
- the name to which the object is boundvalue
- the object to be bound
java.lang.IllegalStateException
- if session is invalidated
java.lang.NullPointerException
- on null
name
or value
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |