|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AbortSessionAnswer
Defines an interface representing the Abort-Session-Answer command. From the Diameter Base Protocol (rfc3588.txt) specification:
8.5.2. Abort-Session-Answer
The Abort-Session-Answer (ASA), indicated by the Command-Code set to
274 and the message flags' 'R' bit clear, is sent in response to the
ASR. The Result-Code AVP MUST be present, and indicates the
disposition of the request.
If the session identified by Session-Id in the ASR was successfully
terminated, Result-Code is set to DIAMETER_SUCCESS. If the session
is not currently active, Result-Code is set to
DIAMETER_UNKNOWN_SESSION_ID. If the access device does not stop the
session for any other reason, Result-Code is set to
DIAMETER_UNABLE_TO_COMPLY.
Message Format
<Abort-Session-Answer> ::= < Diameter Header: 274, PXY >
< Session-Id >
{ Result-Code }
{ Origin-Host }
{ Origin-Realm }
[ User-Name ]
[ Origin-State-Id ]
[ Error-Message ]
[ Error-Reporting-Host ]
* [ Failed-AVP ]
* [ Redirect-Host ]
[ Redirect-Host-Usage ]
[ Redirect-Max-Cache-Time ]
* [ Proxy-Info ]
* [ AVP ]
| Field Summary | |
|---|---|
static int |
commandCode
|
| Method Summary | |
|---|---|
java.lang.String |
getErrorMessage()
Returns the value of the Error-Message AVP, of type UTF8String. |
DiameterIdentityAvp |
getErrorReportingHost()
Returns the value of the Error-Reporting-Host AVP, of type DiameterIdentity. |
FailedAvp[] |
getFailedAvps()
Returns the set of Failed-AVP AVPs. |
long |
getOriginStateId()
Returns the value of the Origin-State-Id AVP, of type Unsigned32. |
ProxyInfoAvp[] |
getProxyInfos()
Returns the set of Proxy-Info AVPs. |
DiameterURIAvp[] |
getRedirectHosts()
Returns the set of Redirect-Host AVPs. |
RedirectHostUsageType |
getRedirectHostUsage()
Returns the value of the Redirect-Host-Usage AVP, of type Enumerated. |
long |
getRedirectMaxCacheTime()
Returns the value of the Redirect-Max-Cache-Time AVP, of type Unsigned32. |
long |
getResultCode()
Returns the value of the Result-Code AVP, of type Unsigned32. |
java.lang.String |
getUserName()
Returns the value of the User-Name AVP, of type UTF8String. |
boolean |
hasErrorMessage()
Returns true if the Error-Message AVP is present in the message. |
boolean |
hasErrorReportingHost()
Returns true if the Error-Reporting-Host AVP is present in the message. |
boolean |
hasOriginStateId()
Returns true if the Origin-State-Id AVP is present in the message. |
boolean |
hasRedirectHostUsage()
Returns true if the Redirect-Host-Usage AVP is present in the message. |
boolean |
hasRedirectMaxCacheTime()
Returns true if the Redirect-Max-Cache-Time AVP is present in the message. |
boolean |
hasResultCode()
Returns true if the Result-Code AVP is present in the message. |
boolean |
hasUserName()
Returns true if the User-Name AVP is present in the message. |
void |
setErrorMessage(java.lang.String errorMessage)
Sets the value of the Error-Message AVP, of type UTF8String. |
void |
setErrorReportingHost(DiameterIdentityAvp errorReportingHost)
Sets the value of the Error-Reporting-Host AVP, of type DiameterIdentity. |
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 |
setProxyInfo(ProxyInfoAvp proxyInfo)
Sets a single Proxy-Info AVP in the message, of type Grouped. |
void |
setProxyInfos(ProxyInfoAvp[] proxyInfos)
Sets the set of Proxy-Info AVPs, with all the values in the given array. |
void |
setRedirectHost(DiameterURIAvp redirectHost)
Sets a single Redirect-Host AVP in the message, of type DiameterURI. |
void |
setRedirectHosts(DiameterURIAvp[] redirectHosts)
Sets the set of Redirect-Host AVPs, with all the values in the given array. |
void |
setRedirectHostUsage(RedirectHostUsageType redirectHostUsage)
Sets the value of the Redirect-Host-Usage AVP, of type Enumerated. |
void |
setRedirectMaxCacheTime(long redirectMaxCacheTime)
Sets the value of the Redirect-Max-Cache-Time AVP, of type Unsigned32. |
void |
setResultCode(long resultCode)
Sets the value of the Result-Code AVP, of type Unsigned32. |
void |
setUserName(java.lang.String userName)
Sets the value of the User-Name AVP, of type UTF8String. |
| 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 hasUserName()
java.lang.String getUserName()
void setUserName(java.lang.String userName)
java.lang.IllegalStateException - if setUserName 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 calledboolean hasErrorReportingHost()
DiameterIdentityAvp getErrorReportingHost()
void setErrorReportingHost(DiameterIdentityAvp errorReportingHost)
java.lang.IllegalStateException - if setErrorReportingHost 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 calledDiameterURIAvp[] getRedirectHosts()
void setRedirectHost(DiameterURIAvp redirectHost)
java.lang.IllegalStateException - if setRedirectHost or setRedirectHosts
has already been calledvoid setRedirectHosts(DiameterURIAvp[] redirectHosts)
java.lang.IllegalStateException - if setRedirectHost or setRedirectHosts
has already been calledboolean hasRedirectHostUsage()
RedirectHostUsageType getRedirectHostUsage()
void setRedirectHostUsage(RedirectHostUsageType redirectHostUsage)
java.lang.IllegalStateException - if setRedirectHostUsage has already been calledboolean hasRedirectMaxCacheTime()
long getRedirectMaxCacheTime()
hasRedirectMaxCacheTime() to check the existence of this AVP.
java.lang.IllegalStateException - if the Redirect-Max-Cache-Time AVP has not been set on this messagevoid setRedirectMaxCacheTime(long redirectMaxCacheTime)
java.lang.IllegalStateException - if setRedirectMaxCacheTime has already been calledProxyInfoAvp[] getProxyInfos()
void setProxyInfo(ProxyInfoAvp proxyInfo)
java.lang.IllegalStateException - if setProxyInfo or setProxyInfos
has already been calledvoid setProxyInfos(ProxyInfoAvp[] proxyInfos)
java.lang.IllegalStateException - if setProxyInfo or setProxyInfos
has already been called
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||