|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DeviceWatchdogAnswer
Defines an interface representing the Device-Watchdog-Answer command. From the Diameter Base Protocol (rfc3588.txt) specification:
5.5.2. Device-Watchdog-Answer
The Device-Watchdog-Answer (DWA), indicated by the Command-Code set
to 280 and the Command Flags' 'R' bit cleared, is sent as a response
to the Device-Watchdog-Request message.
Message Format
<Device-Watchdog-Answer> ::= < Diameter Header: 280 >
{ Result-Code }
{ Origin-Host }
{ Origin-Realm }
[ Error-Message ]
* [ Failed-AVP ]
[ Origin-State-Id ]
| Field Summary | |
|---|---|
static int |
commandCode
|
| Method Summary | |
|---|---|
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 |
getOriginStateId()
Returns the value of the Origin-State-Id AVP, of type Unsigned32. |
long |
getResultCode()
Returns the value of the Result-Code AVP, of type Unsigned32. |
boolean |
hasErrorMessage()
Returns true if the Error-Message AVP is present in the message. |
boolean |
hasOriginStateId()
Returns true if the Origin-State-Id AVP is present in the message. |
boolean |
hasResultCode()
Returns true if the Result-Code AVP is present in the message. |
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 |
setOriginStateId(long originStateId)
Sets the value of the Origin-State-Id AVP, of type Unsigned32. |
void |
setResultCode(long resultCode)
Sets the value of the Result-Code AVP, of type Unsigned32. |
| 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 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 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 called
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||