Interface CreditControlRequest
-
- All Superinterfaces:
Cloneable
,CreditControlMessage
,DiameterMessage
public interface CreditControlRequest extends CreditControlMessage
Defines an interface representing the Credit-Control-Request command. From the Diameter Credit-Control Application (rfc4006.txt) specification:3.1 Credit-Control-Request (CCR) Command The Credit-Control-Request message (CCR) is indicated by the command-code field being set to 272 and the 'R' bit being set in the Command Flags field. It is used between the Diameter credit-control client and the credit-control server to request credit authorization for a given service. The Auth-Application-Id MUST be set to the value 4, indicating the Diameter credit-control application. Message Format <Credit-Control-Request> ::= < Diameter Header: 272, REQ, PXY > < Session-Id > { Origin-Host } { Origin-Realm } { Destination-Realm } { Auth-Application-Id } { Service-Context-Id } { CC-Request-Type } { CC-Request-Number } [ Destination-Host ] [ User-Name ] [ CC-Sub-Session-Id ] [ Acct-Multi-Session-Id ] [ Origin-State-Id ] [ Event-Timestamp ] *[ Subscription-Id ] [ Service-Identifier ] [ Termination-Cause ] [ Requested-Service-Unit ] [ Requested-Action ] *[ Used-Service-Unit ] [ Multiple-Services-Indicator ] *[ Multiple-Services-Credit-Control ] *[ Service-Parameter-Info ] [ CC-Correlation-Id ] [ User-Equipment-Info ] *[ Proxy-Info ] *[ Route-Record ] *[ AVP ]
-
-
Field Summary
Fields Modifier and Type Field Description static int
commandCode
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getAcctMultiSessionId()
Returns the value of the Acct-Multi-Session-Id AVP, of type UTF8String.long
getAuthApplicationId()
Returns the value of the Auth-Application-Id AVP, of type Unsigned32.byte[]
getCcCorrelationId()
Returns the value of the CC-Correlation-Id AVP, of type OctetString.long
getCcRequestNumber()
Returns the value of the CC-Request-Number AVP, of type Unsigned32.CcRequestType
getCcRequestType()
Returns the value of the CC-Request-Type AVP, of type Enumerated.long
getCcSubSessionId()
Returns the value of the CC-Sub-Session-Id AVP, of type Unsigned64.DiameterIdentity
getDestinationHost()
Returns the value of the Destination-Host AVP, of type DiameterIdentity.DiameterIdentity
getDestinationRealm()
Returns the value of the Destination-Realm AVP, of type DiameterIdentity.Date
getEventTimestamp()
Returns the value of the Event-Timestamp AVP, of type Time.DiameterAvp[]
getExtensionAvps()
Returns the set of extension AVPs.MultipleServicesCreditControl[]
getMultipleServicesCreditControls()
Returns the set of Multiple-Services-Credit-Control AVPs.MultipleServicesIndicator
getMultipleServicesIndicator()
Returns the value of the Multiple-Services-Indicator AVP, of type Enumerated.DiameterIdentity
getOriginHost()
Returns the value of the Origin-Host AVP, of type DiameterIdentity.DiameterIdentity
getOriginRealm()
Returns the value of the Origin-Realm AVP, of type DiameterIdentity.long
getOriginStateId()
Returns the value of the Origin-State-Id AVP, of type Unsigned32.ProxyInfo[]
getProxyInfos()
Returns the set of Proxy-Info AVPs.RequestedAction
getRequestedAction()
Returns the value of the Requested-Action AVP, of type Enumerated.RequestedServiceUnit
getRequestedServiceUnit()
Returns the value of the Requested-Service-Unit AVP, of type Grouped.DiameterIdentity[]
getRouteRecords()
Returns the set of Route-Record AVPs.String
getServiceContextId()
Returns the value of the Service-Context-Id AVP, of type UTF8String.long
getServiceIdentifier()
Returns the value of the Service-Identifier AVP, of type Unsigned32.ServiceParameterInfo[]
getServiceParameterInfos()
Returns the set of Service-Parameter-Info AVPs.String
getSessionId()
Returns the value of the Session-Id AVP, of type UTF8String.SubscriptionId[]
getSubscriptionIds()
Returns the set of Subscription-Id AVPs.TerminationCause
getTerminationCause()
Returns the value of the Termination-Cause AVP, of type Enumerated.UsedServiceUnit[]
getUsedServiceUnits()
Returns the set of Used-Service-Unit AVPs.UserEquipmentInfo
getUserEquipmentInfo()
Returns the value of the User-Equipment-Info AVP, of type Grouped.String
getUserName()
Returns the value of the User-Name AVP, of type UTF8String.boolean
hasAcctMultiSessionId()
Returns true if the Acct-Multi-Session-Id AVP is present in the message.boolean
hasAuthApplicationId()
Returns true if the Auth-Application-Id AVP is present in the message.boolean
hasCcCorrelationId()
Returns true if the CC-Correlation-Id AVP is present in the message.boolean
hasCcRequestNumber()
Returns true if the CC-Request-Number AVP is present in the message.boolean
hasCcRequestType()
Returns true if the CC-Request-Type AVP is present in the message.boolean
hasCcSubSessionId()
Returns true if the CC-Sub-Session-Id AVP is present in the message.boolean
hasDestinationHost()
Returns true if the Destination-Host 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
hasMultipleServicesIndicator()
Returns true if the Multiple-Services-Indicator AVP is present in the message.boolean
hasOriginHost()
Returns true if the Origin-Host AVP is present in the message.boolean
hasOriginRealm()
Returns true if the Origin-Realm AVP is present in the message.boolean
hasOriginStateId()
Returns true if the Origin-State-Id AVP is present in the message.boolean
hasRequestedAction()
Returns true if the Requested-Action AVP is present in the message.boolean
hasRequestedServiceUnit()
Returns true if the Requested-Service-Unit AVP is present in the message.boolean
hasServiceContextId()
Returns true if the Service-Context-Id AVP is present in the message.boolean
hasServiceIdentifier()
Returns true if the Service-Identifier AVP is present in the message.boolean
hasSessionId()
Returns true if the Session-Id AVP is present in the message.boolean
hasTerminationCause()
Returns true if the Termination-Cause AVP is present in the message.boolean
hasUserEquipmentInfo()
Returns true if the User-Equipment-Info AVP is present in the message.boolean
hasUserName()
Returns true if the User-Name AVP is present in the message.void
removeAcctMultiSessionId()
Removes the Acct-Multi-Session-Id AVP from the message.void
removeAuthApplicationId()
Removes the Auth-Application-Id AVP from the message.void
removeCcCorrelationId()
Removes the CC-Correlation-Id AVP from the message.void
removeCcRequestNumber()
Removes the CC-Request-Number AVP from the message.void
removeCcRequestType()
Removes the CC-Request-Type AVP from the message.void
removeCcSubSessionId()
Removes the CC-Sub-Session-Id AVP from the message.void
removeDestinationHost()
Removes the Destination-Host AVP from the message.void
removeDestinationRealm()
Removes the Destination-Realm AVP from the message.void
removeEventTimestamp()
Removes the Event-Timestamp AVP from the message.void
removeExtensionAvps()
Removes all extension AVPs from the message.void
removeMultipleServicesCreditControls()
Removes all Multiple-Services-Credit-Control AVPs from the message.void
removeMultipleServicesIndicator()
Removes the Multiple-Services-Indicator AVP from the message.void
removeOriginHost()
Removes the Origin-Host AVP from the message.void
removeOriginRealm()
Removes the Origin-Realm AVP from the message.void
removeOriginStateId()
Removes the Origin-State-Id AVP from the message.void
removeProxyInfos()
Removes all Proxy-Info AVPs from the message.void
removeRequestedAction()
Removes the Requested-Action AVP from the message.void
removeRequestedServiceUnit()
Removes the Requested-Service-Unit AVP from the message.void
removeRouteRecords()
Removes all Route-Record AVPs from the message.void
removeServiceContextId()
Removes the Service-Context-Id AVP from the message.void
removeServiceIdentifier()
Removes the Service-Identifier AVP from the message.void
removeServiceParameterInfos()
Removes all Service-Parameter-Info AVPs from the message.void
removeSessionId()
Removes the Session-Id AVP from the message.void
removeSubscriptionIds()
Removes all Subscription-Id AVPs from the message.void
removeTerminationCause()
Removes the Termination-Cause AVP from the message.void
removeUsedServiceUnits()
Removes all Used-Service-Unit AVPs from the message.void
removeUserEquipmentInfo()
Removes the User-Equipment-Info AVP from the message.void
removeUserName()
Removes the User-Name AVP from the message.void
setAcctMultiSessionId(String acctMultiSessionId)
Sets the value of the Acct-Multi-Session-Id AVP, of type UTF8String.void
setAuthApplicationId(long authApplicationId)
Sets the value of the Auth-Application-Id AVP, of type Unsigned32.void
setCcCorrelationId(byte[] ccCorrelationId)
Sets the value of the CC-Correlation-Id AVP, of type OctetString.void
setCcRequestNumber(long ccRequestNumber)
Sets the value of the CC-Request-Number AVP, of type Unsigned32.void
setCcRequestType(CcRequestType ccRequestType)
Sets the value of the CC-Request-Type AVP, of type Enumerated.void
setCcSubSessionId(long ccSubSessionId)
Sets the value of the CC-Sub-Session-Id AVP, of type Unsigned64.void
setDestinationHost(DiameterIdentity destinationHost)
Sets the value of the Destination-Host AVP, of type DiameterIdentity.void
setDestinationRealm(DiameterIdentity destinationRealm)
Sets the value of the Destination-Realm AVP, of type DiameterIdentity.void
setEventTimestamp(Date eventTimestamp)
Sets the value of the Event-Timestamp AVP, of type Time.void
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array.void
setMultipleServicesCreditControl(MultipleServicesCreditControl multipleServicesCreditControl)
Sets a single Multiple-Services-Credit-Control AVP in the message, of type Grouped.void
setMultipleServicesCreditControls(MultipleServicesCreditControl[] multipleServicesCreditControls)
Sets the set of Multiple-Services-Credit-Control AVPs, with all the values in the given array.void
setMultipleServicesIndicator(MultipleServicesIndicator multipleServicesIndicator)
Sets the value of the Multiple-Services-Indicator AVP, of type Enumerated.void
setOriginHost(DiameterIdentity originHost)
Sets the value of the Origin-Host AVP, of type DiameterIdentity.void
setOriginRealm(DiameterIdentity originRealm)
Sets the value of the Origin-Realm AVP, of type DiameterIdentity.void
setOriginStateId(long originStateId)
Sets the value of the Origin-State-Id AVP, of type Unsigned32.void
setProxyInfo(ProxyInfo proxyInfo)
Sets a single Proxy-Info AVP in the message, of type Grouped.void
setProxyInfos(ProxyInfo[] proxyInfos)
Sets the set of Proxy-Info AVPs, with all the values in the given array.void
setRequestedAction(RequestedAction requestedAction)
Sets the value of the Requested-Action AVP, of type Enumerated.void
setRequestedServiceUnit(RequestedServiceUnit requestedServiceUnit)
Sets the value of the Requested-Service-Unit AVP, of type Grouped.void
setRouteRecord(DiameterIdentity routeRecord)
Sets a single Route-Record AVP in the message, of type DiameterIdentity.void
setRouteRecords(DiameterIdentity[] routeRecords)
Sets the set of Route-Record AVPs, with all the values in the given array.void
setServiceContextId(String serviceContextId)
Sets the value of the Service-Context-Id AVP, of type UTF8String.void
setServiceIdentifier(long serviceIdentifier)
Sets the value of the Service-Identifier AVP, of type Unsigned32.void
setServiceParameterInfo(ServiceParameterInfo serviceParameterInfo)
Sets a single Service-Parameter-Info AVP in the message, of type Grouped.void
setServiceParameterInfos(ServiceParameterInfo[] serviceParameterInfos)
Sets the set of Service-Parameter-Info AVPs, with all the values in the given array.void
setSessionId(String sessionId)
Sets the value of the Session-Id AVP, of type UTF8String.void
setSubscriptionId(SubscriptionId subscriptionId)
Sets a single Subscription-Id AVP in the message, of type Grouped.void
setSubscriptionIds(SubscriptionId[] subscriptionIds)
Sets the set of Subscription-Id AVPs, with all the values in the given array.void
setTerminationCause(TerminationCause terminationCause)
Sets the value of the Termination-Cause AVP, of type Enumerated.void
setUsedServiceUnit(UsedServiceUnit usedServiceUnit)
Sets a single Used-Service-Unit AVP in the message, of type Grouped.void
setUsedServiceUnits(UsedServiceUnit[] usedServiceUnits)
Sets the set of Used-Service-Unit AVPs, with all the values in the given array.void
setUserEquipmentInfo(UserEquipmentInfo userEquipmentInfo)
Sets the value of the User-Equipment-Info AVP, of type Grouped.void
setUserName(String userName)
Sets the value of the User-Name AVP, of type UTF8String.-
Methods inherited from interface org.jainslee.resources.diameter.base.DiameterMessage
clone, getAvps, getCommand, getHeader
-
-
-
-
Field Detail
-
commandCode
static final int commandCode
- See Also:
- Constant Field Values
-
-
Method Detail
-
hasSessionId
boolean hasSessionId()
Returns true if the Session-Id AVP is present in the message.- Specified by:
hasSessionId
in interfaceCreditControlMessage
-
getSessionId
String getSessionId()
Returns the value of the Session-Id AVP, of type UTF8String.- Specified by:
getSessionId
in interfaceCreditControlMessage
- Specified by:
getSessionId
in interfaceDiameterMessage
- Returns:
- the value of the Session-Id AVP or null if it has not been set on this message
-
setSessionId
void setSessionId(String sessionId)
Sets the value of the Session-Id AVP, of type UTF8String.- Specified by:
setSessionId
in interfaceCreditControlMessage
- Specified by:
setSessionId
in interfaceDiameterMessage
- Throws:
NullPointerException
- ifsessionId
isnull
.
-
removeSessionId
void removeSessionId()
Removes the Session-Id AVP from the message. If the Session-Id AVP is not present, this method returns silently.
-
hasOriginHost
boolean hasOriginHost()
Returns true if the Origin-Host AVP is present in the message.- Specified by:
hasOriginHost
in interfaceCreditControlMessage
-
getOriginHost
DiameterIdentity getOriginHost()
Returns the value of the Origin-Host AVP, of type DiameterIdentity.- Specified by:
getOriginHost
in interfaceCreditControlMessage
- Specified by:
getOriginHost
in interfaceDiameterMessage
- Returns:
- the value of the Origin-Host AVP or null if it has not been set on this message
-
setOriginHost
void setOriginHost(DiameterIdentity originHost)
Sets the value of the Origin-Host AVP, of type DiameterIdentity.- Specified by:
setOriginHost
in interfaceCreditControlMessage
- Specified by:
setOriginHost
in interfaceDiameterMessage
- Throws:
NullPointerException
- iforiginHost
isnull
.
-
removeOriginHost
void removeOriginHost()
Removes the Origin-Host AVP from the message. If the Origin-Host AVP is not present, this method returns silently.
-
hasOriginRealm
boolean hasOriginRealm()
Returns true if the Origin-Realm AVP is present in the message.- Specified by:
hasOriginRealm
in interfaceCreditControlMessage
-
getOriginRealm
DiameterIdentity getOriginRealm()
Returns the value of the Origin-Realm AVP, of type DiameterIdentity.- Specified by:
getOriginRealm
in interfaceCreditControlMessage
- Specified by:
getOriginRealm
in interfaceDiameterMessage
- Returns:
- the value of the Origin-Realm AVP or null if it has not been set on this message
-
setOriginRealm
void setOriginRealm(DiameterIdentity originRealm)
Sets the value of the Origin-Realm AVP, of type DiameterIdentity.- Specified by:
setOriginRealm
in interfaceCreditControlMessage
- Specified by:
setOriginRealm
in interfaceDiameterMessage
- Throws:
NullPointerException
- iforiginRealm
isnull
.
-
removeOriginRealm
void removeOriginRealm()
Removes the Origin-Realm AVP from the message. If the Origin-Realm AVP is not present, this method returns silently.
-
hasDestinationRealm
boolean hasDestinationRealm()
Returns true if the Destination-Realm AVP is present in the message.
-
getDestinationRealm
DiameterIdentity getDestinationRealm()
Returns the value of the Destination-Realm AVP, of type DiameterIdentity.- Specified by:
getDestinationRealm
in interfaceDiameterMessage
- Returns:
- the value of the Destination-Realm AVP or null if it has not been set on this message
-
setDestinationRealm
void setDestinationRealm(DiameterIdentity destinationRealm)
Sets the value of the Destination-Realm AVP, of type DiameterIdentity.- Specified by:
setDestinationRealm
in interfaceDiameterMessage
- Throws:
NullPointerException
- ifdestinationRealm
isnull
.
-
removeDestinationRealm
void removeDestinationRealm()
Removes the Destination-Realm AVP from the message. If the Destination-Realm AVP is not present, this method returns silently.
-
hasAuthApplicationId
boolean hasAuthApplicationId()
Returns true if the Auth-Application-Id AVP is present in the message.- Specified by:
hasAuthApplicationId
in interfaceCreditControlMessage
-
getAuthApplicationId
long getAuthApplicationId()
Returns the value of the Auth-Application-Id AVP, of type Unsigned32. UsehasAuthApplicationId()
to check the existence of this AVP.- Specified by:
getAuthApplicationId
in interfaceCreditControlMessage
- Returns:
- the value of the Auth-Application-Id AVP
- Throws:
IllegalStateException
- if the Auth-Application-Id AVP has not been set on this message
-
setAuthApplicationId
void setAuthApplicationId(long authApplicationId)
Sets the value of the Auth-Application-Id AVP, of type Unsigned32.- Specified by:
setAuthApplicationId
in interfaceCreditControlMessage
-
removeAuthApplicationId
void removeAuthApplicationId()
Removes the Auth-Application-Id AVP from the message. If the Auth-Application-Id AVP is not present, this method returns silently.
-
hasServiceContextId
boolean hasServiceContextId()
Returns true if the Service-Context-Id AVP is present in the message.
-
getServiceContextId
String getServiceContextId()
Returns the value of the Service-Context-Id AVP, of type UTF8String.- Returns:
- the value of the Service-Context-Id AVP or null if it has not been set on this message
-
setServiceContextId
void setServiceContextId(String serviceContextId)
Sets the value of the Service-Context-Id AVP, of type UTF8String.- Throws:
NullPointerException
- ifserviceContextId
isnull
.
-
removeServiceContextId
void removeServiceContextId()
Removes the Service-Context-Id AVP from the message. If the Service-Context-Id AVP is not present, this method returns silently.
-
hasCcRequestType
boolean hasCcRequestType()
Returns true if the CC-Request-Type AVP is present in the message.- Specified by:
hasCcRequestType
in interfaceCreditControlMessage
-
getCcRequestType
CcRequestType getCcRequestType()
Returns the value of the CC-Request-Type AVP, of type Enumerated.- Specified by:
getCcRequestType
in interfaceCreditControlMessage
- Returns:
- the value of the CC-Request-Type AVP or null if it has not been set on this message
-
setCcRequestType
void setCcRequestType(CcRequestType ccRequestType)
Sets the value of the CC-Request-Type AVP, of type Enumerated.- Specified by:
setCcRequestType
in interfaceCreditControlMessage
- Throws:
NullPointerException
- ifccRequestType
isnull
.
-
removeCcRequestType
void removeCcRequestType()
Removes the CC-Request-Type AVP from the message. If the CC-Request-Type AVP is not present, this method returns silently.
-
hasCcRequestNumber
boolean hasCcRequestNumber()
Returns true if the CC-Request-Number AVP is present in the message.- Specified by:
hasCcRequestNumber
in interfaceCreditControlMessage
-
getCcRequestNumber
long getCcRequestNumber()
Returns the value of the CC-Request-Number AVP, of type Unsigned32. UsehasCcRequestNumber()
to check the existence of this AVP.- Specified by:
getCcRequestNumber
in interfaceCreditControlMessage
- Returns:
- the value of the CC-Request-Number AVP
- Throws:
IllegalStateException
- if the CC-Request-Number AVP has not been set on this message
-
setCcRequestNumber
void setCcRequestNumber(long ccRequestNumber)
Sets the value of the CC-Request-Number AVP, of type Unsigned32.- Specified by:
setCcRequestNumber
in interfaceCreditControlMessage
-
removeCcRequestNumber
void removeCcRequestNumber()
Removes the CC-Request-Number AVP from the message. If the CC-Request-Number AVP is not present, this method returns silently.
-
hasDestinationHost
boolean hasDestinationHost()
Returns true if the Destination-Host AVP is present in the message.
-
getDestinationHost
DiameterIdentity getDestinationHost()
Returns the value of the Destination-Host AVP, of type DiameterIdentity.- Specified by:
getDestinationHost
in interfaceDiameterMessage
- Returns:
- the value of the Destination-Host AVP or null if it has not been set on this message
-
setDestinationHost
void setDestinationHost(DiameterIdentity destinationHost)
Sets the value of the Destination-Host AVP, of type DiameterIdentity.- Specified by:
setDestinationHost
in interfaceDiameterMessage
- Throws:
NullPointerException
- ifdestinationHost
isnull
.
-
removeDestinationHost
void removeDestinationHost()
Removes the Destination-Host AVP from the message. If the Destination-Host AVP is not present, this method returns silently.
-
hasUserName
boolean hasUserName()
Returns true if the User-Name AVP is present in the message.
-
getUserName
String getUserName()
Returns the value of the User-Name AVP, of type UTF8String.- Returns:
- the value of the User-Name AVP or null if it has not been set on this message
-
setUserName
void setUserName(String userName)
Sets the value of the User-Name AVP, of type UTF8String.- Throws:
NullPointerException
- ifuserName
isnull
.
-
removeUserName
void removeUserName()
Removes the User-Name AVP from the message. If the User-Name AVP is not present, this method returns silently.
-
hasCcSubSessionId
boolean hasCcSubSessionId()
Returns true if the CC-Sub-Session-Id AVP is present in the message.
-
getCcSubSessionId
long getCcSubSessionId()
Returns the value of the CC-Sub-Session-Id AVP, of type Unsigned64. UsehasCcSubSessionId()
to check the existence of this AVP.- Returns:
- the value of the CC-Sub-Session-Id AVP
- Throws:
IllegalStateException
- if the CC-Sub-Session-Id AVP has not been set on this message
-
setCcSubSessionId
void setCcSubSessionId(long ccSubSessionId)
Sets the value of the CC-Sub-Session-Id AVP, of type Unsigned64.
-
removeCcSubSessionId
void removeCcSubSessionId()
Removes the CC-Sub-Session-Id AVP from the message. If the CC-Sub-Session-Id AVP is not present, this method returns silently.
-
hasAcctMultiSessionId
boolean hasAcctMultiSessionId()
Returns true if the Acct-Multi-Session-Id AVP is present in the message.
-
getAcctMultiSessionId
String getAcctMultiSessionId()
Returns the value of the Acct-Multi-Session-Id AVP, of type UTF8String.- Returns:
- the value of the Acct-Multi-Session-Id AVP or null if it has not been set on this message
-
setAcctMultiSessionId
void setAcctMultiSessionId(String acctMultiSessionId)
Sets the value of the Acct-Multi-Session-Id AVP, of type UTF8String.- Throws:
NullPointerException
- ifacctMultiSessionId
isnull
.
-
removeAcctMultiSessionId
void removeAcctMultiSessionId()
Removes the Acct-Multi-Session-Id AVP from the message. If the Acct-Multi-Session-Id AVP is not present, this method returns silently.
-
hasOriginStateId
boolean hasOriginStateId()
Returns true if the Origin-State-Id AVP is present in the message.
-
getOriginStateId
long getOriginStateId()
Returns the value of the Origin-State-Id AVP, of type Unsigned32. UsehasOriginStateId()
to check the existence of this AVP.- Returns:
- the value of the Origin-State-Id AVP
- Throws:
IllegalStateException
- if the Origin-State-Id AVP has not been set on this message
-
setOriginStateId
void setOriginStateId(long originStateId)
Sets the value of the Origin-State-Id AVP, of type Unsigned32.
-
removeOriginStateId
void removeOriginStateId()
Removes the Origin-State-Id AVP from the message. If the Origin-State-Id AVP is not present, this method returns silently.
-
hasEventTimestamp
boolean hasEventTimestamp()
Returns true if the Event-Timestamp AVP is present in the message.
-
getEventTimestamp
Date getEventTimestamp()
Returns the value of the Event-Timestamp AVP, of type Time.- Returns:
- the value of the Event-Timestamp AVP or null if it has not been set on this message
-
setEventTimestamp
void setEventTimestamp(Date eventTimestamp)
Sets the value of the Event-Timestamp AVP, of type Time.- Throws:
NullPointerException
- ifeventTimestamp
isnull
.
-
removeEventTimestamp
void removeEventTimestamp()
Removes the Event-Timestamp AVP from the message. If the Event-Timestamp AVP is not present, this method returns silently.
-
getSubscriptionIds
SubscriptionId[] getSubscriptionIds()
Returns the set of Subscription-Id AVPs. The returned array contains the AVPs in the order they appear in the message. A return value of null implies that no Subscription-Id AVPs have been set. The elements in the given array are SubscriptionId objects.
-
setSubscriptionId
void setSubscriptionId(SubscriptionId subscriptionId)
Sets a single Subscription-Id AVP in the message, of type Grouped.- Throws:
NullPointerException
- ifsubscriptionId
isnull
.
-
setSubscriptionIds
void setSubscriptionIds(SubscriptionId[] subscriptionIds)
Sets the set of Subscription-Id 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 getSubscriptionIds() is not guaranteed to return the same array instance, e.g. an "==" check would fail.- Throws:
NullPointerException
- ifsubscriptionIds
isnull
.
-
removeSubscriptionIds
void removeSubscriptionIds()
Removes all Subscription-Id AVPs from the message. If no Subscription-Id AVPs are present, this method returns silently.
-
hasServiceIdentifier
boolean hasServiceIdentifier()
Returns true if the Service-Identifier AVP is present in the message.
-
getServiceIdentifier
long getServiceIdentifier()
Returns the value of the Service-Identifier AVP, of type Unsigned32. UsehasServiceIdentifier()
to check the existence of this AVP.- Returns:
- the value of the Service-Identifier AVP
- Throws:
IllegalStateException
- if the Service-Identifier AVP has not been set on this message
-
setServiceIdentifier
void setServiceIdentifier(long serviceIdentifier)
Sets the value of the Service-Identifier AVP, of type Unsigned32.
-
removeServiceIdentifier
void removeServiceIdentifier()
Removes the Service-Identifier AVP from the message. If the Service-Identifier AVP is not present, this method returns silently.
-
hasTerminationCause
boolean hasTerminationCause()
Returns true if the Termination-Cause AVP is present in the message.
-
getTerminationCause
TerminationCause getTerminationCause()
Returns the value of the Termination-Cause AVP, of type Enumerated.- Returns:
- the value of the Termination-Cause AVP or null if it has not been set on this message
-
setTerminationCause
void setTerminationCause(TerminationCause terminationCause)
Sets the value of the Termination-Cause AVP, of type Enumerated.- Throws:
NullPointerException
- ifterminationCause
isnull
.
-
removeTerminationCause
void removeTerminationCause()
Removes the Termination-Cause AVP from the message. If the Termination-Cause AVP is not present, this method returns silently.
-
hasRequestedServiceUnit
boolean hasRequestedServiceUnit()
Returns true if the Requested-Service-Unit AVP is present in the message.
-
getRequestedServiceUnit
RequestedServiceUnit getRequestedServiceUnit()
Returns the value of the Requested-Service-Unit AVP, of type Grouped.- Returns:
- the value of the Requested-Service-Unit AVP or null if it has not been set on this message
-
setRequestedServiceUnit
void setRequestedServiceUnit(RequestedServiceUnit requestedServiceUnit)
Sets the value of the Requested-Service-Unit AVP, of type Grouped.- Throws:
NullPointerException
- ifrequestedServiceUnit
isnull
.
-
removeRequestedServiceUnit
void removeRequestedServiceUnit()
Removes the Requested-Service-Unit AVP from the message. If the Requested-Service-Unit AVP is not present, this method returns silently.
-
hasRequestedAction
boolean hasRequestedAction()
Returns true if the Requested-Action AVP is present in the message.
-
getRequestedAction
RequestedAction getRequestedAction()
Returns the value of the Requested-Action AVP, of type Enumerated.- Returns:
- the value of the Requested-Action AVP or null if it has not been set on this message
-
setRequestedAction
void setRequestedAction(RequestedAction requestedAction)
Sets the value of the Requested-Action AVP, of type Enumerated.- Throws:
NullPointerException
- ifrequestedAction
isnull
.
-
removeRequestedAction
void removeRequestedAction()
Removes the Requested-Action AVP from the message. If the Requested-Action AVP is not present, this method returns silently.
-
getUsedServiceUnits
UsedServiceUnit[] getUsedServiceUnits()
Returns the set of Used-Service-Unit AVPs. The returned array contains the AVPs in the order they appear in the message. A return value of null implies that no Used-Service-Unit AVPs have been set. The elements in the given array are UsedServiceUnit objects.
-
setUsedServiceUnit
void setUsedServiceUnit(UsedServiceUnit usedServiceUnit)
Sets a single Used-Service-Unit AVP in the message, of type Grouped.- Throws:
NullPointerException
- ifusedServiceUnit
isnull
.
-
setUsedServiceUnits
void setUsedServiceUnits(UsedServiceUnit[] usedServiceUnits)
Sets the set of Used-Service-Unit 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 getUsedServiceUnits() is not guaranteed to return the same array instance, e.g. an "==" check would fail.- Throws:
NullPointerException
- ifusedServiceUnits
isnull
.
-
removeUsedServiceUnits
void removeUsedServiceUnits()
Removes all Used-Service-Unit AVPs from the message. If no Used-Service-Unit AVPs are present, this method returns silently.
-
hasMultipleServicesIndicator
boolean hasMultipleServicesIndicator()
Returns true if the Multiple-Services-Indicator AVP is present in the message.
-
getMultipleServicesIndicator
MultipleServicesIndicator getMultipleServicesIndicator()
Returns the value of the Multiple-Services-Indicator AVP, of type Enumerated.- Returns:
- the value of the Multiple-Services-Indicator AVP or null if it has not been set on this message
-
setMultipleServicesIndicator
void setMultipleServicesIndicator(MultipleServicesIndicator multipleServicesIndicator)
Sets the value of the Multiple-Services-Indicator AVP, of type Enumerated.- Throws:
NullPointerException
- ifmultipleServicesIndicator
isnull
.
-
removeMultipleServicesIndicator
void removeMultipleServicesIndicator()
Removes the Multiple-Services-Indicator AVP from the message. If the Multiple-Services-Indicator AVP is not present, this method returns silently.
-
getMultipleServicesCreditControls
MultipleServicesCreditControl[] getMultipleServicesCreditControls()
Returns the set of Multiple-Services-Credit-Control AVPs. The returned array contains the AVPs in the order they appear in the message. A return value of null implies that no Multiple-Services-Credit-Control AVPs have been set. The elements in the given array are MultipleServicesCreditControl objects.
-
setMultipleServicesCreditControl
void setMultipleServicesCreditControl(MultipleServicesCreditControl multipleServicesCreditControl)
Sets a single Multiple-Services-Credit-Control AVP in the message, of type Grouped.- Throws:
NullPointerException
- ifmultipleServicesCreditControl
isnull
.
-
setMultipleServicesCreditControls
void setMultipleServicesCreditControls(MultipleServicesCreditControl[] multipleServicesCreditControls)
Sets the set of Multiple-Services-Credit-Control 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 getMultipleServicesCreditControls() is not guaranteed to return the same array instance, e.g. an "==" check would fail.- Throws:
NullPointerException
- ifmultipleServicesCreditControls
isnull
.
-
removeMultipleServicesCreditControls
void removeMultipleServicesCreditControls()
Removes all Multiple-Services-Credit-Control AVPs from the message. If no Multiple-Services-Credit-Control AVPs are present, this method returns silently.
-
getServiceParameterInfos
ServiceParameterInfo[] getServiceParameterInfos()
Returns the set of Service-Parameter-Info AVPs. The returned array contains the AVPs in the order they appear in the message. A return value of null implies that no Service-Parameter-Info AVPs have been set. The elements in the given array are ServiceParameterInfo objects.
-
setServiceParameterInfo
void setServiceParameterInfo(ServiceParameterInfo serviceParameterInfo)
Sets a single Service-Parameter-Info AVP in the message, of type Grouped.- Throws:
NullPointerException
- ifserviceParameterInfo
isnull
.
-
setServiceParameterInfos
void setServiceParameterInfos(ServiceParameterInfo[] serviceParameterInfos)
Sets the set of Service-Parameter-Info 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 getServiceParameterInfos() is not guaranteed to return the same array instance, e.g. an "==" check would fail.- Throws:
NullPointerException
- ifserviceParameterInfos
isnull
.
-
removeServiceParameterInfos
void removeServiceParameterInfos()
Removes all Service-Parameter-Info AVPs from the message. If no Service-Parameter-Info AVPs are present, this method returns silently.
-
hasCcCorrelationId
boolean hasCcCorrelationId()
Returns true if the CC-Correlation-Id AVP is present in the message.
-
getCcCorrelationId
byte[] getCcCorrelationId()
Returns the value of the CC-Correlation-Id AVP, of type OctetString.- Returns:
- the value of the CC-Correlation-Id AVP or null if it has not been set on this message
-
setCcCorrelationId
void setCcCorrelationId(byte[] ccCorrelationId)
Sets the value of the CC-Correlation-Id AVP, of type OctetString.- Throws:
NullPointerException
- ifccCorrelationId
isnull
.
-
removeCcCorrelationId
void removeCcCorrelationId()
Removes the CC-Correlation-Id AVP from the message. If the CC-Correlation-Id AVP is not present, this method returns silently.
-
hasUserEquipmentInfo
boolean hasUserEquipmentInfo()
Returns true if the User-Equipment-Info AVP is present in the message.
-
getUserEquipmentInfo
UserEquipmentInfo getUserEquipmentInfo()
Returns the value of the User-Equipment-Info AVP, of type Grouped.- Returns:
- the value of the User-Equipment-Info AVP or null if it has not been set on this message
-
setUserEquipmentInfo
void setUserEquipmentInfo(UserEquipmentInfo userEquipmentInfo)
Sets the value of the User-Equipment-Info AVP, of type Grouped.- Throws:
NullPointerException
- ifuserEquipmentInfo
isnull
.
-
removeUserEquipmentInfo
void removeUserEquipmentInfo()
Removes the User-Equipment-Info AVP from the message. If the User-Equipment-Info AVP is not present, this method returns silently.
-
getProxyInfos
ProxyInfo[] getProxyInfos()
Returns the set of Proxy-Info AVPs. The returned array contains the AVPs in the order they appear in the message. A return value of null implies that no Proxy-Info AVPs have been set. The elements in the given array are ProxyInfo objects.- Specified by:
getProxyInfos
in interfaceCreditControlMessage
-
setProxyInfo
void setProxyInfo(ProxyInfo proxyInfo)
Sets a single Proxy-Info AVP in the message, of type Grouped.- Specified by:
setProxyInfo
in interfaceCreditControlMessage
- Throws:
NullPointerException
- ifproxyInfo
isnull
.
-
setProxyInfos
void setProxyInfos(ProxyInfo[] proxyInfos)
Sets the set of Proxy-Info 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 getProxyInfos() is not guaranteed to return the same array instance, e.g. an "==" check would fail.- Specified by:
setProxyInfos
in interfaceCreditControlMessage
- Throws:
NullPointerException
- ifproxyInfos
isnull
.
-
removeProxyInfos
void removeProxyInfos()
Removes all Proxy-Info AVPs from the message. If no Proxy-Info AVPs are present, this method returns silently.
-
getRouteRecords
DiameterIdentity[] getRouteRecords()
Returns the set of Route-Record AVPs. The returned array contains the AVPs in the order they appear in the message. A return value of null implies that no Route-Record AVPs have been set. The elements in the given array are DiameterIdentity objects.- Specified by:
getRouteRecords
in interfaceCreditControlMessage
-
setRouteRecord
void setRouteRecord(DiameterIdentity routeRecord)
Sets a single Route-Record AVP in the message, of type DiameterIdentity.- Specified by:
setRouteRecord
in interfaceCreditControlMessage
- Throws:
NullPointerException
- ifrouteRecord
isnull
.
-
setRouteRecords
void setRouteRecords(DiameterIdentity[] routeRecords)
Sets the set of Route-Record 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 getRouteRecords() is not guaranteed to return the same array instance, e.g. an "==" check would fail.- Specified by:
setRouteRecords
in interfaceCreditControlMessage
- Throws:
NullPointerException
- ifrouteRecords
isnull
.
-
removeRouteRecords
void removeRouteRecords()
Removes all Route-Record AVPs from the message. If no Route-Record AVPs are present, this method returns silently.
-
getExtensionAvps
DiameterAvp[] getExtensionAvps()
Returns the set of extension AVPs. The returned array contains the extension AVPs in the order they appear in the message. A return value of null implies that no extensions AVPs have been set.
-
setExtensionAvps
void setExtensionAvps(DiameterAvp[] avps) throws AvpNotAllowedException
Sets the set of extension 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 getExtensionAvps() is not guaranteed to return the same array instance, e.g. an "==" check would fail.- Throws:
AvpNotAllowedException
- if an AVP is encountered of a type already known to this class (i.e. an AVP for which get/set methods already appear in this class)NullPointerException
- ifavps
isnull
.
-
removeExtensionAvps
void removeExtensionAvps()
Removes all extension AVPs from the message. If no extension AVPs are present, this method returns silently.
-
-