|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DiameterMessage
A Diameter message containing a command code and a collection of AVPs.
This is a representation of the contents of a message that a client may be interested in.
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Creates and returns a deep copy of this Diameter message. |
DiameterAvp[] |
getAvps()
Return the AVPs contained in this message, as an array of DiameterAvp objects. |
DiameterCommand |
getCommand()
Return the DiameterCommand contained in the header of this message. |
DiameterIdentityAvp |
getDestinationHost()
Returns the value of the Destination-Host AVP, of type DiameterIdentity. |
DiameterIdentityAvp |
getDestinationRealm()
Returns the value of the Destination-Realm AVP, of type DiameterIdentity. |
DiameterAvp[] |
getExtensionAvps()
Returns the set of extension AVPs. |
DiameterHeader |
getHeader()
Return the org.mobicents.slee.resource.diameter.base.DiameterHeader in this message, if it exists. |
DiameterIdentityAvp |
getOriginHost()
Returns the value of the Origin-Host AVP, of type DiameterIdentity. |
DiameterIdentityAvp |
getOriginRealm()
Returns the value of the Origin-Realm AVP, of type DiameterIdentity. |
java.lang.String |
getSessionId()
Returns the value of the Session-Id AVP, of type UTF8String. |
boolean |
hasOriginHost()
Returns true if the Origin-Host AVP is present in the message. |
boolean |
hasOriginRealm()
Returns true if the Origin-Realm AVP is present in the message. |
boolean |
hasSessionId()
Returns true if the Session-Id AVP is present in the message. |
void |
setDestinationHost(DiameterIdentityAvp destinationHost)
Sets the value of the Destination-Host AVP, of type DiameterIdentity. |
void |
setDestinationRealm(DiameterIdentityAvp destinationRealm)
Sets the value of the Destination-Realm AVP, of type DiameterIdentity. |
void |
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array. |
void |
setOriginHost(DiameterIdentityAvp originHost)
Sets the value of the Origin-Host AVP, of type DiameterIdentity. |
void |
setOriginRealm(DiameterIdentityAvp originRealm)
Sets the value of the Origin-Realm AVP, of type DiameterIdentity. |
void |
setSessionId(java.lang.String sessionId)
Sets the value of the Session-Id AVP, of type UTF8String. |
| Method Detail |
|---|
DiameterHeader getHeader()
org.mobicents.slee.resource.diameter.base.DiameterHeader in this message, if it exists. The header will not exist for
outgoing messages created via the net.java.slee.resource.diameter.base.DiameterMessageFactory.
DiameterCommand getCommand()
DiameterCommand contained in the header of this message.
DiameterAvp[] getAvps()
java.lang.String getSessionId()
void setSessionId(java.lang.String sessionId)
java.lang.IllegalStateException - if setSessionId has already been calledDiameterIdentityAvp getOriginHost()
void setOriginHost(DiameterIdentityAvp originHost)
java.lang.IllegalStateException - if setOriginHost has already been calledDiameterIdentityAvp getOriginRealm()
void setOriginRealm(DiameterIdentityAvp originRealm)
java.lang.IllegalStateException - if setOriginRealm has already been calledDiameterIdentityAvp getDestinationRealm()
void setDestinationRealm(DiameterIdentityAvp destinationRealm)
java.lang.IllegalStateException - if setDestinationRealm has already been calledDiameterIdentityAvp getDestinationHost()
void setDestinationHost(DiameterIdentityAvp destinationHost)
java.lang.IllegalStateException - if setDestinationHost has already been calledjava.lang.Object clone()
boolean hasSessionId()
boolean hasOriginHost()
boolean hasOriginRealm()
DiameterAvp[] getExtensionAvps()
void setExtensionAvps(DiameterAvp[] avps)
throws AvpNotAllowedException
AvpNotAllowedException - if an AVP is encountered of a type already known to this class
(i.e. an AVP for which get/set methods already appear in this class)
java.lang.IllegalStateException - if setExtensionAvps has already been called
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||