public interface DiameterServletMessage
| Modifier and Type | Method and Description |
|---|---|
<T> void |
add(Type<T> type,
T value) |
<T> T |
get(Type<T> type) |
int |
getApplicationId() |
javax.servlet.sip.SipApplicationSession |
getApplicationSession() |
Object |
getAttribute(String name)
Returns the value of the named attribute as an Object, or null if no attribute of the given
name exists.
|
Enumeration<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() |
String |
getOriginHost() |
String |
getOriginRealm() |
DiameterSession |
getSession()
Returns the
DiameterSession to which this message belongs. |
DiameterSession |
getSession(boolean create)
Returns the
DiameterSession to which this message belongs. |
String |
getSessionId() |
boolean |
isRequest() |
void |
removeAttribute(String name)
Removes the named attribute from this message.
|
void |
send() |
void |
setAttribute(String name,
Object o)
Stores an attribute in this message.
|
void |
setAVPList(AVPList avps) |
int |
size() |
<T> T get(Type<T> type)
<T> void add(Type<T> type, T value)
int getApplicationId()
int getHopByHopId()
int getEndToEndId()
DiameterCommand getCommand()
String getOriginHost()
String getOriginRealm()
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 existDiameterSession 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 IOException
IOExceptionObject getAttribute(String name)
name - a String specifying the name of the attributevoid removeAttribute(String name)
name - a String specifying the name of the attributeEnumeration<String> getAttributeNames()
void setAttribute(String name, Object o)
name - a String specifying the name of the attributeo - the Object to be storedNullPointerException - if either of name or o is null.Copyright © 2014. All Rights Reserved.