|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DisconnectPeerAnswer
Defines an interface representing the Disconnect-Peer-Answer command. From the Diameter Base Protocol (rfc3588.txt) specification:
5.4.2. Disconnect-Peer-Answer
The Disconnect-Peer-Answer (DPA), indicated by the Command-Code set
to 282 and the Command Flags' 'R' bit cleared, is sent as a response
to the Disconnect-Peer-Request message. Upon receipt of this
message, the transport connection is shutdown.
Message Format
<Disconnect-Peer-Answer> ::= < Diameter Header: 282 >
{ Result-Code }
{ Origin-Host }
{ Origin-Realm }
[ Error-Message ]
* [ Failed-AVP ]
| 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 |
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 |
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 |
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 called
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||