org.jdiameter.common.impl.app.acc
Class AccountRequestImpl

java.lang.Object
  extended by org.jdiameter.common.impl.app.AppEventImpl
      extended by org.jdiameter.common.impl.app.AppRequestEventImpl
          extended by org.jdiameter.common.impl.app.acc.AccountRequestImpl
All Implemented Interfaces:
java.io.Serializable, AccountRequest, AppEvent, AppRequestEvent

public class AccountRequestImpl
extends AppRequestEventImpl
implements AccountRequest

Author:
erick.svenson@yahoo.com, Alexandre Mendonca , Bartosz Baranowski
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jdiameter.common.impl.app.AppEventImpl
message
 
Fields inherited from interface org.jdiameter.api.acc.events.AccountRequest
_LONG_NAME, _SHORT_NAME, code
 
Constructor Summary
AccountRequestImpl(AppSession session, int accountRecordType, int accReqNumber, java.lang.String destRealm, java.lang.String destHost)
           
AccountRequestImpl(Request request)
           
 
Method Summary
 long getAccountingRecordNumber()
           
 int getAccountingRecordType()
           
 void setAccountingRecordNumber(long recordNum)
           
 void setAccountingRecordType(int recordType)
           
 
Methods inherited from class org.jdiameter.common.impl.app.AppRequestEventImpl
getDestinationHost, getDestinationRealm
 
Methods inherited from class org.jdiameter.common.impl.app.AppEventImpl
equals, getCommandCode, getMessage, getOriginHost, getOriginRealm, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jdiameter.api.app.AppRequestEvent
getDestinationHost, getDestinationRealm
 
Methods inherited from interface org.jdiameter.api.app.AppEvent
getCommandCode, getMessage, getOriginHost, getOriginRealm
 

Constructor Detail

AccountRequestImpl

public AccountRequestImpl(AppSession session,
                          int accountRecordType,
                          int accReqNumber,
                          java.lang.String destRealm,
                          java.lang.String destHost)

AccountRequestImpl

public AccountRequestImpl(Request request)
Method Detail

getAccountingRecordType

public int getAccountingRecordType()
                            throws AvpDataException
Specified by:
getAccountingRecordType in interface AccountRequest
Throws:
AvpDataException

getAccountingRecordNumber

public long getAccountingRecordNumber()
                               throws AvpDataException
Specified by:
getAccountingRecordNumber in interface AccountRequest
Throws:
AvpDataException

setAccountingRecordType

public void setAccountingRecordType(int recordType)
                             throws AvpDataException
Specified by:
setAccountingRecordType in interface AccountRequest
Throws:
AvpDataException

setAccountingRecordNumber

public void setAccountingRecordNumber(long recordNum)
                               throws AvpDataException
Specified by:
setAccountingRecordNumber in interface AccountRequest
Throws:
AvpDataException


Copyright © 2014. All Rights Reserved.