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

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
All Implemented Interfaces:
java.lang.Cloneable, DiameterMessage, ExtensionDiameterMessage, SessionTerminationAnswer
Direct Known Subclasses:
SessionTerminationRequestImpl

public class SessionTerminationAnswerImpl
extends ExtensionDiameterMessageImpl
implements SessionTerminationAnswer


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.SessionTerminationAnswer
commandCode
 
Fields inherited from interface net.java.slee.resource.diameter.base.events.ExtensionDiameterMessage
commandCode
 
Constructor Summary
SessionTerminationAnswerImpl(org.jdiameter.api.Message message)
           
 
Method Summary
 byte[][] getClassAvps()
          Returns the set of Class AVPs.
 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
 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.
 
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.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.DiameterMessage
clone, getAvps, getCommand, getDestinationHost, getDestinationRealm, getExtensionAvps, getHeader, getOriginHost, getOriginRealm, getSessionId, hasOriginHost, hasOriginRealm, hasSessionId, setDestinationHost, setDestinationRealm, setExtensionAvps, setOriginHost, setOriginRealm, setSessionId
 
Methods inherited from interface net.java.slee.resource.diameter.base.events.ExtensionDiameterMessage
hasDestinationHost, hasDestinationRealm
 

Constructor Detail

SessionTerminationAnswerImpl

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

getClassAvps

public byte[][] getClassAvps()
Description copied from interface: SessionTerminationAnswer
Returns the set of Class AVPs. The returned array contains the AVPs in the order they appear in the message. A return value of null implies that no Class AVPs have been set. The elements in the given array are byte[] objects.

Specified by:
getClassAvps in interface SessionTerminationAnswer

setClassAvp

public void setClassAvp(byte[] classAvp)
Description copied from interface: SessionTerminationAnswer
Sets a single Class AVP in the message, of type OctetString.

Specified by:
setClassAvp in interface SessionTerminationAnswer

setClassAvps

public void setClassAvps(byte[][] classAvps)
Description copied from interface: SessionTerminationAnswer
Sets the set of Class AVPs, with all the values in the given array. The AVPs will be added to message in the order in which they appear in the array. Note: the array must not be altered by the caller following this call, and getClassAvps() is not guaranteed to return the same array instance, e.g. an "==" check would fail.

Specified by:
setClassAvps in interface SessionTerminationAnswer

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 ExtensionDiameterMessageImpl
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 ExtensionDiameterMessageImpl
Returns:


Copyright © 2008. All Rights Reserved.