|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AccountingRequest
Defines an interface representing the Accounting-Request command. From the Diameter Base Protocol (rfc3588.txt) specification:
9.7.1. Accounting-Request
The Accounting-Request (ACR) command, indicated by the Command-Code
field set to 271 and the Command Flags' 'R' bit set, is sent by a
Diameter node, acting as a client, in order to exchange accounting
information with a peer.
One of Acct-Application-Id and Vendor-Specific-Application-Id AVPs
MUST be present. If the Vendor-Specific-Application-Id grouped AVP
is present, it must have an Acct-Application-Id inside.
The AVP listed below SHOULD include service specific accounting AVPs,
as described in Section 9.3.
Message Format
<Accounting-Request> ::= < Diameter Header: 271, REQ, PXY >
< Session-Id >
{ Origin-Host }
{ Origin-Realm }
{ Destination-Realm }
{ Accounting-Record-Type }
{ Accounting-Record-Number }
[ Acct-Application-Id ]
[ Vendor-Specific-Application-Id ]
[ User-Name ]
[ Accounting-Sub-Session-Id ]
[ Accounting-Session-Id ]
[ Acct-Multi-Session-Id ]
[ Acct-Interim-Interval ]
[ Accounting-Realtime-Required ]
[ Origin-State-Id ]
[ Event-Timestamp ]
* [ Proxy-Info ]
* [ Route-Record ]
* [ AVP ]
| Field Summary | |
|---|---|
static int |
commandCode
|
| 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 |
getAcctApplicationId()
Returns the value of the Acct-Application-Id AVP, of type Unsigned32. |
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.util.Date |
getEventTimestamp()
Returns the value of the Event-Timestamp AVP, of type Time. |
long |
getOriginStateId()
Returns the value of the Origin-State-Id AVP, of type Unsigned32. |
ProxyInfoAvp[] |
getProxyInfos()
Returns the set of Proxy-Info AVPs. |
DiameterIdentityAvp[] |
getRouteRecords()
Returns the set of Route-Record AVPs. |
java.lang.String |
getUserName()
Returns the value of the User-Name AVP, of type UTF8String. |
VendorSpecificApplicationIdAvp |
getVendorSpecificApplicationId()
Returns the value of the Vendor-Specific-Application-Id AVP, of type Grouped. |
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 |
hasAcctApplicationId()
Returns true if the Acct-Application-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 |
hasDestinationRealm()
Returns true if the Destination-Realm AVP is present in the message. |
boolean |
hasEventTimestamp()
Returns true if the Event-Timestamp AVP is present in the message. |
boolean |
hasOriginStateId()
Returns true if the Origin-State-Id AVP is present in the message. |
boolean |
hasUserName()
Returns true if the User-Name AVP is present in the message. |
boolean |
hasVendorSpecificApplicationId()
Returns true if the Vendor-Specific-Application-Id AVP is present in the message. |
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 |
setAcctApplicationId(long acctApplicationId)
Sets the value of the Acct-Application-Id AVP, of type Unsigned32. |
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. |
void |
setEventTimestamp(java.util.Date eventTimestamp)
Sets the value of the Event-Timestamp AVP, of type Time. |
void |
setOriginStateId(long originStateId)
Sets the value of the Origin-State-Id AVP, of type Unsigned32. |
void |
setProxyInfo(ProxyInfoAvp proxyInfo)
Sets a single Proxy-Info AVP in the message, of type Grouped. |
void |
setProxyInfos(ProxyInfoAvp[] proxyInfos)
Sets the set of Proxy-Info AVPs, with all the values in the given array. |
void |
setRouteRecord(DiameterIdentityAvp routeRecord)
Sets a single Route-Record AVP in the message, of type DiameterIdentity. |
void |
setRouteRecords(DiameterIdentityAvp[] routeRecords)
Sets the set of Route-Record AVPs, with all the values in the given array. |
void |
setUserName(java.lang.String userName)
Sets the value of the User-Name AVP, of type UTF8String. |
void |
setVendorSpecificApplicationId(VendorSpecificApplicationIdAvp vendorSpecificApplicationId)
Sets the value of the Vendor-Specific-Application-Id AVP, of type Grouped. |
| 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 |
| Field Detail |
|---|
static final int commandCode
| Method Detail |
|---|
boolean hasAccountingRecordType()
AccountingRecordType getAccountingRecordType()
boolean hasDestinationRealm()
void setAccountingRecordType(AccountingRecordType accountingRecordType)
java.lang.IllegalStateException - if setAccountingRecordType has already been calledboolean hasAccountingRecordNumber()
long getAccountingRecordNumber()
hasAccountingRecordNumber() to check the existence of this AVP.
java.lang.IllegalStateException - if the Accounting-Record-Number AVP has not been set on this messagevoid setAccountingRecordNumber(long accountingRecordNumber)
java.lang.IllegalStateException - if setAccountingRecordNumber has already been calledboolean hasAcctApplicationId()
long getAcctApplicationId()
hasAcctApplicationId() to check the existence of this AVP.
java.lang.IllegalStateException - if the Acct-Application-Id AVP has not been set on this messagevoid setAcctApplicationId(long acctApplicationId)
java.lang.IllegalStateException - if setAcctApplicationId has already been calledboolean hasVendorSpecificApplicationId()
VendorSpecificApplicationIdAvp getVendorSpecificApplicationId()
void setVendorSpecificApplicationId(VendorSpecificApplicationIdAvp vendorSpecificApplicationId)
java.lang.IllegalStateException - if setVendorSpecificApplicationId has already been calledboolean hasUserName()
java.lang.String getUserName()
void setUserName(java.lang.String userName)
java.lang.IllegalStateException - if setUserName has already been calledboolean hasAccountingSubSessionId()
long getAccountingSubSessionId()
hasAccountingSubSessionId() to check the existence of this AVP.
java.lang.IllegalStateException - if the Accounting-Sub-Session-Id AVP has not been set on this messagevoid setAccountingSubSessionId(long accountingSubSessionId)
java.lang.IllegalStateException - if setAccountingSubSessionId has already been calledboolean hasAccountingSessionId()
byte[] getAccountingSessionId()
void setAccountingSessionId(byte[] accountingSessionId)
java.lang.IllegalStateException - if setAccountingSessionId has already been calledboolean hasAcctMultiSessionId()
java.lang.String getAcctMultiSessionId()
void setAcctMultiSessionId(java.lang.String acctMultiSessionId)
java.lang.IllegalStateException - if setAcctMultiSessionId has already been calledboolean hasAcctInterimInterval()
long getAcctInterimInterval()
hasAcctInterimInterval() to check the existence of this AVP.
java.lang.IllegalStateException - if the Acct-Interim-Interval AVP has not been set on this messagevoid setAcctInterimInterval(long acctInterimInterval)
java.lang.IllegalStateException - if setAcctInterimInterval has already been calledboolean hasAccountingRealtimeRequired()
AccountingRealtimeRequiredType getAccountingRealtimeRequired()
void setAccountingRealtimeRequired(AccountingRealtimeRequiredType accountingRealtimeRequired)
java.lang.IllegalStateException - if setAccountingRealtimeRequired has already been calledboolean hasOriginStateId()
long getOriginStateId()
hasOriginStateId() to check the existence of this AVP.
java.lang.IllegalStateException - if the Origin-State-Id AVP has not been set on this messagevoid setOriginStateId(long originStateId)
java.lang.IllegalStateException - if setOriginStateId has already been calledboolean hasEventTimestamp()
java.util.Date getEventTimestamp()
void setEventTimestamp(java.util.Date eventTimestamp)
java.lang.IllegalStateException - if setEventTimestamp has already been calledProxyInfoAvp[] getProxyInfos()
void setProxyInfo(ProxyInfoAvp proxyInfo)
java.lang.IllegalStateException - if setProxyInfo or setProxyInfos
has already been calledvoid setProxyInfos(ProxyInfoAvp[] proxyInfos)
java.lang.IllegalStateException - if setProxyInfo or setProxyInfos
has already been calledDiameterIdentityAvp[] getRouteRecords()
void setRouteRecord(DiameterIdentityAvp routeRecord)
java.lang.IllegalStateException - if setRouteRecord or setRouteRecords
has already been calledvoid setRouteRecords(DiameterIdentityAvp[] routeRecords)
java.lang.IllegalStateException - if setRouteRecord or setRouteRecords
has already been called
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||