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

java.lang.Object
  extended by org.mobicents.slee.resource.diameter.base.events.DiameterMessageImpl
      extended by org.mobicents.slee.resource.diameter.base.events.ExtensionDiameterMessageImpl
          extended by org.mobicents.slee.resource.diameter.base.events.CapabilitiesExchangeAnswerImpl
All Implemented Interfaces:
java.lang.Cloneable, CapabilitiesExchangeAnswer, DiameterMessage, ExtensionDiameterMessage
Direct Known Subclasses:
CapabilitiesExchangeRequestImpl

public class CapabilitiesExchangeAnswerImpl
extends ExtensionDiameterMessageImpl
implements CapabilitiesExchangeAnswer


Field Summary
 
Fields inherited from class org.mobicents.slee.resource.diameter.base.events.DiameterMessageImpl
destinationHostMandatory, destinationRealmMandatory, log, message, originHostMandatory, originRealmMandatory
 
Fields inherited from interface net.java.slee.resource.diameter.base.events.CapabilitiesExchangeAnswer
commandCode
 
Fields inherited from interface net.java.slee.resource.diameter.base.events.ExtensionDiameterMessage
commandCode
 
Constructor Summary
CapabilitiesExchangeAnswerImpl(org.jdiameter.api.Message message)
           
 
Method Summary
 long[] getAcctApplicationIds()
          Returns the set of Acct-Application-Id AVPs.
 long[] getAuthApplicationIds()
          Returns the set of Auth-Application-Id AVPs.
 long getFirmwareRevision()
          Returns the value of the Firmware-Revision AVP, of type Unsigned32.
 AddressAvp[] getHostIpAddresses()
          Returns the set of Host-IP-Address AVPs.
 long[] getInbandSecurityIds()
          Returns the set of Inband-Security-Id AVPs.
 java.lang.String getLongName()
          This method returns long name of this message type - Like Device-Watchdog-Request
 java.lang.String getProductName()
          Returns the value of the Product-Name AVP, of type UTF8String.
 java.lang.String getShortName()
          This method return short name of this message type - for instance DWR,DWA for DeviceWatchdog message
 long[] getSupportedVendorIds()
          Returns the set of Supported-Vendor-Id AVPs.
 long getVendorId()
          Returns the value of the Vendor-Id AVP, of type Unsigned32.
 VendorSpecificApplicationIdAvp[] getVendorSpecificApplicationIds()
          Returns the set of Vendor-Specific-Application-Id AVPs.
 boolean hasFirmwareRevision()
          Returns true if the Firmware-Revision AVP is present in the message.
 boolean hasProductName()
          Returns true if the Product-Name AVP is present in the message.
 boolean hasVendorId()
          Returns true if the Vendor-Id AVP is present in the message.
 void setAcctApplicationIds(long[] acctApplicationIds)
          Sets the set of Acct-Application-Id AVPs, with all the values in the given array.
 void setAuthApplicationIds(long[] authApplicationIds)
          Sets the set of Auth-Application-Id AVPs, with all the values in the given array.
 void setFirmwareRevision(long firmwareRevision)
          Sets the value of the Firmware-Revision AVP, of type Unsigned32.
 void setHostIpAddress(AddressAvp hostIpAddress)
          Sets a single Host-IP-Address AVP in the message, of type Address.
 void setHostIpAddresses(AddressAvp[] hostIpAddresses)
          Sets the set of Host-IP-Address AVPs, with all the values in the given array.
 void setInbandSecurityId(long inbandSecurityId)
          Sets a single Inband-Security-Id AVP in the message, of type Unsigned32.
 void setInbandSecurityIds(long[] inbandSecurityIds)
          Sets the set of Inband-Security-Id AVPs, with all the values in the given array.
 void setProductName(java.lang.String productName)
          Sets the value of the Product-Name AVP, of type UTF8String.
 void setSupportedVendorId(long supportedVendorId)
          Sets a single Supported-Vendor-Id AVP in the message, of type Unsigned32.
 void setSupportedVendorIds(long[] supportedVendorIds)
          Sets the set of Supported-Vendor-Id AVPs, with all the values in the given array.
 void setVendorId(long vendorId)
          Sets the value of the Vendor-Id AVP, of type Unsigned32.
 void setVendorSpecificApplicationIds(VendorSpecificApplicationIdAvp[] vendorSpecificApplicationIds)
          Sets the set of Vendor-Specific-Application-Id AVPs, with all the values in the given array.
 
Methods inherited from class org.mobicents.slee.resource.diameter.base.events.DiameterMessageImpl
addAvp, addAvpAsByteArray, clone, getAcctApplicationId, getAllAvpAsIdentity, getAuthApplicationId, getAvpAsAddress, getAvpAsDate, getAvpAsIdentity, getAvpAsInt32, getAvpAsUInt32, getAvpAsUtf8, getAvps, getAvpsAsInt32, getAvpsAsUInt32, getCommand, getDestinationHost, getDestinationRealm, getErrorMessage, getErrorReportingHost, getEventTimestamp, getExtensionAvps, getFailedAvps, getGenericData, getHeader, getOriginHost, getOriginRealm, getOriginStateId, getProxyInfos, getRedirectHosts, getRedirectHostUsage, getRedirectMaxCacheTime, getResultCode, getRouteRecords, getSessionId, getUserName, getVendorSpecificApplicationId, hasAcctApplicationId, hasAuthApplicationId, hasDestinationHost, hasDestinationRealm, hasErrorMessage, hasErrorReportingHost, hasEventTimestamp, hasOriginHost, hasOriginRealm, hasOriginStateId, hasRedirectHostUsage, hasRedirectMaxCacheTime, hasResultCode, hasSessionId, hasUserName, hasVendorSpecificApplicationId, setAcctApplicationId, setAuthApplicationId, setAvpAsAddress, setAvpAsDate, setAvpAsGroup, setAvpAsIdentity, setAvpAsInt32, setAvpAsUInt32, setAvpAsUtf8, setAvpsAsUInt32, setDestinationHost, setDestinationRealm, setErrorMessage, setErrorReportingHost, setEventTimestamp, setExtensionAvps, setFailedAvp, setFailedAvps, setOriginHost, setOriginRealm, setOriginStateId, setProxyInfo, setProxyInfos, setRedirectHost, setRedirectHosts, setRedirectHostUsage, setRedirectMaxCacheTime, setResultCode, setRouteRecord, setRouteRecords, setSessionId, setUserName, setVendorSpecificApplicationId, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.java.slee.resource.diameter.base.events.CapabilitiesExchangeAnswer
getErrorMessage, getFailedAvps, getOriginStateId, getResultCode, hasErrorMessage, hasOriginStateId, hasResultCode, setAcctApplicationId, setAuthApplicationId, setErrorMessage, setFailedAvp, setFailedAvps, setOriginStateId, setResultCode, setVendorSpecificApplicationId
 
Methods inherited from interface net.java.slee.resource.diameter.base.events.DiameterMessage
clone, getAvps, getCommand, getDestinationHost, getDestinationRealm, getExtensionAvps, getHeader, getOriginHost, getOriginRealm, getSessionId, hasOriginHost, hasOriginRealm, hasSessionId, setDestinationHost, setDestinationRealm, setExtensionAvps, setOriginHost, setOriginRealm, setSessionId
 
Methods inherited from interface net.java.slee.resource.diameter.base.events.ExtensionDiameterMessage
hasDestinationHost, hasDestinationRealm
 

Constructor Detail

CapabilitiesExchangeAnswerImpl

public CapabilitiesExchangeAnswerImpl(org.jdiameter.api.Message message)
Method Detail

getLongName

public java.lang.String getLongName()
Description copied from class: DiameterMessageImpl
This method returns long name of this message type - Like Device-Watchdog-Request

Overrides:
getLongName in class ExtensionDiameterMessageImpl
Returns:

getShortName

public java.lang.String getShortName()
Description copied from class: DiameterMessageImpl
This method return short name of this message type - for instance DWR,DWA for DeviceWatchdog message

Overrides:
getShortName in class ExtensionDiameterMessageImpl
Returns:

getAcctApplicationIds

public long[] getAcctApplicationIds()
Description copied from interface: CapabilitiesExchangeAnswer
Returns the set of Acct-Application-Id AVPs. The returned array contains the AVPs in the order they appear in the message. A return value of null implies that no Acct-Application-Id AVPs have been set. The elements in the given array are long objects.

Specified by:
getAcctApplicationIds in interface CapabilitiesExchangeAnswer

getAuthApplicationIds

public long[] getAuthApplicationIds()
Description copied from interface: CapabilitiesExchangeAnswer
Returns the set of Auth-Application-Id AVPs. The returned array contains the AVPs in the order they appear in the message. A return value of null implies that no Auth-Application-Id AVPs have been set. The elements in the given array are long objects.

Specified by:
getAuthApplicationIds in interface CapabilitiesExchangeAnswer

getFirmwareRevision

public long getFirmwareRevision()
Description copied from interface: CapabilitiesExchangeAnswer
Returns the value of the Firmware-Revision AVP, of type Unsigned32. Use CapabilitiesExchangeAnswer.hasFirmwareRevision() to check the existence of this AVP.

Specified by:
getFirmwareRevision in interface CapabilitiesExchangeAnswer
Returns:
the value of the Firmware-Revision AVP

getHostIpAddresses

public AddressAvp[] getHostIpAddresses()
Description copied from interface: CapabilitiesExchangeAnswer
Returns the set of Host-IP-Address AVPs. The returned array contains the AVPs in the order they appear in the message. A return value of null implies that no Host-IP-Address AVPs have been set. The elements in the given array are Address objects.

Specified by:
getHostIpAddresses in interface CapabilitiesExchangeAnswer

getInbandSecurityIds

public long[] getInbandSecurityIds()
Description copied from interface: CapabilitiesExchangeAnswer
Returns the set of Inband-Security-Id AVPs. The returned array contains the AVPs in the order they appear in the message. A return value of null implies that no Inband-Security-Id AVPs have been set. The elements in the given array are long objects.

Specified by:
getInbandSecurityIds in interface CapabilitiesExchangeAnswer

getProductName

public java.lang.String getProductName()
Description copied from interface: CapabilitiesExchangeAnswer
Returns the value of the Product-Name AVP, of type UTF8String.

Specified by:
getProductName in interface CapabilitiesExchangeAnswer
Returns:
the value of the Product-Name AVP or null if it has not been set on this message

getSupportedVendorIds

public long[] getSupportedVendorIds()
Description copied from interface: CapabilitiesExchangeAnswer
Returns the set of Supported-Vendor-Id AVPs. The returned array contains the AVPs in the order they appear in the message. A return value of null implies that no Supported-Vendor-Id AVPs have been set. The elements in the given array are long objects.

Specified by:
getSupportedVendorIds in interface CapabilitiesExchangeAnswer

getVendorId

public long getVendorId()
Description copied from interface: CapabilitiesExchangeAnswer
Returns the value of the Vendor-Id AVP, of type Unsigned32. Use CapabilitiesExchangeAnswer.hasVendorId() to check the existence of this AVP.

Specified by:
getVendorId in interface CapabilitiesExchangeAnswer
Returns:
the value of the Vendor-Id AVP

getVendorSpecificApplicationIds

public VendorSpecificApplicationIdAvp[] getVendorSpecificApplicationIds()
Description copied from interface: CapabilitiesExchangeAnswer
Returns the set of Vendor-Specific-Application-Id AVPs. The returned array contains the AVPs in the order they appear in the message. A return value of null implies that no Vendor-Specific-Application-Id AVPs have been set. The elements in the given array are VendorSpecificApplicationId objects.

Specified by:
getVendorSpecificApplicationIds in interface CapabilitiesExchangeAnswer

hasFirmwareRevision

public boolean hasFirmwareRevision()
Description copied from interface: CapabilitiesExchangeAnswer
Returns true if the Firmware-Revision AVP is present in the message.

Specified by:
hasFirmwareRevision in interface CapabilitiesExchangeAnswer

hasProductName

public boolean hasProductName()
Description copied from interface: CapabilitiesExchangeAnswer
Returns true if the Product-Name AVP is present in the message.

Specified by:
hasProductName in interface CapabilitiesExchangeAnswer

hasVendorId

public boolean hasVendorId()
Description copied from interface: CapabilitiesExchangeAnswer
Returns true if the Vendor-Id AVP is present in the message.

Specified by:
hasVendorId in interface CapabilitiesExchangeAnswer

setAcctApplicationIds

public void setAcctApplicationIds(long[] acctApplicationIds)
Description copied from interface: CapabilitiesExchangeAnswer
Sets the set of Acct-Application-Id 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 getAcctApplicationIds() is not guaranteed to return the same array instance, e.g. an "==" check would fail.

Specified by:
setAcctApplicationIds in interface CapabilitiesExchangeAnswer

setAuthApplicationIds

public void setAuthApplicationIds(long[] authApplicationIds)
Description copied from interface: CapabilitiesExchangeAnswer
Sets the set of Auth-Application-Id 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 getAuthApplicationIds() is not guaranteed to return the same array instance, e.g. an "==" check would fail.

Specified by:
setAuthApplicationIds in interface CapabilitiesExchangeAnswer

setFirmwareRevision

public void setFirmwareRevision(long firmwareRevision)
Description copied from interface: CapabilitiesExchangeAnswer
Sets the value of the Firmware-Revision AVP, of type Unsigned32.

Specified by:
setFirmwareRevision in interface CapabilitiesExchangeAnswer

setHostIpAddress

public void setHostIpAddress(AddressAvp hostIpAddress)
Description copied from interface: CapabilitiesExchangeAnswer
Sets a single Host-IP-Address AVP in the message, of type Address.

Specified by:
setHostIpAddress in interface CapabilitiesExchangeAnswer

setHostIpAddresses

public void setHostIpAddresses(AddressAvp[] hostIpAddresses)
Description copied from interface: CapabilitiesExchangeAnswer
Sets the set of Host-IP-Address 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 getHostIpAddresses() is not guaranteed to return the same array instance, e.g. an "==" check would fail.

Specified by:
setHostIpAddresses in interface CapabilitiesExchangeAnswer

setInbandSecurityId

public void setInbandSecurityId(long inbandSecurityId)
Description copied from interface: CapabilitiesExchangeAnswer
Sets a single Inband-Security-Id AVP in the message, of type Unsigned32.

Specified by:
setInbandSecurityId in interface CapabilitiesExchangeAnswer

setInbandSecurityIds

public void setInbandSecurityIds(long[] inbandSecurityIds)
Description copied from interface: CapabilitiesExchangeAnswer
Sets the set of Inband-Security-Id 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 getInbandSecurityIds() is not guaranteed to return the same array instance, e.g. an "==" check would fail.

Specified by:
setInbandSecurityIds in interface CapabilitiesExchangeAnswer

setProductName

public void setProductName(java.lang.String productName)
Description copied from interface: CapabilitiesExchangeAnswer
Sets the value of the Product-Name AVP, of type UTF8String.

Specified by:
setProductName in interface CapabilitiesExchangeAnswer

setSupportedVendorId

public void setSupportedVendorId(long supportedVendorId)
Description copied from interface: CapabilitiesExchangeAnswer
Sets a single Supported-Vendor-Id AVP in the message, of type Unsigned32.

Specified by:
setSupportedVendorId in interface CapabilitiesExchangeAnswer

setSupportedVendorIds

public void setSupportedVendorIds(long[] supportedVendorIds)
Description copied from interface: CapabilitiesExchangeAnswer
Sets the set of Supported-Vendor-Id 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 getSupportedVendorIds() is not guaranteed to return the same array instance, e.g. an "==" check would fail.

Specified by:
setSupportedVendorIds in interface CapabilitiesExchangeAnswer

setVendorId

public void setVendorId(long vendorId)
Description copied from interface: CapabilitiesExchangeAnswer
Sets the value of the Vendor-Id AVP, of type Unsigned32.

Specified by:
setVendorId in interface CapabilitiesExchangeAnswer

setVendorSpecificApplicationIds

public void setVendorSpecificApplicationIds(VendorSpecificApplicationIdAvp[] vendorSpecificApplicationIds)
Description copied from interface: CapabilitiesExchangeAnswer
Sets the set of Vendor-Specific-Application-Id 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 getVendorSpecificApplicationIds() is not guaranteed to return the same array instance, e.g. an "==" check would fail.

Specified by:
setVendorSpecificApplicationIds in interface CapabilitiesExchangeAnswer


Copyright © 2008. All Rights Reserved.