|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CapabilitiesExchangeAnswer
Defines an interface representing the Capabilities-Exchange-Answer command. From the Diameter Base Protocol (rfc3588.txt) specification:
5.3.2. Capabilities-Exchange-Answer
The Capabilities-Exchange-Answer (CEA), indicated by the Command-Code
set to 257 and the Command Flags' 'R' bit cleared, is sent in
response to a CER message.
When Diameter is run over SCTP [SCTP], which allows connections to
span multiple interfaces, hence, multiple IP addresses, the
Capabilities-Exchange-Answer message MUST contain one Host-IP-Address
AVP for each potential IP address that MAY be locally used when
transmitting Diameter messages.
Message Format
<Capabilities-Exchange-Answer> ::= < Diameter Header: 257 >
{ Result-Code }
{ Origin-Host }
{ Origin-Realm }
1* { Host-IP-Address }
{ Vendor-Id }
{ Product-Name }
[ Origin-State-Id ]
[ Error-Message ]
* [ Failed-AVP ]
* [ Supported-Vendor-Id ]
* [ Auth-Application-Id ]
* [ Inband-Security-Id ]
* [ Acct-Application-Id ]
* [ Vendor-Specific-Application-Id ]
[ Firmware-Revision ]
* [ AVP ]
| Field Summary | |
|---|---|
static int |
commandCode
|
| Method Summary | |
|---|---|
long[] |
getAcctApplicationIds()
Returns the set of Acct-Application-Id AVPs. |
long[] |
getAuthApplicationIds()
Returns the set of Auth-Application-Id AVPs. |
java.lang.String |
getErrorMessage()
Returns the value of the Error-Message AVP, of type UTF8String. |
FailedAvp[] |
getFailedAvps()
Returns the set of Failed-AVP 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. |
long |
getOriginStateId()
Returns the value of the Origin-State-Id AVP, of type Unsigned32. |
java.lang.String |
getProductName()
Returns the value of the Product-Name AVP, of type UTF8String. |
long |
getResultCode()
Returns the value of the Result-Code AVP, of type Unsigned32. |
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 |
hasErrorMessage()
Returns true if the Error-Message AVP is present in the message. |
boolean |
hasFirmwareRevision()
Returns true if the Firmware-Revision AVP is present in the message. |
boolean |
hasOriginStateId()
Returns true if the Origin-State-Id AVP is present in the message. |
boolean |
hasProductName()
Returns true if the Product-Name AVP is present in the message. |
boolean |
hasResultCode()
Returns true if the Result-Code AVP is present in the message. |
boolean |
hasVendorId()
Returns true if the Vendor-Id AVP is present in the message. |
void |
setAcctApplicationId(long acctApplicationId)
Sets a single Acct-Application-Id AVP in the message, of type Unsigned32. |
void |
setAcctApplicationIds(long[] acctApplicationIds)
Sets the set of Acct-Application-Id AVPs, with all the values in the given array. |
void |
setAuthApplicationId(long authApplicationId)
Sets a single Auth-Application-Id AVP in the message, of type Unsigned32. |
void |
setAuthApplicationIds(long[] authApplicationIds)
Sets the set of Auth-Application-Id AVPs, with all the values in the given array. |
void |
setErrorMessage(java.lang.String errorMessage)
Sets the value of the Error-Message AVP, of type UTF8String. |
void |
setFailedAvp(FailedAvp failedAvp)
Sets a single Failed-AVP AVP in the message, of type Grouped. |
void |
setFailedAvps(FailedAvp[] failedAvps)
Sets the set of Failed-AVP 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 |
setOriginStateId(long originStateId)
Sets the value of the Origin-State-Id AVP, of type Unsigned32. |
void |
setProductName(java.lang.String productName)
Sets the value of the Product-Name AVP, of type UTF8String. |
void |
setResultCode(long resultCode)
Sets the value of the Result-Code AVP, of type Unsigned32. |
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 |
setVendorSpecificApplicationId(VendorSpecificApplicationIdAvp vendorSpecificApplicationId)
Sets a single Vendor-Specific-Application-Id AVP in the message, of type Grouped. |
void |
setVendorSpecificApplicationIds(VendorSpecificApplicationIdAvp[] vendorSpecificApplicationIds)
Sets the set of Vendor-Specific-Application-Id AVPs, with all the values in the given array. |
| 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 |
| Field Detail |
|---|
static final int commandCode
| Method Detail |
|---|
boolean hasResultCode()
long getResultCode()
hasResultCode() to check the existence of this AVP.
java.lang.IllegalStateException - if the Result-Code AVP has not been set on this messagevoid setResultCode(long resultCode)
java.lang.IllegalStateException - if setResultCode has already been calledAddressAvp[] getHostIpAddresses()
void setHostIpAddress(AddressAvp hostIpAddress)
java.lang.IllegalStateException - if setHostIpAddress or setHostIpAddresses
has already been calledvoid setHostIpAddresses(AddressAvp[] hostIpAddresses)
java.lang.IllegalStateException - if setHostIpAddress or setHostIpAddresses
has already been calledboolean hasVendorId()
long getVendorId()
hasVendorId() to check the existence of this AVP.
java.lang.IllegalStateException - if the Vendor-Id AVP has not been set on this messagevoid setVendorId(long vendorId)
java.lang.IllegalStateException - if setVendorId has already been calledboolean hasProductName()
java.lang.String getProductName()
void setProductName(java.lang.String productName)
java.lang.IllegalStateException - if setProductName has already been calledboolean hasOriginStateId()
long getOriginStateId()
hasOriginStateId() to check the existence of this AVP.
java.lang.IllegalStateException - if the Origin-State-Id AVP has not been set on this messagevoid setOriginStateId(long originStateId)
java.lang.IllegalStateException - if setOriginStateId has already been calledboolean hasErrorMessage()
java.lang.String getErrorMessage()
void setErrorMessage(java.lang.String errorMessage)
java.lang.IllegalStateException - if setErrorMessage has already been calledFailedAvp[] getFailedAvps()
void setFailedAvp(FailedAvp failedAvp)
java.lang.IllegalStateException - if setFailedAvp or setFailedAvps
has already been calledvoid setFailedAvps(FailedAvp[] failedAvps)
java.lang.IllegalStateException - if setFailedAvp or setFailedAvps
has already been calledlong[] getSupportedVendorIds()
void setSupportedVendorId(long supportedVendorId)
java.lang.IllegalStateException - if setSupportedVendorId or setSupportedVendorIds
has already been calledvoid setSupportedVendorIds(long[] supportedVendorIds)
java.lang.IllegalStateException - if setSupportedVendorId or setSupportedVendorIds
has already been calledlong[] getAuthApplicationIds()
void setAuthApplicationId(long authApplicationId)
java.lang.IllegalStateException - if setAuthApplicationId or setAuthApplicationIds
has already been calledvoid setAuthApplicationIds(long[] authApplicationIds)
java.lang.IllegalStateException - if setAuthApplicationId or setAuthApplicationIds
has already been calledlong[] getInbandSecurityIds()
void setInbandSecurityId(long inbandSecurityId)
java.lang.IllegalStateException - if setInbandSecurityId or setInbandSecurityIds
has already been calledvoid setInbandSecurityIds(long[] inbandSecurityIds)
java.lang.IllegalStateException - if setInbandSecurityId or setInbandSecurityIds
has already been calledlong[] getAcctApplicationIds()
void setAcctApplicationId(long acctApplicationId)
java.lang.IllegalStateException - if setAcctApplicationId or setAcctApplicationIds
has already been calledvoid setAcctApplicationIds(long[] acctApplicationIds)
java.lang.IllegalStateException - if setAcctApplicationId or setAcctApplicationIds
has already been calledVendorSpecificApplicationIdAvp[] getVendorSpecificApplicationIds()
void setVendorSpecificApplicationId(VendorSpecificApplicationIdAvp vendorSpecificApplicationId)
java.lang.IllegalStateException - if setVendorSpecificApplicationId or setVendorSpecificApplicationIds
has already been calledvoid setVendorSpecificApplicationIds(VendorSpecificApplicationIdAvp[] vendorSpecificApplicationIds)
java.lang.IllegalStateException - if setVendorSpecificApplicationId or setVendorSpecificApplicationIds
has already been calledboolean hasFirmwareRevision()
long getFirmwareRevision()
hasFirmwareRevision() to check the existence of this AVP.
java.lang.IllegalStateException - if the Firmware-Revision AVP has not been set on this messagevoid setFirmwareRevision(long firmwareRevision)
java.lang.IllegalStateException - if setFirmwareRevision has already been called
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||