org.mobicents.slee.resource.diameter.cca.events
Class CreditControlRequestImpl

java.lang.Object
  extended by org.mobicents.slee.resource.diameter.base.events.DiameterMessageImpl
      extended by org.mobicents.slee.resource.diameter.cca.events.CreditControlMessageImpl
          extended by org.mobicents.slee.resource.diameter.cca.events.CreditControlRequestImpl
All Implemented Interfaces:
java.lang.Cloneable, net.java.slee.resource.diameter.base.events.DiameterMessage, CreditControlMessage, CreditControlRequest

public class CreditControlRequestImpl
extends CreditControlMessageImpl
implements CreditControlRequest

CCA Credit-Control-Request message implementation.

Super project: mobicents
12:25:46 2008-11-10

Author:
Bartosz Baranowski , Alexandre Mendonca

Field Summary
 
Fields inherited from class org.mobicents.slee.resource.diameter.base.events.DiameterMessageImpl
message
 
Fields inherited from interface net.java.slee.resource.diameter.cca.events.CreditControlMessage
commandCode
 
Constructor Summary
CreditControlRequestImpl(org.jdiameter.api.Message message)
          Constructor.
 
Method Summary
 byte[] getCcCorrelationId()
          Returns the value of the CC-Correlation-Id AVP, of type OctetString.
 java.lang.String getLongName()
           
 MultipleServicesIndicatorType getMultipleServicesIndicator()
          Returns the value of the Multiple-Services-Indicator AVP, of type Enumerated.
 RequestedActionType getRequestedAction()
          Returns the value of the Requested-Action AVP, of type Enumerated.
 RequestedServiceUnitAvp getRequestedServiceUnit()
          Returns the value of the Requested-Service-Unit AVP, of type Grouped.
 java.lang.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.
 ServiceParameterInfoAvp[] getServiceParameterInfos()
          Returns the set of Service-Parameter-Info AVPs.
 java.lang.String getShortName()
           
 SubscriptionIdAvp[] getSubscriptionIds()
          Returns the set of Subscription-Id AVPs.
 net.java.slee.resource.diameter.base.events.avp.TerminationCauseType getTerminationCause()
          Returns the value of the Termination-Cause AVP, of type Enumerated.
 UsedServiceUnitAvp[] getUsedServiceUnits()
          Returns the set of Used-Service-Unit AVPs.
 UserEquipmentInfoAvp getUserEquipmentInfo()
          Returns the value of the User-Equipment-Info AVP, of type Grouped.
 boolean hasCcCorrelationId()
          Returns true if the CC-Correlation-Id AVP is present in the message.
 boolean hasMultipleServicesIndicator()
          Returns true if the Multiple-Services-Indicator 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 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.
 void setCcCorrelationId(byte[] ccCorrelationId)
          Sets the value of the CC-Correlation-Id AVP, of type OctetString.
 void setMultipleServicesIndicator(MultipleServicesIndicatorType multipleServicesIndicator)
          Sets the value of the Multiple-Services-Indicator AVP, of type Enumerated.
 void setRequestedAction(RequestedActionType requestedAction)
          Sets the value of the Requested-Action AVP, of type Enumerated.
 void setRequestedServiceUnit(RequestedServiceUnitAvp requestedServiceUnit)
          Sets the value of the Requested-Service-Unit AVP, of type Grouped.
 void setServiceContextId(java.lang.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(ServiceParameterInfoAvp serviceParameterInfo)
          Sets a single Service-Parameter-Info AVP in the message, of type Grouped.
 void setServiceParameterInfos(ServiceParameterInfoAvp[] serviceParameterInfos)
          Sets the set of Service-Parameter-Info AVPs, with all the values in the given array.
 void setSubscriptionId(SubscriptionIdAvp subscriptionId)
          Sets a single Subscription-Id AVP in the message, of type Grouped.
 void setSubscriptionIds(SubscriptionIdAvp[] subscriptionIds)
          Sets the set of Subscription-Id AVPs, with all the values in the given array.
 void setTerminationCause(net.java.slee.resource.diameter.base.events.avp.TerminationCauseType terminationCause)
          Sets the value of the Termination-Cause AVP, of type Enumerated.
 void setUsedServiceUnit(UsedServiceUnitAvp usedServiceUnit)
          Sets a single Used-Service-Unit AVP in the message, of type Grouped.
 void setUsedServiceUnits(UsedServiceUnitAvp[] usedServiceUnits)
          Sets the set of Used-Service-Unit AVPs, with all the values in the given array.
 void setUserEquipmentInfo(UserEquipmentInfoAvp userEquipmentInfo)
          Sets the value of the User-Equipment-Info AVP, of type Grouped.
 
Methods inherited from class org.mobicents.slee.resource.diameter.cca.events.CreditControlMessageImpl
getAcctMultiSessionId, getCcRequestNumber, getCcRequestType, getCcSubSessionId, getMultipleServicesCreditControls, hasAcctMultiSessionId, hasCcRequestNumber, hasCcRequestType, hasCcSubSessionId, hasMultipleServicesCreditControl, setAcctMultiSessionId, setCcRequestNumber, setCcRequestType, setCcSubSessionId, setMultipleServicesCreditControl, setMultipleServicesCreditControls
 
Methods inherited from class org.mobicents.slee.resource.diameter.base.events.DiameterMessageImpl
addAvp, addAvp, addAvp, addAvp, clone, getAcctApplicationId, getAuthApplicationId, getAvp, getAvp, getAvp, getAvpAsAddress, getAvpAsAddress, getAvpAsCustom, getAvpAsCustom, getAvpAsDiameterIdentity, getAvpAsDiameterIdentity, getAvpAsDiameterURI, getAvpAsDiameterURI, getAvpAsEnumerated, getAvpAsEnumerated, getAvpAsFloat32, getAvpAsFloat32, getAvpAsFloat64, getAvpAsFloat64, getAvpAsGrouped, getAvpAsGrouped, getAvpAsInteger32, getAvpAsInteger32, getAvpAsInteger64, getAvpAsInteger64, getAvpAsIPFilterRule, getAvpAsIPFilterRule, getAvpAsOctetString, getAvpAsOctetString, getAvpAsRaw, getAvpAsRaw, getAvpAsTime, getAvpAsTime, getAvpAsUnsigned32, getAvpAsUnsigned32, getAvpAsUnsigned64, getAvpAsUnsigned64, getAvpAsUTF8String, getAvpAsUTF8String, getAvps, getAvpsAsAddress, getAvpsAsAddress, getAvpsAsCustom, getAvpsAsCustom, getAvpsAsDiameterIdentity, getAvpsAsDiameterIdentity, getAvpsAsDiameterURI, getAvpsAsDiameterURI, getAvpsAsEnumerated, getAvpsAsEnumerated, getAvpsAsFloat32, getAvpsAsFloat32, getAvpsAsFloat64, getAvpsAsFloat64, getAvpsAsGrouped, getAvpsAsGrouped, getAvpsAsInteger32, getAvpsAsInteger32, getAvpsAsInteger64, getAvpsAsInteger64, getAvpsAsIPFilterRule, getAvpsAsIPFilterRule, getAvpsAsOctetString, getAvpsAsOctetString, getAvpsAsRaw, getAvpsAsRaw, getAvpsAsTime, getAvpsAsTime, getAvpsAsUnsigned32, getAvpsAsUnsigned32, getAvpsAsUnsigned64, getAvpsAsUnsigned64, getAvpsAsUTF8String, getAvpsAsUTF8String, getCommand, getData, getDestinationHost, getDestinationRealm, getErrorMessage, getErrorReportingHost, getEventTimestamp, getExtensionAvps, getFailedAvp, getFailedAvps, getGenericData, getHeader, getOriginHost, getOriginRealm, getOriginStateId, getProxyInfos, getRedirectHosts, getRedirectHostUsage, getRedirectMaxCacheTime, getResultCode, getRouteRecords, getSessionId, getUserName, getVendorSpecificApplicationId, hasAcctApplicationId, hasAuthApplicationId, hasAvp, hasAvp, hasDestinationHost, hasDestinationRealm, hasErrorMessage, hasErrorReportingHost, hasEventTimestamp, hasFailedAvp, hasOriginHost, hasOriginRealm, hasOriginStateId, hasRedirectHosts, hasRedirectHostUsage, hasRedirectMaxCacheTime, hasResultCode, hasSessionId, hasUserName, hasVendorSpecificApplicationId, removeData, reportAvpFetchError, setAcctApplicationId, setAuthApplicationId, setAvpAsFloat32, setAvpAsFloat64, setAvpAsGrouped, setAvpAsInteger32, setAvpAsInteger64, setAvpAsOctetString, setAvpAsRaw, setAvpAsTime, setAvpAsUnsigned32, setAvpAsUnsigned64, setAvpAsUTF8String, setData, 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.cca.events.CreditControlMessage
getAcctMultiSessionId, getAuthApplicationId, getCcRequestNumber, getCcRequestType, getCcSubSessionId, getEventTimestamp, getMultipleServicesCreditControls, getOriginStateId, getProxyInfos, getRouteRecords, getUserName, hasAcctMultiSessionId, hasAuthApplicationId, hasCcRequestNumber, hasCcRequestType, hasCcSubSessionId, hasEventTimestamp, hasMultipleServicesCreditControl, hasOriginStateId, hasUserName, setAcctMultiSessionId, setAuthApplicationId, setCcRequestNumber, setCcRequestType, setCcSubSessionId, setEventTimestamp, setMultipleServicesCreditControl, setMultipleServicesCreditControls, setOriginStateId, setProxyInfo, setProxyInfos, setRouteRecord, setRouteRecords, 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
 

Constructor Detail

CreditControlRequestImpl

public CreditControlRequestImpl(org.jdiameter.api.Message message)
Constructor.

Parameters:
message - the message to construct the Request
Method Detail

getLongName

public java.lang.String getLongName()
Specified by:
getLongName in class org.mobicents.slee.resource.diameter.base.events.DiameterMessageImpl

getShortName

public java.lang.String getShortName()
Specified by:
getShortName in class org.mobicents.slee.resource.diameter.base.events.DiameterMessageImpl

getCcCorrelationId

public byte[] getCcCorrelationId()
Description copied from interface: CreditControlRequest
Returns the value of the CC-Correlation-Id AVP, of type OctetString.

Specified by:
getCcCorrelationId in interface CreditControlRequest
Returns:

getMultipleServicesIndicator

public MultipleServicesIndicatorType getMultipleServicesIndicator()
Description copied from interface: CreditControlRequest
Returns the value of the Multiple-Services-Indicator AVP, of type Enumerated.

Specified by:
getMultipleServicesIndicator in interface CreditControlRequest
Returns:

getRequestedAction

public RequestedActionType getRequestedAction()
Description copied from interface: CreditControlRequest
Returns the value of the Requested-Action AVP, of type Enumerated.

Specified by:
getRequestedAction in interface CreditControlRequest
Returns:

getRequestedServiceUnit

public RequestedServiceUnitAvp getRequestedServiceUnit()
Description copied from interface: CreditControlRequest
Returns the value of the Requested-Service-Unit AVP, of type Grouped.

Specified by:
getRequestedServiceUnit in interface CreditControlRequest
Returns:

getServiceContextId

public java.lang.String getServiceContextId()
Description copied from interface: CreditControlRequest
Returns the value of the Service-Context-Id AVP, of type UTF8String.

Specified by:
getServiceContextId in interface CreditControlRequest
Returns:

getServiceIdentifier

public long getServiceIdentifier()
Description copied from interface: CreditControlRequest
Returns the value of the Service-Identifier AVP, of type Unsigned32.

Specified by:
getServiceIdentifier in interface CreditControlRequest
Returns:

getServiceParameterInfos

public ServiceParameterInfoAvp[] getServiceParameterInfos()
Description copied from interface: CreditControlRequest
Returns the set of Service-Parameter-Info AVPs.

Specified by:
getServiceParameterInfos in interface CreditControlRequest
Returns:

getSubscriptionIds

public SubscriptionIdAvp[] getSubscriptionIds()
Description copied from interface: CreditControlRequest
Returns the set of Subscription-Id AVPs.

Specified by:
getSubscriptionIds in interface CreditControlRequest
Returns:

getTerminationCause

public net.java.slee.resource.diameter.base.events.avp.TerminationCauseType getTerminationCause()
Description copied from interface: CreditControlRequest
Returns the value of the Termination-Cause AVP, of type Enumerated.

Specified by:
getTerminationCause in interface CreditControlRequest
Returns:

getUsedServiceUnits

public UsedServiceUnitAvp[] getUsedServiceUnits()
Description copied from interface: CreditControlRequest
Returns the set of Used-Service-Unit AVPs.

Specified by:
getUsedServiceUnits in interface CreditControlRequest
Returns:

getUserEquipmentInfo

public UserEquipmentInfoAvp getUserEquipmentInfo()
Description copied from interface: CreditControlRequest
Returns the value of the User-Equipment-Info AVP, of type Grouped.

Specified by:
getUserEquipmentInfo in interface CreditControlRequest
Returns:

hasCcCorrelationId

public boolean hasCcCorrelationId()
Description copied from interface: CreditControlRequest
Returns true if the CC-Correlation-Id AVP is present in the message.

Specified by:
hasCcCorrelationId in interface CreditControlRequest
Returns:

hasMultipleServicesIndicator

public boolean hasMultipleServicesIndicator()
Description copied from interface: CreditControlRequest
Returns true if the Multiple-Services-Indicator AVP is present in the message.

Specified by:
hasMultipleServicesIndicator in interface CreditControlRequest
Returns:

hasRequestedAction

public boolean hasRequestedAction()
Description copied from interface: CreditControlRequest
Returns true if the Requested-Action AVP is present in the message.

Specified by:
hasRequestedAction in interface CreditControlRequest
Returns:

hasRequestedServiceUnit

public boolean hasRequestedServiceUnit()
Description copied from interface: CreditControlRequest
Returns true if the Requested-Service-Unit AVP is present in the message.

Specified by:
hasRequestedServiceUnit in interface CreditControlRequest
Returns:

hasServiceContextId

public boolean hasServiceContextId()
Description copied from interface: CreditControlRequest
Returns true if the Service-Context-Id AVP is present in the message.

Specified by:
hasServiceContextId in interface CreditControlRequest
Returns:

hasServiceIdentifier

public boolean hasServiceIdentifier()
Description copied from interface: CreditControlRequest
Returns true if the Service-Identifier AVP is present in the message.

Specified by:
hasServiceIdentifier in interface CreditControlRequest
Returns:

hasTerminationCause

public boolean hasTerminationCause()
Description copied from interface: CreditControlRequest
Returns true if the Termination-Cause AVP is present in the message.

Specified by:
hasTerminationCause in interface CreditControlRequest
Returns:

hasUserEquipmentInfo

public boolean hasUserEquipmentInfo()
Description copied from interface: CreditControlRequest
Returns true if the User-Equipment-Info AVP is present in the message.

Specified by:
hasUserEquipmentInfo in interface CreditControlRequest
Returns:

setCcCorrelationId

public void setCcCorrelationId(byte[] ccCorrelationId)
                        throws java.lang.IllegalStateException
Description copied from interface: CreditControlRequest
Sets the value of the CC-Correlation-Id AVP, of type OctetString.

Specified by:
setCcCorrelationId in interface CreditControlRequest
Throws:
java.lang.IllegalStateException

setMultipleServicesIndicator

public void setMultipleServicesIndicator(MultipleServicesIndicatorType multipleServicesIndicator)
                                  throws java.lang.IllegalStateException
Description copied from interface: CreditControlRequest
Sets the value of the Multiple-Services-Indicator AVP, of type Enumerated.

Specified by:
setMultipleServicesIndicator in interface CreditControlRequest
Throws:
java.lang.IllegalStateException

setRequestedAction

public void setRequestedAction(RequestedActionType requestedAction)
                        throws java.lang.IllegalStateException
Description copied from interface: CreditControlRequest
Sets the value of the Requested-Action AVP, of type Enumerated.

Specified by:
setRequestedAction in interface CreditControlRequest
Throws:
java.lang.IllegalStateException

setRequestedServiceUnit

public void setRequestedServiceUnit(RequestedServiceUnitAvp requestedServiceUnit)
                             throws java.lang.IllegalStateException
Description copied from interface: CreditControlRequest
Sets the value of the Requested-Service-Unit AVP, of type Grouped.

Specified by:
setRequestedServiceUnit in interface CreditControlRequest
Throws:
java.lang.IllegalStateException

setServiceContextId

public void setServiceContextId(java.lang.String serviceContextId)
                         throws java.lang.IllegalStateException
Description copied from interface: CreditControlRequest
Sets the value of the Service-Context-Id AVP, of type UTF8String.

Specified by:
setServiceContextId in interface CreditControlRequest
Throws:
java.lang.IllegalStateException

setServiceIdentifier

public void setServiceIdentifier(long serviceIdentifier)
                          throws java.lang.IllegalStateException
Description copied from interface: CreditControlRequest
Sets the value of the Service-Identifier AVP, of type Unsigned32.

Specified by:
setServiceIdentifier in interface CreditControlRequest
Throws:
java.lang.IllegalStateException

setServiceParameterInfo

public void setServiceParameterInfo(ServiceParameterInfoAvp serviceParameterInfo)
                             throws java.lang.IllegalStateException
Description copied from interface: CreditControlRequest
Sets a single Service-Parameter-Info AVP in the message, of type Grouped.

Specified by:
setServiceParameterInfo in interface CreditControlRequest
Throws:
java.lang.IllegalStateException

setServiceParameterInfos

public void setServiceParameterInfos(ServiceParameterInfoAvp[] serviceParameterInfos)
                              throws java.lang.IllegalStateException
Description copied from interface: CreditControlRequest
Sets the set of Service-Parameter-Info AVPs, with all the values in the given array.

Specified by:
setServiceParameterInfos in interface CreditControlRequest
Throws:
java.lang.IllegalStateException

setSubscriptionId

public void setSubscriptionId(SubscriptionIdAvp subscriptionId)
                       throws java.lang.IllegalStateException
Description copied from interface: CreditControlRequest
Sets a single Subscription-Id AVP in the message, of type Grouped.

Specified by:
setSubscriptionId in interface CreditControlRequest
Throws:
java.lang.IllegalStateException

setSubscriptionIds

public void setSubscriptionIds(SubscriptionIdAvp[] subscriptionIds)
                        throws java.lang.IllegalStateException
Description copied from interface: CreditControlRequest
Sets the set of Subscription-Id AVPs, with all the values in the given array.

Specified by:
setSubscriptionIds in interface CreditControlRequest
Throws:
java.lang.IllegalStateException

setTerminationCause

public void setTerminationCause(net.java.slee.resource.diameter.base.events.avp.TerminationCauseType terminationCause)
                         throws java.lang.IllegalStateException
Description copied from interface: CreditControlRequest
Sets the value of the Termination-Cause AVP, of type Enumerated.

Specified by:
setTerminationCause in interface CreditControlRequest
Throws:
java.lang.IllegalStateException

setUsedServiceUnit

public void setUsedServiceUnit(UsedServiceUnitAvp usedServiceUnit)
                        throws java.lang.IllegalStateException
Description copied from interface: CreditControlRequest
Sets a single Used-Service-Unit AVP in the message, of type Grouped.

Specified by:
setUsedServiceUnit in interface CreditControlRequest
Throws:
java.lang.IllegalStateException

setUsedServiceUnits

public void setUsedServiceUnits(UsedServiceUnitAvp[] usedServiceUnits)
                         throws java.lang.IllegalStateException
Description copied from interface: CreditControlRequest
Sets the set of Used-Service-Unit AVPs, with all the values in the given array.

Specified by:
setUsedServiceUnits in interface CreditControlRequest
Throws:
java.lang.IllegalStateException

setUserEquipmentInfo

public void setUserEquipmentInfo(UserEquipmentInfoAvp userEquipmentInfo)
                          throws java.lang.IllegalStateException
Description copied from interface: CreditControlRequest
Sets the value of the User-Equipment-Info AVP, of type Grouped.

Specified by:
setUserEquipmentInfo in interface CreditControlRequest
Throws:
java.lang.IllegalStateException


Copyright © 2012. All Rights Reserved.