Interface DiameterMessage
-
- All Superinterfaces:
Cloneable
- All Known Subinterfaces:
AbortSessionAnswer,AbortSessionAnswer,AbortSessionRequest,AbortSessionRequest,AccountingAnswer,AccountingAnswer,AccountingAnswer,AccountingAnswer,AccountingAnswer,AccountingAnswer,AccountingAnswer,AccountingAnswer,AccountingRequest,AccountingRequest,AccountingRequest,AccountingRequest,AccountingRequest,AccountingRequest,AccountingRequest,AccountingRequest,CapabilitiesExchangeAnswer,CapabilitiesExchangeRequest,CapabilitiesUpdateAnswer,CapabilitiesUpdateRequest,CreditControlAnswer,CreditControlAnswer,CreditControlAnswer,CreditControlAnswer,CreditControlAnswer,CreditControlAnswer,CreditControlAnswer,CreditControlAnswer,CreditControlAnswer,CreditControlAnswer,CreditControlAnswer,CreditControlMessage,CreditControlRequest,CreditControlRequest,CreditControlRequest,CreditControlRequest,CreditControlRequest,CreditControlRequest,CreditControlRequest,CreditControlRequest,CreditControlRequest,CreditControlRequest,CreditControlRequest,DeviceWatchdogAnswer,DeviceWatchdogRequest,DiameterShBaseMessage,DiameterShMessage,DiameterShMessage,DiameterShMessage,DiameterShMessage,DiameterShMessage,DiameterShMessage,DisconnectPeerAnswer,DisconnectPeerRequest,ErrorAnswer,ExtensionDiameterMessage,ProfileUpdateAnswer,ProfileUpdateAnswer,ProfileUpdateAnswer,ProfileUpdateAnswer,ProfileUpdateAnswer,ProfileUpdateAnswer,ProfileUpdateRequest,ProfileUpdateRequest,ProfileUpdateRequest,ProfileUpdateRequest,ProfileUpdateRequest,ProfileUpdateRequest,PushNotificationAnswer,PushNotificationAnswer,PushNotificationAnswer,PushNotificationAnswer,PushNotificationAnswer,PushNotificationAnswer,PushNotificationRequest,PushNotificationRequest,PushNotificationRequest,PushNotificationRequest,PushNotificationRequest,PushNotificationRequest,ReAuthAnswer,ReAuthAnswer,ReAuthAnswer,ReAuthAnswer,ReAuthAnswer,ReAuthRequest,ReAuthRequest,ReAuthRequest,ReAuthRequest,ReAuthRequest,SessionTerminationAnswer,SessionTerminationRequest,SubscribeNotificationsAnswer,SubscribeNotificationsAnswer,SubscribeNotificationsAnswer,SubscribeNotificationsAnswer,SubscribeNotificationsAnswer,SubscribeNotificationsAnswer,SubscribeNotificationsRequest,SubscribeNotificationsRequest,SubscribeNotificationsRequest,SubscribeNotificationsRequest,SubscribeNotificationsRequest,SubscribeNotificationsRequest,UserDataAnswer,UserDataAnswer,UserDataAnswer,UserDataAnswer,UserDataAnswer,UserDataAnswer,UserDataRequest,UserDataRequest,UserDataRequest,UserDataRequest,UserDataRequest,UserDataRequest
public interface DiameterMessage extends Cloneable
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.
- Author:
- Open Cloud
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Objectclone()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.DiameterCommandgetCommand()Return theDiameterCommandcontained in the header of this message.DiameterIdentitygetDestinationHost()Returns the value of the Destination-Host AVP, of type DiameterIdentity.DiameterIdentitygetDestinationRealm()Returns the value of the Destination-Realm AVP, of type DiameterIdentity.DiameterHeadergetHeader()Return theDiameterHeaderin this message.DiameterIdentitygetOriginHost()Returns the value of the Origin-Host AVP, of type DiameterIdentity.DiameterIdentitygetOriginRealm()Returns the value of the Origin-Realm AVP, of type DiameterIdentity.StringgetSessionId()Returns the value of the Session-Id AVP, of type UTF8String.voidsetDestinationHost(DiameterIdentity destinationHost)Sets the value of the Destination-Host AVP, of type DiameterIdentity.voidsetDestinationRealm(DiameterIdentity destinationRealm)Sets the value of the Destination-Realm AVP, of type DiameterIdentity.voidsetOriginHost(DiameterIdentity originHost)Sets the value of the Origin-Host AVP, of type DiameterIdentity.voidsetOriginRealm(DiameterIdentity originRealm)Sets the value of the Origin-Realm AVP, of type DiameterIdentity.voidsetSessionId(String sessionId)Sets the value of the Session-Id AVP, of type UTF8String.
-
-
-
Method Detail
-
getHeader
DiameterHeader getHeader()
Return theDiameterHeaderin this message.For outgoing messages created via the
DiameterMessageFactorythe default message header object for this message will be created and returned. The header will have its request flag, command code and application ID set as appropriate, and default values for the other fields.- Returns:
- DiameterHeader
-
getCommand
DiameterCommand getCommand()
Return theDiameterCommandcontained in the header of this message.- Returns:
- a DiameterCommand instance
-
getAvps
DiameterAvp[] getAvps()
Return the AVPs contained in this message, as an array of DiameterAvp objects. AVPs are returned in the same order in which they appear in the message.- Returns:
- a list of AVPs
-
getSessionId
String getSessionId()
Returns the value of the Session-Id AVP, of type UTF8String. A return value of null implies that the AVP has not been set.
-
setSessionId
void setSessionId(String sessionId)
Sets the value of the Session-Id AVP, of type UTF8String.- Throws:
NullPointerException- ifsessionIdisnull.
-
getOriginHost
DiameterIdentity getOriginHost()
Returns the value of the Origin-Host AVP, of type DiameterIdentity. A return value of null implies that the AVP has not been set.
-
setOriginHost
void setOriginHost(DiameterIdentity originHost)
Sets the value of the Origin-Host AVP, of type DiameterIdentity.- Throws:
NullPointerException- iforiginHostisnull.
-
getOriginRealm
DiameterIdentity getOriginRealm()
Returns the value of the Origin-Realm AVP, of type DiameterIdentity. A return value of null implies that the AVP has not been set.
-
setOriginRealm
void setOriginRealm(DiameterIdentity originRealm)
Sets the value of the Origin-Realm AVP, of type DiameterIdentity.- Throws:
NullPointerException- iforiginRealmisnull.
-
getDestinationRealm
DiameterIdentity getDestinationRealm()
Returns the value of the Destination-Realm AVP, of type DiameterIdentity. A return value of null implies that the AVP has not been set.
-
setDestinationRealm
void setDestinationRealm(DiameterIdentity destinationRealm)
Sets the value of the Destination-Realm AVP, of type DiameterIdentity.- Throws:
NullPointerException- ifdestinationRealmisnull.
-
getDestinationHost
DiameterIdentity getDestinationHost()
Returns the value of the Destination-Host AVP, of type DiameterIdentity. A return value of null implies that the AVP has not been set.
-
setDestinationHost
void setDestinationHost(DiameterIdentity destinationHost)
Sets the value of the Destination-Host AVP, of type DiameterIdentity.- Throws:
NullPointerException- ifdestinationHostisnull.
-
clone
Object clone()
Creates and returns a deep copy of this Diameter message.- Returns:
- a deep copy of this message.
-
-