org.mobicents.slee.resource.diameter.base.events
Class SessionTerminationRequestImpl

java.lang.Object
  extended by org.mobicents.slee.resource.diameter.base.events.DiameterMessageImpl
      extended by org.mobicents.slee.resource.diameter.base.events.ExtensionDiameterMessageImpl
          extended by org.mobicents.slee.resource.diameter.base.events.SessionTerminationAnswerImpl
              extended by org.mobicents.slee.resource.diameter.base.events.SessionTerminationRequestImpl
All Implemented Interfaces:
java.lang.Cloneable, DiameterMessage, ExtensionDiameterMessage, SessionTerminationAnswer, SessionTerminationRequest

public class SessionTerminationRequestImpl
extends SessionTerminationAnswerImpl
implements SessionTerminationRequest


Field Summary
 
Fields inherited from class org.mobicents.slee.resource.diameter.base.events.DiameterMessageImpl
destinationHostMandatory, destinationRealmMandatory, log, message, originHostMandatory, originRealmMandatory
 
Fields inherited from interface net.java.slee.resource.diameter.base.events.SessionTerminationRequest
commandCode
 
Fields inherited from interface net.java.slee.resource.diameter.base.events.SessionTerminationAnswer
commandCode
 
Fields inherited from interface net.java.slee.resource.diameter.base.events.ExtensionDiameterMessage
commandCode
 
Constructor Summary
SessionTerminationRequestImpl(org.jdiameter.api.Message message)
           
 
Method Summary
 java.lang.String getLongName()
          This method returns long name of this message type - Like Device-Watchdog-Request
 java.lang.String getShortName()
          This method return short name of this message type - for instance DWR,DWA for DeviceWatchdog message
 TerminationCauseType getTerminationCause()
          Returns the value of the Termination-Cause AVP, of type Enumerated.
 boolean hasTerminationCause()
          Returns true if the Termination-Cause AVP is present in the message.
 void setTerminationCause(TerminationCauseType terminationCause)
          Sets the value of the Termination-Cause AVP, of type Enumerated.
 
Methods inherited from class org.mobicents.slee.resource.diameter.base.events.SessionTerminationAnswerImpl
getClassAvps, setClassAvp, setClassAvps
 
Methods inherited from class org.mobicents.slee.resource.diameter.base.events.DiameterMessageImpl
addAvp, addAvpAsByteArray, clone, getAcctApplicationId, getAllAvpAsIdentity, getAuthApplicationId, getAvpAsAddress, getAvpAsDate, getAvpAsIdentity, getAvpAsInt32, getAvpAsUInt32, getAvpAsUtf8, getAvps, getAvpsAsInt32, getAvpsAsUInt32, getCommand, getDestinationHost, getDestinationRealm, getErrorMessage, getErrorReportingHost, getEventTimestamp, getExtensionAvps, getFailedAvps, getGenericData, getHeader, getOriginHost, getOriginRealm, getOriginStateId, getProxyInfos, getRedirectHosts, getRedirectHostUsage, getRedirectMaxCacheTime, getResultCode, getRouteRecords, getSessionId, getUserName, getVendorSpecificApplicationId, hasAcctApplicationId, hasAuthApplicationId, hasDestinationHost, hasDestinationRealm, hasErrorMessage, hasErrorReportingHost, hasEventTimestamp, hasOriginHost, hasOriginRealm, hasOriginStateId, hasRedirectHostUsage, hasRedirectMaxCacheTime, hasResultCode, hasSessionId, hasUserName, hasVendorSpecificApplicationId, setAcctApplicationId, setAuthApplicationId, setAvpAsAddress, setAvpAsDate, setAvpAsGroup, setAvpAsIdentity, setAvpAsInt32, setAvpAsUInt32, setAvpAsUtf8, setAvpsAsUInt32, setDestinationHost, setDestinationRealm, setErrorMessage, setErrorReportingHost, setEventTimestamp, setExtensionAvps, setFailedAvp, setFailedAvps, setOriginHost, setOriginRealm, setOriginStateId, setProxyInfo, setProxyInfos, setRedirectHost, setRedirectHosts, setRedirectHostUsage, setRedirectMaxCacheTime, setResultCode, setRouteRecord, setRouteRecords, setSessionId, setUserName, setVendorSpecificApplicationId, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.java.slee.resource.diameter.base.events.SessionTerminationRequest
getAuthApplicationId, getClassAvps, getDestinationHost, getOriginStateId, getProxyInfos, getRouteRecords, getUserName, hasAuthApplicationId, hasDestinationHost, hasDestinationRealm, hasOriginStateId, hasUserName, setAuthApplicationId, setClassAvp, setClassAvps, setDestinationHost, setOriginStateId, setProxyInfo, setProxyInfos, setRouteRecord, setRouteRecords, setUserName
 
Methods inherited from interface net.java.slee.resource.diameter.base.events.DiameterMessage
clone, getAvps, getCommand, getDestinationRealm, getExtensionAvps, getHeader, getOriginHost, getOriginRealm, getSessionId, hasOriginHost, hasOriginRealm, hasSessionId, setDestinationRealm, setExtensionAvps, setOriginHost, setOriginRealm, setSessionId
 
Methods inherited from interface net.java.slee.resource.diameter.base.events.SessionTerminationAnswer
getErrorMessage, getErrorReportingHost, getFailedAvps, getOriginStateId, getProxyInfos, getRedirectHosts, getRedirectHostUsage, getRedirectMaxCacheTime, getResultCode, getUserName, hasErrorMessage, hasErrorReportingHost, hasOriginStateId, hasRedirectHostUsage, hasRedirectMaxCacheTime, hasResultCode, hasUserName, setErrorMessage, setErrorReportingHost, setFailedAvp, setFailedAvps, setOriginStateId, setProxyInfo, setProxyInfos, setRedirectHost, setRedirectHosts, setRedirectHostUsage, setRedirectMaxCacheTime, setResultCode, setUserName
 
Methods inherited from interface net.java.slee.resource.diameter.base.events.ExtensionDiameterMessage
hasDestinationHost, hasDestinationRealm
 

Constructor Detail

SessionTerminationRequestImpl

public SessionTerminationRequestImpl(org.jdiameter.api.Message message)
Method Detail

getLongName

public java.lang.String getLongName()
Description copied from class: DiameterMessageImpl
This method returns long name of this message type - Like Device-Watchdog-Request

Overrides:
getLongName in class SessionTerminationAnswerImpl
Returns:

getShortName

public java.lang.String getShortName()
Description copied from class: DiameterMessageImpl
This method return short name of this message type - for instance DWR,DWA for DeviceWatchdog message

Overrides:
getShortName in class SessionTerminationAnswerImpl
Returns:

hasTerminationCause

public boolean hasTerminationCause()
Description copied from interface: SessionTerminationRequest
Returns true if the Termination-Cause AVP is present in the message.

Specified by:
hasTerminationCause in interface SessionTerminationRequest

getTerminationCause

public TerminationCauseType getTerminationCause()
Description copied from interface: SessionTerminationRequest
Returns the value of the Termination-Cause AVP, of type Enumerated.

Specified by:
getTerminationCause in interface SessionTerminationRequest
Returns:
the value of the Termination-Cause AVP or null if it has not been set on this message

setTerminationCause

public void setTerminationCause(TerminationCauseType terminationCause)
Description copied from interface: SessionTerminationRequest
Sets the value of the Termination-Cause AVP, of type Enumerated.

Specified by:
setTerminationCause in interface SessionTerminationRequest


Copyright © 2008. All Rights Reserved.