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

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

public class AccountingAnswerImpl
extends ExtensionDiameterMessageImpl
implements AccountingAnswer

AccountingAnswerImpl.java
Super project: mobicents
5:57:50 PM Jun 20, 2008

Author:
Alexandre Mendonca , Bartosz Baranowski , Erick Svenson

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.AccountingAnswer
commandCode
 
Fields inherited from interface net.java.slee.resource.diameter.base.events.ExtensionDiameterMessage
commandCode
 
Constructor Summary
AccountingAnswerImpl(org.jdiameter.api.Message message)
           
 
Method Summary
 AccountingRealtimeRequiredType getAccountingRealtimeRequired()
          Returns the value of the Accounting-Realtime-Required AVP, of type Enumerated.
 long getAccountingRecordNumber()
          Returns the value of the Accounting-Record-Number AVP, of type Unsigned32.
 AccountingRecordType getAccountingRecordType()
          Returns the value of the Accounting-Record-Type AVP, of type Enumerated.
 byte[] getAccountingSessionId()
          Returns the value of the Accounting-Session-Id AVP, of type OctetString.
 long getAccountingSubSessionId()
          Returns the value of the Accounting-Sub-Session-Id AVP, of type Unsigned64.
 long getAcctInterimInterval()
          Returns the value of the Acct-Interim-Interval AVP, of type Unsigned32.
 java.lang.String getAcctMultiSessionId()
          Returns the value of the Acct-Multi-Session-Id AVP, of type UTF8String.
 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
 boolean hasAccountingRealtimeRequired()
          Returns true if the Accounting-Realtime-Required AVP is present in the message.
 boolean hasAccountingRecordNumber()
          Returns true if the Accounting-Record-Number AVP is present in the message.
 boolean hasAccountingRecordType()
          Returns true if the Accounting-Record-Type AVP is present in the message.
 boolean hasAccountingSessionId()
          Returns true if the Accounting-Session-Id AVP is present in the message.
 boolean hasAccountingSubSessionId()
          Returns true if the Accounting-Sub-Session-Id AVP is present in the message.
 boolean hasAcctInterimInterval()
          Returns true if the Acct-Interim-Interval AVP is present in the message.
 boolean hasAcctMultiSessionId()
          Returns true if the Acct-Multi-Session-Id AVP is present in the message.
 boolean isValid()
           
 void setAccountingRealtimeRequired(AccountingRealtimeRequiredType accountingRealtimeRequired)
          Sets the value of the Accounting-Realtime-Required AVP, of type Enumerated.
 void setAccountingRecordNumber(long accountingRecordNumber)
          Sets the value of the Accounting-Record-Number AVP, of type Unsigned32.
 void setAccountingRecordType(AccountingRecordType accountingRecordType)
          Sets the value of the Accounting-Record-Type AVP, of type Enumerated.
 void setAccountingSessionId(byte[] accountingSessionId)
          Sets the value of the Accounting-Session-Id AVP, of type OctetString.
 void setAccountingSubSessionId(long accountingSubSessionId)
          Sets the value of the Accounting-Sub-Session-Id AVP, of type Unsigned64.
 void setAcctInterimInterval(long acctInterimInterval)
          Sets the value of the Acct-Interim-Interval AVP, of type Unsigned32.
 void setAcctMultiSessionId(java.lang.String acctMultiSessionId)
          Sets the value of the Acct-Multi-Session-Id AVP, of type UTF8String.
 
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.AccountingAnswer
getAcctApplicationId, getErrorReportingHost, getEventTimestamp, getOriginStateId, getProxyInfos, getResultCode, getUserName, getVendorSpecificApplicationId, hasAcctApplicationId, hasErrorReportingHost, hasEventTimestamp, hasOriginStateId, hasResultCode, hasUserName, hasVendorSpecificApplicationId, setAcctApplicationId, setErrorReportingHost, setEventTimestamp, setOriginStateId, setProxyInfo, setProxyInfos, setResultCode, setUserName, setVendorSpecificApplicationId
 
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

AccountingAnswerImpl

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

hasAccountingRecordType

public boolean hasAccountingRecordType()
Description copied from interface: AccountingAnswer
Returns true if the Accounting-Record-Type AVP is present in the message.

Specified by:
hasAccountingRecordType in interface AccountingAnswer

getAccountingRecordType

public AccountingRecordType getAccountingRecordType()
Description copied from interface: AccountingAnswer
Returns the value of the Accounting-Record-Type AVP, of type Enumerated.

Specified by:
getAccountingRecordType in interface AccountingAnswer
Returns:
the value of the Accounting-Record-Type AVP or null if it has not been set on this message

setAccountingRecordType

public void setAccountingRecordType(AccountingRecordType accountingRecordType)
Description copied from interface: AccountingAnswer
Sets the value of the Accounting-Record-Type AVP, of type Enumerated.

Specified by:
setAccountingRecordType in interface AccountingAnswer

hasAccountingRecordNumber

public boolean hasAccountingRecordNumber()
Description copied from interface: AccountingAnswer
Returns true if the Accounting-Record-Number AVP is present in the message.

Specified by:
hasAccountingRecordNumber in interface AccountingAnswer

getAccountingRecordNumber

public long getAccountingRecordNumber()
Description copied from interface: AccountingAnswer
Returns the value of the Accounting-Record-Number AVP, of type Unsigned32. Use AccountingAnswer.hasAccountingRecordNumber() to check the existence of this AVP.

Specified by:
getAccountingRecordNumber in interface AccountingAnswer
Returns:
the value of the Accounting-Record-Number AVP

setAccountingRecordNumber

public void setAccountingRecordNumber(long accountingRecordNumber)
Description copied from interface: AccountingAnswer
Sets the value of the Accounting-Record-Number AVP, of type Unsigned32.

Specified by:
setAccountingRecordNumber in interface AccountingAnswer

hasAccountingSubSessionId

public boolean hasAccountingSubSessionId()
Description copied from interface: AccountingAnswer
Returns true if the Accounting-Sub-Session-Id AVP is present in the message.

Specified by:
hasAccountingSubSessionId in interface AccountingAnswer

getAccountingSubSessionId

public long getAccountingSubSessionId()
Description copied from interface: AccountingAnswer
Returns the value of the Accounting-Sub-Session-Id AVP, of type Unsigned64. Use AccountingAnswer.hasAccountingSubSessionId() to check the existence of this AVP.

Specified by:
getAccountingSubSessionId in interface AccountingAnswer
Returns:
the value of the Accounting-Sub-Session-Id AVP

setAccountingSubSessionId

public void setAccountingSubSessionId(long accountingSubSessionId)
Description copied from interface: AccountingAnswer
Sets the value of the Accounting-Sub-Session-Id AVP, of type Unsigned64.

Specified by:
setAccountingSubSessionId in interface AccountingAnswer

hasAccountingSessionId

public boolean hasAccountingSessionId()
Description copied from interface: AccountingAnswer
Returns true if the Accounting-Session-Id AVP is present in the message.

Specified by:
hasAccountingSessionId in interface AccountingAnswer

getAccountingSessionId

public byte[] getAccountingSessionId()
Description copied from interface: AccountingAnswer
Returns the value of the Accounting-Session-Id AVP, of type OctetString.

Specified by:
getAccountingSessionId in interface AccountingAnswer
Returns:
the value of the Accounting-Session-Id AVP or null if it has not been set on this message

setAccountingSessionId

public void setAccountingSessionId(byte[] accountingSessionId)
Description copied from interface: AccountingAnswer
Sets the value of the Accounting-Session-Id AVP, of type OctetString.

Specified by:
setAccountingSessionId in interface AccountingAnswer

hasAcctMultiSessionId

public boolean hasAcctMultiSessionId()
Description copied from interface: AccountingAnswer
Returns true if the Acct-Multi-Session-Id AVP is present in the message.

Specified by:
hasAcctMultiSessionId in interface AccountingAnswer

getAcctMultiSessionId

public java.lang.String getAcctMultiSessionId()
Description copied from interface: AccountingAnswer
Returns the value of the Acct-Multi-Session-Id AVP, of type UTF8String.

Specified by:
getAcctMultiSessionId in interface AccountingAnswer
Returns:
the value of the Acct-Multi-Session-Id AVP or null if it has not been set on this message

setAcctMultiSessionId

public void setAcctMultiSessionId(java.lang.String acctMultiSessionId)
Description copied from interface: AccountingAnswer
Sets the value of the Acct-Multi-Session-Id AVP, of type UTF8String.

Specified by:
setAcctMultiSessionId in interface AccountingAnswer

hasAcctInterimInterval

public boolean hasAcctInterimInterval()
Description copied from interface: AccountingAnswer
Returns true if the Acct-Interim-Interval AVP is present in the message.

Specified by:
hasAcctInterimInterval in interface AccountingAnswer

getAcctInterimInterval

public long getAcctInterimInterval()
Description copied from interface: AccountingAnswer
Returns the value of the Acct-Interim-Interval AVP, of type Unsigned32. Use AccountingAnswer.hasAcctInterimInterval() to check the existence of this AVP.

Specified by:
getAcctInterimInterval in interface AccountingAnswer
Returns:
the value of the Acct-Interim-Interval AVP

setAcctInterimInterval

public void setAcctInterimInterval(long acctInterimInterval)
Description copied from interface: AccountingAnswer
Sets the value of the Acct-Interim-Interval AVP, of type Unsigned32.

Specified by:
setAcctInterimInterval in interface AccountingAnswer

hasAccountingRealtimeRequired

public boolean hasAccountingRealtimeRequired()
Description copied from interface: AccountingAnswer
Returns true if the Accounting-Realtime-Required AVP is present in the message.

Specified by:
hasAccountingRealtimeRequired in interface AccountingAnswer

getAccountingRealtimeRequired

public AccountingRealtimeRequiredType getAccountingRealtimeRequired()
Description copied from interface: AccountingAnswer
Returns the value of the Accounting-Realtime-Required AVP, of type Enumerated.

Specified by:
getAccountingRealtimeRequired in interface AccountingAnswer
Returns:
the value of the Accounting-Realtime-Required AVP or null if it has not been set on this message

setAccountingRealtimeRequired

public void setAccountingRealtimeRequired(AccountingRealtimeRequiredType accountingRealtimeRequired)
Description copied from interface: AccountingAnswer
Sets the value of the Accounting-Realtime-Required AVP, of type Enumerated.

Specified by:
setAccountingRealtimeRequired in interface AccountingAnswer

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:

isValid

public boolean isValid()


Copyright © 2008. All Rights Reserved.