|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DiameterServletMessage
Base class for diameter requests and answers.
Method Summary | ||
---|---|---|
|
add(Type<T> type,
T value)
|
|
|
get(Type<T> type)
|
|
int |
getApplicationId()
|
|
javax.servlet.sip.SipApplicationSession |
getApplicationSession()
|
|
java.lang.Object |
getAttribute(java.lang.String name)
Returns the value of the named attribute as an Object, or null if no attribute of the given name exists. |
|
java.util.Enumeration<java.lang.String> |
getAttributeNames()
Returns an Enumeration containing the names of the attributes available to this message object. |
|
AVPList |
getAVPs()
Returns a list with all messages AVPs. |
|
DiameterCommand |
getCommand()
|
|
int |
getEndToEndId()
|
|
int |
getHopByHopId()
|
|
java.lang.String |
getOriginHost()
|
|
java.lang.String |
getOriginRealm()
|
|
DiameterSession |
getSession()
Returns the DiameterSession to which this message belongs. |
|
DiameterSession |
getSession(boolean create)
Returns the DiameterSession to which this message belongs. |
|
java.lang.String |
getSessionId()
|
|
boolean |
isRequest()
|
|
void |
removeAttribute(java.lang.String name)
Removes the named attribute from this message. |
|
void |
send()
|
|
void |
setAttribute(java.lang.String name,
java.lang.Object o)
Stores an attribute in this message. |
|
void |
setAVPList(AVPList avps)
|
|
int |
size()
|
Method Detail |
---|
<T> T get(Type<T> type)
<T> void add(Type<T> type, T value)
int getApplicationId()
int getHopByHopId()
int getEndToEndId()
DiameterCommand getCommand()
java.lang.String getOriginHost()
java.lang.String getOriginRealm()
java.lang.String getSessionId()
int size()
AVPList getAVPs()
void setAVPList(AVPList avps)
DiameterSession getSession()
DiameterSession
to which this message belongs. If the session didn't
already exist it is created. This method is equivalent to calling getSession(true)
.
DiameterSession
to which this message belongs.DiameterSession getSession(boolean create)
DiameterSession
to which this message belongs.
create
- indicates whether the session is created if it doesn't already exist
DiameterSession
to which this message belongs , or null
if one hasn't been created and create
is falsejavax.servlet.sip.SipApplicationSession getApplicationSession()
boolean isRequest()
void send() throws java.io.IOException
java.io.IOException
java.lang.Object getAttribute(java.lang.String name)
name
- a String specifying the name of the attribute
void removeAttribute(java.lang.String name)
name
- a String specifying the name of the attributejava.util.Enumeration<java.lang.String> getAttributeNames()
void setAttribute(java.lang.String name, java.lang.Object o)
name
- a String specifying the name of the attributeo
- the Object to be stored
java.lang.NullPointerException
- if either of name or o is null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |