net.java.slee.resource.diameter.rf.events
Interface RfAccountingAnswer

All Superinterfaces:
java.lang.Cloneable, net.java.slee.resource.diameter.base.events.DiameterMessage, RfAccountingMessage
All Known Implementing Classes:
RfAccountingAnswerImpl

public interface RfAccountingAnswer
extends net.java.slee.resource.diameter.base.events.DiameterMessage, RfAccountingMessage

Defines an interface representing the Accounting-Answer command. From the Diameter Ro/Rf Protocol (TS 32299-6c0) specification:

       <ACA> ::= < Diameter Header: 271, PXY >
     
                 < Session-Id >
                 { Result-Code }
                 { Origin-Host }
                 { Origin-Realm }
                 { Accounting-Record-Type }
                 { Accounting-Record-Number }
                 [ Acct-Application-Id ]
                 [ User-Name ]
                 [ Acct-Interim-Interval ]
                 [ Origin-State-Id ]
                 [ Event-Timestamp ]
               * [ Proxy-Info ]
               * [ AVP ]
 
 

Author:
Alexandre Mendonca , Bartosz Baranowski

Field Summary
 
Fields inherited from interface net.java.slee.resource.diameter.rf.events.RfAccountingMessage
commandCode
 
Method Summary
 long getResultCode()
          Returns the value of the Result-Code AVP, of type Unsigned32.
 boolean hasResultCode()
          Returns true if the Result-Code AVP is present in the message.
 void setResultCode(long resultCode)
          Sets the value of the Result-Code AVP, of type Unsigned32.
 
Methods inherited from interface net.java.slee.resource.diameter.rf.events.RfAccountingMessage
getAccountingRecordNumber, getAccountingRecordType, getAcctApplicationId, getAcctInterimInterval, getEventTimestamp, getOriginStateId, getProxyInfos, getUserName, hasAccountingRecordNumber, hasAccountingRecordType, hasAcctApplicationId, hasAcctInterimInterval, hasEventTimestamp, hasOriginStateId, hasUserName, setAccountingRecordNumber, setAccountingRecordType, setAcctApplicationId, setAcctInterimInterval, setEventTimestamp, setOriginStateId, setProxyInfo, setProxyInfos, setUserName
 
Methods inherited from interface net.java.slee.resource.diameter.base.events.DiameterMessage
clone, getAvps, getCommand, getDestinationHost, getDestinationRealm, getExtensionAvps, getHeader, getOriginHost, getOriginRealm, getSessionId, hasDestinationHost, hasDestinationRealm, hasOriginHost, hasOriginRealm, hasSessionId, setDestinationHost, setDestinationRealm, setExtensionAvps, setOriginHost, setOriginRealm, setSessionId
 

Method Detail

hasResultCode

boolean hasResultCode()
Returns true if the Result-Code AVP is present in the message.


getResultCode

long getResultCode()
Returns the value of the Result-Code AVP, of type Unsigned32. Use hasResultCode() to check the existence of this AVP.

Returns:
the value of the Result-Code AVP
Throws:
java.lang.IllegalStateException - if the Result-Code AVP has not been set on this message

setResultCode

void setResultCode(long resultCode)
Sets the value of the Result-Code AVP, of type Unsigned32.

Throws:
java.lang.IllegalStateException - if setResultCode has already been called


Copyright © 2011. All Rights Reserved.