|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SessionTerminationAnswer
Defines an interface representing the Session-Termination-Answer command. From the Diameter Base Protocol (rfc3588.txt) specification:
8.4.2. Session-Termination-Answer
The Session-Termination-Answer (STA), indicated by the Command-Code
set to 275 and the message flags' 'R' bit clear, is sent by the
Diameter Server to acknowledge the notification that the session has
been terminated. The Result-Code AVP MUST be present, and MAY
contain an indication that an error occurred while servicing the STR.
Upon sending or receipt of the STA, the Diameter Server MUST release
all resources for the session indicated by the Session-Id AVP. Any
intermediate server in the Proxy-Chain MAY also release any
resources, if necessary.
Message Format
<Session-Termination-Answer> ::= < Diameter Header: 275, PXY >
< Session-Id >
{ Result-Code }
{ Origin-Host }
{ Origin-Realm }
[ User-Name ]
* [ Class ]
[ Error-Message ]
[ Error-Reporting-Host ]
* [ Failed-AVP ]
[ Origin-State-Id ]
* [ Redirect-Host ]
[ Redirect-Host-Usage ]
[ Redirect-Max-Cache-Time ]
* [ Proxy-Info ]
* [ AVP ]
| Field Summary | |
|---|---|
static int |
commandCode
|
| Method Summary | |
|---|---|
byte[][] |
getClassAvps()
Returns the set of Class AVPs. |
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 |
setClassAvp(byte[] classAvp)
Sets a single Class AVP in the message, of type OctetString. |
void |
setClassAvps(byte[][] classAvps)
Sets the set of Class 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 |
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 calledbyte[][] getClassAvps()
void setClassAvp(byte[] classAvp)
java.lang.IllegalStateException - if setClassAvp or setClassAvps has already been calledvoid setClassAvps(byte[][] classAvps)
java.lang.IllegalStateException - if setClassAvp or setClassAvps 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 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 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 | |||||||||