org.mobicents.slee.resource.diameter.base.events
Class DiameterMessageImpl

java.lang.Object
  extended by org.mobicents.slee.resource.diameter.base.events.DiameterMessageImpl
All Implemented Interfaces:
java.lang.Cloneable, DiameterMessage
Direct Known Subclasses:
AbortSessionAnswerImpl, AbortSessionRequestImpl, AccountingMessageImpl, CapabilitiesExchangeMessageImpl, DeviceWatchdogAnswerImpl, DeviceWatchdogRequestImpl, DisconnectPeerAnswerImpl, DisconnectPeerRequestImpl, ErrorAnswerImpl, ExtensionDiameterMessageImpl, ReAuthAnswerImpl, ReAuthRequestImpl, SessionTerminationMessageImpl

public abstract class DiameterMessageImpl
extends java.lang.Object
implements DiameterMessage

Super class for all diameter messages

Author:
Bartosz Baranowski , Alexandre Mendonca

Field Summary
protected  org.jdiameter.api.Message message
           
 
Constructor Summary
DiameterMessageImpl(org.jdiameter.api.Message message)
          Constructor taking a jDiameter Message as argument.
 
Method Summary
 void addAvp(DiameterAvp avp)
           
protected  void addAvp(int avpCode, long vendorId, java.lang.Object avp)
           
protected  void addAvp(int avpCode, java.lang.Object avp)
           
protected  void addAvp(java.lang.String avpName, java.lang.Object avp)
           
 java.lang.Object clone()
          Creates and returns a deep copy of this Diameter message.
 long getAcctApplicationId()
           
 long getAuthApplicationId()
           
protected  java.lang.Object getAvp(int avpCode)
           
protected  java.lang.Object getAvp(int avpCode, long vendorId)
           
protected  java.lang.Object getAvp(java.lang.String avpName)
           
protected  Address getAvpAsAddress(int code)
           
protected  Address getAvpAsAddress(int code, long vendorId)
           
protected  java.lang.Object getAvpAsCustom(int code, java.lang.Class clazz)
           
protected  java.lang.Object getAvpAsCustom(int code, long vendorId, java.lang.Class clazz)
           
protected  DiameterIdentity getAvpAsDiameterIdentity(int code)
           
protected  DiameterIdentity getAvpAsDiameterIdentity(int code, long vendorId)
           
protected  DiameterURI getAvpAsDiameterURI(int code)
           
protected  DiameterURI getAvpAsDiameterURI(int code, long vendorId)
           
protected  java.lang.Object getAvpAsEnumerated(int code, java.lang.Class clazz)
           
protected  java.lang.Object getAvpAsEnumerated(int code, long vendorId, java.lang.Class clazz)
           
protected  float getAvpAsFloat32(int code)
           
protected  float getAvpAsFloat32(int code, long vendorId)
           
protected  double getAvpAsFloat64(int code)
           
protected  double getAvpAsFloat64(int code, long vendorId)
           
protected  byte[] getAvpAsGrouped(int code)
           
protected  byte[] getAvpAsGrouped(int code, long vendorId)
           
protected  int getAvpAsInteger32(int code)
           
protected  int getAvpAsInteger32(int code, long vendorId)
           
protected  long getAvpAsInteger64(int code)
           
protected  long getAvpAsInteger64(int code, long vendorId)
           
protected  IPFilterRule getAvpAsIPFilterRule(int code)
           
protected  IPFilterRule getAvpAsIPFilterRule(int code, long vendorId)
           
protected  java.lang.String getAvpAsOctetString(int code)
           
protected  java.lang.String getAvpAsOctetString(int code, long vendorId)
           
protected  byte[] getAvpAsRaw(int code)
           
protected  byte[] getAvpAsRaw(int code, long vendorId)
           
protected  java.util.Date getAvpAsTime(int code)
           
protected  java.util.Date getAvpAsTime(int code, long vendorId)
           
protected  long getAvpAsUnsigned32(int code)
           
protected  long getAvpAsUnsigned32(int code, long vendorId)
           
protected  long getAvpAsUnsigned64(int code)
           
protected  long getAvpAsUnsigned64(int code, long vendorId)
           
protected  java.lang.String getAvpAsUTF8String(int code)
           
protected  java.lang.String getAvpAsUTF8String(int code, long vendorId)
           
 DiameterAvp[] getAvps()
          Return the AVPs contained in this message, as an array of DiameterAvp objects.
protected  Address[] getAvpsAsAddress(int code)
           
protected  Address[] getAvpsAsAddress(int code, long vendorId)
           
protected  java.lang.Object[] getAvpsAsCustom(int code, java.lang.Class clazz)
           
protected  java.lang.Object[] getAvpsAsCustom(int code, long vendorId, java.lang.Class clazz)
           
protected  DiameterIdentity[] getAvpsAsDiameterIdentity(int code)
           
protected  DiameterIdentity[] getAvpsAsDiameterIdentity(int code, long vendorId)
           
protected  DiameterURI[] getAvpsAsDiameterURI(int code)
           
protected  DiameterURI[] getAvpsAsDiameterURI(int code, long vendorId)
           
protected  java.lang.Object[] getAvpsAsEnumerated(int code, java.lang.Class clazz)
           
protected  java.lang.Object[] getAvpsAsEnumerated(int code, long vendorId, java.lang.Class clazz)
           
protected  float[] getAvpsAsFloat32(int code)
           
protected  float[] getAvpsAsFloat32(int code, long vendorId)
           
protected  double[] getAvpsAsFloat64(int code)
           
protected  double[] getAvpsAsFloat64(int code, long vendorId)
           
protected  byte[][] getAvpsAsGrouped(int code)
           
protected  byte[][] getAvpsAsGrouped(int code, long vendorId)
           
protected  int[] getAvpsAsInteger32(int code)
           
protected  int[] getAvpsAsInteger32(int code, long vendorId)
           
protected  long[] getAvpsAsInteger64(int code)
           
protected  long[] getAvpsAsInteger64(int code, long vendorId)
           
protected  IPFilterRule[] getAvpsAsIPFilterRule(int code)
           
protected  IPFilterRule[] getAvpsAsIPFilterRule(int code, long vendorId)
           
protected  java.lang.String[] getAvpsAsOctetString(int code)
           
protected  java.lang.String[] getAvpsAsOctetString(int code, long vendorId)
           
protected  byte[][] getAvpsAsRaw(int code)
           
protected  byte[][] getAvpsAsRaw(int code, long vendorId)
           
protected  java.util.Date[] getAvpsAsTime(int code)
           
protected  java.util.Date[] getAvpsAsTime(int code, long vendorId)
           
protected  long[] getAvpsAsUnsigned32(int code)
           
protected  long[] getAvpsAsUnsigned32(int code, long vendorId)
           
protected  long[] getAvpsAsUnsigned64(int code)
           
protected  long[] getAvpsAsUnsigned64(int code, long vendorId)
           
protected  java.lang.String[] getAvpsAsUTF8String(int code)
           
protected  java.lang.String[] getAvpsAsUTF8String(int code, long vendorId)
           
 DiameterCommand getCommand()
          Return the DiameterCommand contained in the header of this message.
 java.lang.Object getData()
           
 DiameterIdentity getDestinationHost()
          Returns the value of the Destination-Host AVP, of type DiameterIdentity.
 DiameterIdentity getDestinationRealm()
          Returns the value of the Destination-Realm AVP, of type DiameterIdentity.
 java.lang.String getErrorMessage()
           
 DiameterIdentity getErrorReportingHost()
           
 java.util.Date getEventTimestamp()
           
 DiameterAvp[] getExtensionAvps()
          Returns the set of extension AVPs.
 FailedAvp getFailedAvp()
           
 FailedAvp[] getFailedAvps()
           
 org.jdiameter.api.Message getGenericData()
           
 DiameterHeader getHeader()
          Return the org.mobicents.slee.resource.diameter.base.DiameterHeader in this message, if it exists.
abstract  java.lang.String getLongName()
          This method returns long name of this message type - Like Device-Watchdog-Request
 DiameterIdentity getOriginHost()
          Returns the value of the Origin-Host AVP, of type DiameterIdentity.
 DiameterIdentity getOriginRealm()
          Returns the value of the Origin-Realm AVP, of type DiameterIdentity.
 long getOriginStateId()
           
 ProxyInfoAvp[] getProxyInfos()
           
 DiameterURI[] getRedirectHosts()
           
 RedirectHostUsageType getRedirectHostUsage()
           
 long getRedirectMaxCacheTime()
           
 long getResultCode()
           
 DiameterIdentity[] getRouteRecords()
           
 java.lang.String getSessionId()
          Returns the value of the Session-Id AVP, of type UTF8String.
abstract  java.lang.String getShortName()
          This method return short name of this message type - for instance DWR,DWA for DeviceWatchdog message
 java.lang.String getUserName()
           
 VendorSpecificApplicationIdAvp getVendorSpecificApplicationId()
           
 boolean hasAcctApplicationId()
           
 boolean hasAuthApplicationId()
           
protected  boolean hasAvp(int code)
           
protected  boolean hasAvp(int code, long vendorId)
           
 boolean hasDestinationHost()
          Returns true if the Destination-Host AVP is present in the message.
 boolean hasDestinationRealm()
          Returns true if the Destination-Realm AVP is present in the message.
 boolean hasErrorMessage()
           
 boolean hasErrorReportingHost()
           
 boolean hasEventTimestamp()
           
 boolean hasFailedAvp()
           
 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 hasOriginStateId()
           
 boolean hasRedirectHosts()
           
 boolean hasRedirectHostUsage()
           
 boolean hasRedirectMaxCacheTime()
           
 boolean hasResultCode()
           
 boolean hasSessionId()
          Returns true if the Session-Id AVP is present in the message.
 boolean hasUserName()
           
 boolean hasVendorSpecificApplicationId()
           
 java.lang.Object removeData()
           
protected  void reportAvpFetchError(java.lang.String msg, long code)
           
 void setAcctApplicationId(long acctApplicationId)
           
 void setAuthApplicationId(long authApplicationId)
           
protected  void setAvpAsFloat32(int code, long vendorId, float value, boolean isMandatory, boolean isProtected)
           
protected  void setAvpAsFloat64(int code, long vendorId, float value, boolean isMandatory, boolean isProtected)
           
protected  org.jdiameter.api.AvpSet setAvpAsGrouped(int code, long vendorId, DiameterAvp[] childs, boolean isMandatory, boolean isProtected)
           
protected  void setAvpAsInteger32(int code, long vendorId, int value, boolean isMandatory, boolean isProtected)
           
protected  void setAvpAsInteger64(int code, long vendorId, long value, boolean isMandatory, boolean isProtected)
           
protected  void setAvpAsOctetString(int code, long vendorId, java.lang.String value, boolean isMandatory, boolean isProtected)
           
protected  void setAvpAsRaw(int code, long vendorId, byte[] value, boolean isMandatory, boolean isProtected)
           
protected  void setAvpAsTime(int code, long vendorId, java.util.Date value, boolean isMandatory, boolean isProtected)
           
protected  void setAvpAsUnsigned32(int code, long vendorId, long value, boolean isMandatory, boolean isProtected)
           
protected  void setAvpAsUnsigned64(int code, long vendorId, long value, boolean isMandatory, boolean isProtected)
           
protected  void setAvpAsUTF8String(int code, long vendorId, java.lang.String value, boolean isMandatory, boolean isProtected)
           
 void setData(java.lang.Object d)
           
 void setDestinationHost(DiameterIdentity destinationHost)
          Sets the value of the Destination-Host AVP, of type DiameterIdentity.
 void setDestinationRealm(DiameterIdentity destinationRealm)
          Sets the value of the Destination-Realm AVP, of type DiameterIdentity.
 void setErrorMessage(java.lang.String errorMessage)
           
 void setErrorReportingHost(DiameterIdentity errorReportingHost)
           
 void setEventTimestamp(java.util.Date eventTimestamp)
           
 void setExtensionAvps(DiameterAvp... avps)
          Sets the set of extension AVPs with all the values in the given array.
 void setFailedAvp(FailedAvp failedAvp)
           
 void setFailedAvps(FailedAvp[] failedAvps)
           
 void setOriginHost(DiameterIdentity originHost)
          Sets the value of the Origin-Host AVP, of type DiameterIdentity.
 void setOriginRealm(DiameterIdentity originRealm)
          Sets the value of the Origin-Realm AVP, of type DiameterIdentity.
 void setOriginStateId(long originStateId)
           
 void setProxyInfo(ProxyInfoAvp proxyInfo)
           
 void setProxyInfos(ProxyInfoAvp[] proxyInfos)
           
 void setRedirectHost(DiameterURI redirectHost)
           
 void setRedirectHosts(DiameterURI[] redirectHosts)
           
 void setRedirectHostUsage(RedirectHostUsageType redirectHostUsage)
           
 void setRedirectMaxCacheTime(long redirectMaxCacheTime)
           
 void setResultCode(long resultCode)
           
 void setRouteRecord(DiameterIdentity routeRecord)
           
 void setRouteRecords(DiameterIdentity[] routeRecords)
           
 void setSessionId(java.lang.String sessionId)
          Sets the value of the Session-Id AVP, of type UTF8String.
 void setUserName(java.lang.String userName)
           
 void setVendorSpecificApplicationId(VendorSpecificApplicationIdAvp vsaid)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

message

protected org.jdiameter.api.Message message
Constructor Detail

DiameterMessageImpl

public DiameterMessageImpl(org.jdiameter.api.Message message)
Constructor taking a jDiameter Message as argument.

Parameters:
message - the jDiameter Message object to create the DiameterMessage from
Method Detail

getLongName

public abstract java.lang.String getLongName()
This method returns long name of this message type - Like Device-Watchdog-Request

Returns:

getShortName

public abstract java.lang.String getShortName()
This method return short name of this message type - for instance DWR,DWA for DeviceWatchdog message

Returns:

getHeader

public DiameterHeader getHeader()
Description copied from interface: DiameterMessage
Return the org.mobicents.slee.resource.diameter.base.DiameterHeader in this message, if it exists. The header will not exist for outgoing messages created via the DiameterMessageFactory.

Specified by:
getHeader in interface DiameterMessage
Returns:
DiameterHeader if one exists, otherwise null

getCommand

public DiameterCommand getCommand()
Description copied from interface: DiameterMessage
Return the DiameterCommand contained in the header of this message.

Specified by:
getCommand in interface DiameterMessage
Returns:
a DiameterCommand instance

getAvps

public DiameterAvp[] getAvps()
Description copied from interface: DiameterMessage
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.

Specified by:
getAvps in interface DiameterMessage
Returns:
a list of AVPs

getExtensionAvps

public DiameterAvp[] getExtensionAvps()
Description copied from interface: DiameterMessage
Returns the set of extension AVPs. The returned array contains the extension AVPs in the order they appear in the message. A return value of null implies that no extensions AVPs have been set.

Specified by:
getExtensionAvps in interface DiameterMessage

setExtensionAvps

public void setExtensionAvps(DiameterAvp... avps)
                      throws AvpNotAllowedException
Description copied from interface: DiameterMessage
Sets the set of extension AVPs with all the values in the given array. The AVPs will be added to message in the order in which they appear in the array. Note: the array must not be altered by the caller following this call, and getExtensionAvps() is not guaranteed to return the same array instance, e.g. an "==" check would fail.

Specified by:
setExtensionAvps in interface DiameterMessage
Throws:
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)

clone

public java.lang.Object clone()
Description copied from interface: DiameterMessage
Creates and returns a deep copy of this Diameter message.

Specified by:
clone in interface DiameterMessage
Overrides:
clone in class java.lang.Object
Returns:
a deep copy of this message.

hasSessionId

public boolean hasSessionId()
Description copied from interface: DiameterMessage
Returns true if the Session-Id AVP is present in the message.

Specified by:
hasSessionId in interface DiameterMessage

getSessionId

public java.lang.String getSessionId()
Description copied from interface: DiameterMessage
Returns the value of the Session-Id AVP, of type UTF8String. A return value of null implies that the AVP has not been set.

Specified by:
getSessionId in interface DiameterMessage

setSessionId

public void setSessionId(java.lang.String sessionId)
Description copied from interface: DiameterMessage
Sets the value of the Session-Id AVP, of type UTF8String.

Specified by:
setSessionId in interface DiameterMessage

hasOriginHost

public boolean hasOriginHost()
Description copied from interface: DiameterMessage
Returns true if the Origin-Host AVP is present in the message.

Specified by:
hasOriginHost in interface DiameterMessage

getOriginHost

public DiameterIdentity getOriginHost()
Description copied from interface: DiameterMessage
Returns the value of the Origin-Host AVP, of type DiameterIdentity. A return value of null implies that the AVP has not been set.

Specified by:
getOriginHost in interface DiameterMessage

setOriginHost

public void setOriginHost(DiameterIdentity originHost)
Description copied from interface: DiameterMessage
Sets the value of the Origin-Host AVP, of type DiameterIdentity.

Specified by:
setOriginHost in interface DiameterMessage

hasOriginRealm

public boolean hasOriginRealm()
Description copied from interface: DiameterMessage
Returns true if the Origin-Realm AVP is present in the message.

Specified by:
hasOriginRealm in interface DiameterMessage

getOriginRealm

public DiameterIdentity getOriginRealm()
Description copied from interface: DiameterMessage
Returns the value of the Origin-Realm AVP, of type DiameterIdentity. A return value of null implies that the AVP has not been set.

Specified by:
getOriginRealm in interface DiameterMessage

setOriginRealm

public void setOriginRealm(DiameterIdentity originRealm)
Description copied from interface: DiameterMessage
Sets the value of the Origin-Realm AVP, of type DiameterIdentity.

Specified by:
setOriginRealm in interface DiameterMessage

hasDestinationHost

public boolean hasDestinationHost()
Description copied from interface: DiameterMessage
Returns true if the Destination-Host AVP is present in the message.

Specified by:
hasDestinationHost in interface DiameterMessage

getDestinationHost

public DiameterIdentity getDestinationHost()
Description copied from interface: DiameterMessage
Returns the value of the Destination-Host AVP, of type DiameterIdentity. A return value of null implies that the AVP has not been set.

Specified by:
getDestinationHost in interface DiameterMessage

setDestinationHost

public void setDestinationHost(DiameterIdentity destinationHost)
Description copied from interface: DiameterMessage
Sets the value of the Destination-Host AVP, of type DiameterIdentity.

Specified by:
setDestinationHost in interface DiameterMessage

hasDestinationRealm

public boolean hasDestinationRealm()
Description copied from interface: DiameterMessage
Returns true if the Destination-Realm AVP is present in the message.

Specified by:
hasDestinationRealm in interface DiameterMessage

getDestinationRealm

public DiameterIdentity getDestinationRealm()
Description copied from interface: DiameterMessage
Returns the value of the Destination-Realm AVP, of type DiameterIdentity. A return value of null implies that the AVP has not been set.

Specified by:
getDestinationRealm in interface DiameterMessage

setDestinationRealm

public void setDestinationRealm(DiameterIdentity destinationRealm)
Description copied from interface: DiameterMessage
Sets the value of the Destination-Realm AVP, of type DiameterIdentity.

Specified by:
setDestinationRealm in interface DiameterMessage

hasAcctApplicationId

public boolean hasAcctApplicationId()

getAcctApplicationId

public long getAcctApplicationId()

setAcctApplicationId

public void setAcctApplicationId(long acctApplicationId)

hasAuthApplicationId

public boolean hasAuthApplicationId()

getAuthApplicationId

public long getAuthApplicationId()

setAuthApplicationId

public void setAuthApplicationId(long authApplicationId)

hasErrorMessage

public boolean hasErrorMessage()

getErrorMessage

public java.lang.String getErrorMessage()

setErrorMessage

public void setErrorMessage(java.lang.String errorMessage)

hasErrorReportingHost

public boolean hasErrorReportingHost()

getErrorReportingHost

public DiameterIdentity getErrorReportingHost()

setErrorReportingHost

public void setErrorReportingHost(DiameterIdentity errorReportingHost)

hasEventTimestamp

public boolean hasEventTimestamp()

getEventTimestamp

public java.util.Date getEventTimestamp()

setEventTimestamp

public void setEventTimestamp(java.util.Date eventTimestamp)

hasOriginStateId

public boolean hasOriginStateId()

getOriginStateId

public long getOriginStateId()

setOriginStateId

public void setOriginStateId(long originStateId)

hasResultCode

public boolean hasResultCode()

getResultCode

public long getResultCode()

setResultCode

public void setResultCode(long resultCode)

hasFailedAvp

public boolean hasFailedAvp()

getFailedAvps

public FailedAvp[] getFailedAvps()

getFailedAvp

public FailedAvp getFailedAvp()

setFailedAvp

public void setFailedAvp(FailedAvp failedAvp)

setFailedAvps

public void setFailedAvps(FailedAvp[] failedAvps)

hasUserName

public boolean hasUserName()

getUserName

public java.lang.String getUserName()

setUserName

public void setUserName(java.lang.String userName)

setProxyInfo

public void setProxyInfo(ProxyInfoAvp proxyInfo)

getProxyInfos

public ProxyInfoAvp[] getProxyInfos()

setProxyInfos

public void setProxyInfos(ProxyInfoAvp[] proxyInfos)

hasRedirectHostUsage

public boolean hasRedirectHostUsage()

setRedirectHostUsage

public void setRedirectHostUsage(RedirectHostUsageType redirectHostUsage)

getRedirectHostUsage

public RedirectHostUsageType getRedirectHostUsage()

hasRedirectMaxCacheTime

public boolean hasRedirectMaxCacheTime()

setRedirectMaxCacheTime

public void setRedirectMaxCacheTime(long redirectMaxCacheTime)

getRedirectMaxCacheTime

public long getRedirectMaxCacheTime()

hasRedirectHosts

public boolean hasRedirectHosts()

getRedirectHosts

public DiameterURI[] getRedirectHosts()

setRedirectHost

public void setRedirectHost(DiameterURI redirectHost)

setRedirectHosts

public void setRedirectHosts(DiameterURI[] redirectHosts)

getRouteRecords

public DiameterIdentity[] getRouteRecords()

setRouteRecord

public void setRouteRecord(DiameterIdentity routeRecord)

setRouteRecords

public void setRouteRecords(DiameterIdentity[] routeRecords)

hasVendorSpecificApplicationId

public boolean hasVendorSpecificApplicationId()

getVendorSpecificApplicationId

public VendorSpecificApplicationIdAvp getVendorSpecificApplicationId()

setVendorSpecificApplicationId

public void setVendorSpecificApplicationId(VendorSpecificApplicationIdAvp vsaid)

getGenericData

public org.jdiameter.api.Message getGenericData()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

reportAvpFetchError

protected void reportAvpFetchError(java.lang.String msg,
                                   long code)

getAvpAsTime

protected java.util.Date getAvpAsTime(int code)

getAvpAsTime

protected java.util.Date getAvpAsTime(int code,
                                      long vendorId)

getAvpsAsTime

protected java.util.Date[] getAvpsAsTime(int code)

getAvpsAsTime

protected java.util.Date[] getAvpsAsTime(int code,
                                         long vendorId)

setAvpAsTime

protected void setAvpAsTime(int code,
                            long vendorId,
                            java.util.Date value,
                            boolean isMandatory,
                            boolean isProtected)

getAvpAsFloat32

protected float getAvpAsFloat32(int code)

getAvpAsFloat32

protected float getAvpAsFloat32(int code,
                                long vendorId)

getAvpsAsFloat32

protected float[] getAvpsAsFloat32(int code)

getAvpsAsFloat32

protected float[] getAvpsAsFloat32(int code,
                                   long vendorId)

setAvpAsFloat32

protected void setAvpAsFloat32(int code,
                               long vendorId,
                               float value,
                               boolean isMandatory,
                               boolean isProtected)

getAvpAsFloat64

protected double getAvpAsFloat64(int code)

getAvpAsFloat64

protected double getAvpAsFloat64(int code,
                                 long vendorId)

getAvpsAsFloat64

protected double[] getAvpsAsFloat64(int code)

getAvpsAsFloat64

protected double[] getAvpsAsFloat64(int code,
                                    long vendorId)

setAvpAsFloat64

protected void setAvpAsFloat64(int code,
                               long vendorId,
                               float value,
                               boolean isMandatory,
                               boolean isProtected)

getAvpAsGrouped

protected byte[] getAvpAsGrouped(int code)

getAvpAsGrouped

protected byte[] getAvpAsGrouped(int code,
                                 long vendorId)

getAvpsAsGrouped

protected byte[][] getAvpsAsGrouped(int code)

getAvpsAsGrouped

protected byte[][] getAvpsAsGrouped(int code,
                                    long vendorId)

setAvpAsGrouped

protected org.jdiameter.api.AvpSet setAvpAsGrouped(int code,
                                                   long vendorId,
                                                   DiameterAvp[] childs,
                                                   boolean isMandatory,
                                                   boolean isProtected)

getAvpAsInteger32

protected int getAvpAsInteger32(int code)

getAvpAsInteger32

protected int getAvpAsInteger32(int code,
                                long vendorId)

getAvpsAsInteger32

protected int[] getAvpsAsInteger32(int code)

getAvpsAsInteger32

protected int[] getAvpsAsInteger32(int code,
                                   long vendorId)

setAvpAsInteger32

protected void setAvpAsInteger32(int code,
                                 long vendorId,
                                 int value,
                                 boolean isMandatory,
                                 boolean isProtected)

getAvpAsInteger64

protected long getAvpAsInteger64(int code)

getAvpAsInteger64

protected long getAvpAsInteger64(int code,
                                 long vendorId)

getAvpsAsInteger64

protected long[] getAvpsAsInteger64(int code)

getAvpsAsInteger64

protected long[] getAvpsAsInteger64(int code,
                                    long vendorId)

setAvpAsInteger64

protected void setAvpAsInteger64(int code,
                                 long vendorId,
                                 long value,
                                 boolean isMandatory,
                                 boolean isProtected)

getAvpAsUnsigned32

protected long getAvpAsUnsigned32(int code)

getAvpAsUnsigned32

protected long getAvpAsUnsigned32(int code,
                                  long vendorId)

getAvpsAsUnsigned32

protected long[] getAvpsAsUnsigned32(int code)

getAvpsAsUnsigned32

protected long[] getAvpsAsUnsigned32(int code,
                                     long vendorId)

setAvpAsUnsigned32

protected void setAvpAsUnsigned32(int code,
                                  long vendorId,
                                  long value,
                                  boolean isMandatory,
                                  boolean isProtected)

getAvpAsUnsigned64

protected long getAvpAsUnsigned64(int code)

getAvpAsUnsigned64

protected long getAvpAsUnsigned64(int code,
                                  long vendorId)

getAvpsAsUnsigned64

protected long[] getAvpsAsUnsigned64(int code)

getAvpsAsUnsigned64

protected long[] getAvpsAsUnsigned64(int code,
                                     long vendorId)

setAvpAsUnsigned64

protected void setAvpAsUnsigned64(int code,
                                  long vendorId,
                                  long value,
                                  boolean isMandatory,
                                  boolean isProtected)

getAvpAsUTF8String

protected java.lang.String getAvpAsUTF8String(int code)

getAvpAsUTF8String

protected java.lang.String getAvpAsUTF8String(int code,
                                              long vendorId)

getAvpsAsUTF8String

protected java.lang.String[] getAvpsAsUTF8String(int code)

getAvpsAsUTF8String

protected java.lang.String[] getAvpsAsUTF8String(int code,
                                                 long vendorId)

setAvpAsUTF8String

protected void setAvpAsUTF8String(int code,
                                  long vendorId,
                                  java.lang.String value,
                                  boolean isMandatory,
                                  boolean isProtected)

getAvpAsOctetString

protected java.lang.String getAvpAsOctetString(int code)

getAvpAsOctetString

protected java.lang.String getAvpAsOctetString(int code,
                                               long vendorId)

getAvpsAsOctetString

protected java.lang.String[] getAvpsAsOctetString(int code)

getAvpsAsOctetString

protected java.lang.String[] getAvpsAsOctetString(int code,
                                                  long vendorId)

setAvpAsOctetString

protected void setAvpAsOctetString(int code,
                                   long vendorId,
                                   java.lang.String value,
                                   boolean isMandatory,
                                   boolean isProtected)

getAvpAsRaw

protected byte[] getAvpAsRaw(int code)

getAvpAsRaw

protected byte[] getAvpAsRaw(int code,
                             long vendorId)

getAvpsAsRaw

protected byte[][] getAvpsAsRaw(int code)

getAvpsAsRaw

protected byte[][] getAvpsAsRaw(int code,
                                long vendorId)

setAvpAsRaw

protected void setAvpAsRaw(int code,
                           long vendorId,
                           byte[] value,
                           boolean isMandatory,
                           boolean isProtected)

getAvpAsCustom

protected java.lang.Object getAvpAsCustom(int code,
                                          java.lang.Class clazz)

getAvpAsCustom

protected java.lang.Object getAvpAsCustom(int code,
                                          long vendorId,
                                          java.lang.Class clazz)

getAvpsAsCustom

protected java.lang.Object[] getAvpsAsCustom(int code,
                                             java.lang.Class clazz)

getAvpsAsCustom

protected java.lang.Object[] getAvpsAsCustom(int code,
                                             long vendorId,
                                             java.lang.Class clazz)

getAvpAsDiameterIdentity

protected DiameterIdentity getAvpAsDiameterIdentity(int code)

getAvpAsDiameterIdentity

protected DiameterIdentity getAvpAsDiameterIdentity(int code,
                                                    long vendorId)

getAvpsAsDiameterIdentity

protected DiameterIdentity[] getAvpsAsDiameterIdentity(int code)

getAvpsAsDiameterIdentity

protected DiameterIdentity[] getAvpsAsDiameterIdentity(int code,
                                                       long vendorId)

getAvpAsDiameterURI

protected DiameterURI getAvpAsDiameterURI(int code)

getAvpAsDiameterURI

protected DiameterURI getAvpAsDiameterURI(int code,
                                          long vendorId)

getAvpsAsDiameterURI

protected DiameterURI[] getAvpsAsDiameterURI(int code)

getAvpsAsDiameterURI

protected DiameterURI[] getAvpsAsDiameterURI(int code,
                                             long vendorId)

getAvpAsAddress

protected Address getAvpAsAddress(int code)

getAvpAsAddress

protected Address getAvpAsAddress(int code,
                                  long vendorId)

getAvpsAsAddress

protected Address[] getAvpsAsAddress(int code)

getAvpsAsAddress

protected Address[] getAvpsAsAddress(int code,
                                     long vendorId)

getAvpAsEnumerated

protected java.lang.Object getAvpAsEnumerated(int code,
                                              java.lang.Class clazz)

getAvpAsEnumerated

protected java.lang.Object getAvpAsEnumerated(int code,
                                              long vendorId,
                                              java.lang.Class clazz)

getAvpsAsEnumerated

protected java.lang.Object[] getAvpsAsEnumerated(int code,
                                                 java.lang.Class clazz)

getAvpsAsEnumerated

protected java.lang.Object[] getAvpsAsEnumerated(int code,
                                                 long vendorId,
                                                 java.lang.Class clazz)

getAvpAsIPFilterRule

protected IPFilterRule getAvpAsIPFilterRule(int code)

getAvpAsIPFilterRule

protected IPFilterRule getAvpAsIPFilterRule(int code,
                                            long vendorId)

getAvpsAsIPFilterRule

protected IPFilterRule[] getAvpsAsIPFilterRule(int code)

getAvpsAsIPFilterRule

protected IPFilterRule[] getAvpsAsIPFilterRule(int code,
                                               long vendorId)

addAvp

protected void addAvp(java.lang.String avpName,
                      java.lang.Object avp)

addAvp

protected void addAvp(int avpCode,
                      java.lang.Object avp)

addAvp

protected void addAvp(int avpCode,
                      long vendorId,
                      java.lang.Object avp)

hasAvp

protected boolean hasAvp(int code)

hasAvp

protected boolean hasAvp(int code,
                         long vendorId)

getAvp

protected java.lang.Object getAvp(int avpCode)

getAvp

protected java.lang.Object getAvp(java.lang.String avpName)

getAvp

protected java.lang.Object getAvp(int avpCode,
                                  long vendorId)

addAvp

public void addAvp(DiameterAvp avp)

setData

public void setData(java.lang.Object d)

removeData

public java.lang.Object removeData()

getData

public java.lang.Object getData()


Copyright © 2011. All Rights Reserved.