public interface AbortSessionRequest extends DiameterMessage
8.5.1. Abort-Session-Request
The Abort-Session-Request (ASR), indicated by the Command Code set to
274 and the message flags' 'R' bit set, may be sent by any Diameter
server or any Diameter proxy to the access device that is providing
session service, to request that the session identified by the
Session-Id be stopped.
Message Format
<Abort-Session-Request> ::= < Diameter Header: 274, REQ, PXY >
< Session-Id >
{ Origin-Host }
{ Origin-Realm }
{ Destination-Realm }
{ Destination-Host }
{ Auth-Application-Id }
[ User-Name ]
[ Origin-State-Id ]
* [ Proxy-Info ]
* [ Route-Record ]
* [ AVP ]
| Modifier and Type | Field and Description |
|---|---|
static int |
commandCode |
| Modifier and Type | Method and Description |
|---|---|
long |
getAuthApplicationId()
Returns the value of the Auth-Application-Id AVP, of type Unsigned32.
|
DiameterIdentity |
getDestinationHost()
Returns the value of the Destination-Host AVP, of type DiameterIdentity.
|
DiameterIdentity |
getDestinationRealm()
Returns the value of the Destination-Realm AVP, of type DiameterIdentity.
|
DiameterAvp[] |
getExtensionAvps()
Returns the set of extension AVPs.
|
DiameterIdentity |
getOriginHost()
Returns the value of the Origin-Host AVP, of type DiameterIdentity.
|
DiameterIdentity |
getOriginRealm()
Returns the value of the Origin-Realm AVP, of type DiameterIdentity.
|
long |
getOriginStateId()
Returns the value of the Origin-State-Id AVP, of type Unsigned32.
|
ProxyInfo[] |
getProxyInfos()
Returns the set of Proxy-Info AVPs.
|
DiameterIdentity[] |
getRouteRecords()
Returns the set of Route-Record AVPs.
|
java.lang.String |
getSessionId()
Returns the value of the Session-Id AVP, of type UTF8String.
|
java.lang.String |
getUserName()
Returns the value of the User-Name AVP, of type UTF8String.
|
boolean |
hasAuthApplicationId()
Returns true if the Auth-Application-Id AVP is present in the message.
|
boolean |
hasDestinationHost()
Returns true if the Destination-Host AVP is present in the message.
|
boolean |
hasDestinationRealm()
Returns true if the Destination-Realm AVP is present in the message.
|
boolean |
hasOriginHost()
Returns true if the Origin-Host AVP is present in the message.
|
boolean |
hasOriginRealm()
Returns true if the Origin-Realm AVP is present in the message.
|
boolean |
hasOriginStateId()
Returns true if the Origin-State-Id AVP is present in the message.
|
boolean |
hasSessionId()
Returns true if the Session-Id AVP is present in the message.
|
boolean |
hasUserName()
Returns true if the User-Name AVP is present in the message.
|
void |
removeAuthApplicationId()
Removes the Auth-Application-Id AVP from the message.
|
void |
removeDestinationHost()
Removes the Destination-Host AVP from the message.
|
void |
removeDestinationRealm()
Removes the Destination-Realm AVP from the message.
|
void |
removeExtensionAvps()
Removes all extension AVPs from the message.
|
void |
removeOriginHost()
Removes the Origin-Host AVP from the message.
|
void |
removeOriginRealm()
Removes the Origin-Realm AVP from the message.
|
void |
removeOriginStateId()
Removes the Origin-State-Id AVP from the message.
|
void |
removeProxyInfos()
Removes all Proxy-Info AVPs from the message.
|
void |
removeRouteRecords()
Removes all Route-Record AVPs from the message.
|
void |
removeSessionId()
Removes the Session-Id AVP from the message.
|
void |
removeUserName()
Removes the User-Name AVP from the message.
|
void |
setAuthApplicationId(long authApplicationId)
Sets the value of the Auth-Application-Id AVP, of type Unsigned32.
|
void |
setDestinationHost(DiameterIdentity destinationHost)
Sets the value of the Destination-Host AVP, of type DiameterIdentity.
|
void |
setDestinationRealm(DiameterIdentity destinationRealm)
Sets the value of the Destination-Realm AVP, of type DiameterIdentity.
|
void |
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array.
|
void |
setOriginHost(DiameterIdentity originHost)
Sets the value of the Origin-Host AVP, of type DiameterIdentity.
|
void |
setOriginRealm(DiameterIdentity originRealm)
Sets the value of the Origin-Realm AVP, of type DiameterIdentity.
|
void |
setOriginStateId(long originStateId)
Sets the value of the Origin-State-Id AVP, of type Unsigned32.
|
void |
setProxyInfo(ProxyInfo proxyInfo)
Sets a single Proxy-Info AVP in the message, of type Grouped.
|
void |
setProxyInfos(ProxyInfo[] proxyInfos)
Sets the set of Proxy-Info AVPs, with all the values in the given array.
|
void |
setRouteRecord(DiameterIdentity routeRecord)
Sets a single Route-Record AVP in the message, of type DiameterIdentity.
|
void |
setRouteRecords(DiameterIdentity[] routeRecords)
Sets the set of Route-Record AVPs, with all the values in the given array.
|
void |
setSessionId(java.lang.String sessionId)
Sets the value of the Session-Id AVP, of type UTF8String.
|
void |
setUserName(java.lang.String userName)
Sets the value of the User-Name AVP, of type UTF8String.
|
clone, getAvps, getCommand, getHeaderstatic final int commandCode
boolean hasSessionId()
java.lang.String getSessionId()
getSessionId in interface DiameterMessagevoid setSessionId(java.lang.String sessionId)
setSessionId in interface DiameterMessagejava.lang.NullPointerException - if sessionId is null.void removeSessionId()
boolean hasOriginHost()
DiameterIdentity getOriginHost()
getOriginHost in interface DiameterMessagevoid setOriginHost(DiameterIdentity originHost)
setOriginHost in interface DiameterMessagejava.lang.NullPointerException - if originHost is null.void removeOriginHost()
boolean hasOriginRealm()
DiameterIdentity getOriginRealm()
getOriginRealm in interface DiameterMessagevoid setOriginRealm(DiameterIdentity originRealm)
setOriginRealm in interface DiameterMessagejava.lang.NullPointerException - if originRealm is null.void removeOriginRealm()
boolean hasDestinationRealm()
DiameterIdentity getDestinationRealm()
getDestinationRealm in interface DiameterMessagevoid setDestinationRealm(DiameterIdentity destinationRealm)
setDestinationRealm in interface DiameterMessagejava.lang.NullPointerException - if destinationRealm is null.void removeDestinationRealm()
boolean hasDestinationHost()
DiameterIdentity getDestinationHost()
getDestinationHost in interface DiameterMessagevoid setDestinationHost(DiameterIdentity destinationHost)
setDestinationHost in interface DiameterMessagejava.lang.NullPointerException - if destinationHost is null.void removeDestinationHost()
boolean hasAuthApplicationId()
long getAuthApplicationId()
hasAuthApplicationId() to check the existence of this AVP.java.lang.IllegalStateException - if the Auth-Application-Id AVP has not been set on this messagevoid setAuthApplicationId(long authApplicationId)
void removeAuthApplicationId()
boolean hasUserName()
java.lang.String getUserName()
void setUserName(java.lang.String userName)
java.lang.NullPointerException - if userName is null.void removeUserName()
boolean 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)
void removeOriginStateId()
ProxyInfo[] getProxyInfos()
void setProxyInfo(ProxyInfo proxyInfo)
java.lang.NullPointerException - if proxyInfo is null.void setProxyInfos(ProxyInfo[] proxyInfos)
java.lang.NullPointerException - if proxyInfos is null.void removeProxyInfos()
DiameterIdentity[] getRouteRecords()
void setRouteRecord(DiameterIdentity routeRecord)
java.lang.NullPointerException - if routeRecord is null.void setRouteRecords(DiameterIdentity[] routeRecords)
java.lang.NullPointerException - if routeRecords is null.void removeRouteRecords()
DiameterAvp[] getExtensionAvps()
void setExtensionAvps(DiameterAvp[] avps) throws AvpNotAllowedException
AvpNotAllowedException - if an AVP is encountered of a type already known to this class
(i.e. an AVP for which get/set methods already appear in this class)java.lang.NullPointerException - if avps is null.void removeExtensionAvps()