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

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

public abstract class CreditControlMessageImpl
extends org.mobicents.slee.resource.diameter.base.events.DiameterMessageImpl
implements CreditControlMessage

CCA Credit-Control-Request/Answer common message implementation.

Start time:11:38:20 2008-11-11
Project: mobicents-diameter-parent

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
CreditControlMessageImpl(org.jdiameter.api.Message message)
          Constructor.
 
Method Summary
 java.lang.String getAcctMultiSessionId()
          Returns the value of the Acct-Multi-Session-Id AVP, of type UTF8String.
 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.
 MultipleServicesCreditControlAvp[] getMultipleServicesCreditControls()
          Returns the set of Multiple-Services-Credit-Control AVPs.
 boolean hasAcctMultiSessionId()
          Returns true if the Acct-Multi-Session-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 hasMultipleServicesCreditControl()
          Returns tru if Multiple-Services-Credit-Control AVP is present
 void setAcctMultiSessionId(java.lang.String acctMultiSessionId)
          Sets the value of the Acct-Multi-Session-Id AVP, of type UTF8String.
 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 setMultipleServicesCreditControl(MultipleServicesCreditControlAvp multipleServicesCreditControl)
          Sets a single Multiple-Services-Credit-Control AVP in the message, of type Grouped.
 void setMultipleServicesCreditControls(MultipleServicesCreditControlAvp[] multipleServicesCreditControls)
          Sets the set of Multiple-Services-Credit-Control AVPs, with all the values in the given array.
 
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, 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, getAvpsAsOctetString, getAvpsAsOctetString, getAvpsAsRaw, getAvpsAsRaw, getAvpsAsTime, getAvpsAsTime, getAvpsAsUnsigned32, getAvpsAsUnsigned32, getAvpsAsUnsigned64, getAvpsAsUnsigned64, getAvpsAsUTF8String, getAvpsAsUTF8String, getCommand, getData, getDestinationHost, getDestinationRealm, getErrorMessage, getErrorReportingHost, getEventTimestamp, getExtensionAvps, getFailedAvp, getFailedAvps, getGenericData, getHeader, getLongName, getOriginHost, getOriginRealm, getOriginStateId, getProxyInfos, getRedirectHosts, getRedirectHostUsage, getRedirectMaxCacheTime, getResultCode, getRouteRecords, getSessionId, getShortName, 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
getAuthApplicationId, getEventTimestamp, getOriginStateId, getProxyInfos, getRouteRecords, getUserName, hasAuthApplicationId, hasEventTimestamp, hasOriginStateId, hasUserName, setAuthApplicationId, setEventTimestamp, 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

CreditControlMessageImpl

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

Parameters:
message - the Message object to be wrapped
Method Detail

getAcctMultiSessionId

public java.lang.String getAcctMultiSessionId()
Description copied from interface: CreditControlMessage
Returns the value of the Acct-Multi-Session-Id AVP, of type UTF8String.

Specified by:
getAcctMultiSessionId in interface CreditControlMessage
Returns:

getCcRequestNumber

public long getCcRequestNumber()
Description copied from interface: CreditControlMessage
Returns the value of the CC-Request-Number AVP, of type Unsigned32.

Specified by:
getCcRequestNumber in interface CreditControlMessage
Returns:

getCcRequestType

public CcRequestType getCcRequestType()
Description copied from interface: CreditControlMessage
Returns the value of the CC-Request-Type AVP, of type Enumerated.

Specified by:
getCcRequestType in interface CreditControlMessage
Returns:

getCcSubSessionId

public long getCcSubSessionId()
Description copied from interface: CreditControlMessage
Returns the value of the CC-Sub-Session-Id AVP, of type Unsigned64.

Specified by:
getCcSubSessionId in interface CreditControlMessage
Returns:

getMultipleServicesCreditControls

public MultipleServicesCreditControlAvp[] getMultipleServicesCreditControls()
Description copied from interface: CreditControlMessage
Returns the set of Multiple-Services-Credit-Control AVPs.

Specified by:
getMultipleServicesCreditControls in interface CreditControlMessage
Returns:

hasMultipleServicesCreditControl

public boolean hasMultipleServicesCreditControl()
Description copied from interface: CreditControlMessage
Returns tru if Multiple-Services-Credit-Control AVP is present

Specified by:
hasMultipleServicesCreditControl in interface CreditControlMessage
Returns:

hasAcctMultiSessionId

public boolean hasAcctMultiSessionId()
Description copied from interface: CreditControlMessage
Returns true if the Acct-Multi-Session-Id AVP is present in the message.

Specified by:
hasAcctMultiSessionId in interface CreditControlMessage
Returns:

hasCcRequestNumber

public boolean hasCcRequestNumber()
Description copied from interface: CreditControlMessage
Returns true if the CC-Request-Number AVP is present in the message.

Specified by:
hasCcRequestNumber in interface CreditControlMessage
Returns:

hasCcRequestType

public boolean hasCcRequestType()
Description copied from interface: CreditControlMessage
Returns true if the CC-Request-Type AVP is present in the message.

Specified by:
hasCcRequestType in interface CreditControlMessage
Returns:

hasCcSubSessionId

public boolean hasCcSubSessionId()
Description copied from interface: CreditControlMessage
Returns true if the CC-Sub-Session-Id AVP is present in the message.

Specified by:
hasCcSubSessionId in interface CreditControlMessage
Returns:

setAcctMultiSessionId

public void setAcctMultiSessionId(java.lang.String acctMultiSessionId)
                           throws java.lang.IllegalStateException
Description copied from interface: CreditControlMessage
Sets the value of the Acct-Multi-Session-Id AVP, of type UTF8String.

Specified by:
setAcctMultiSessionId in interface CreditControlMessage
Throws:
java.lang.IllegalStateException

setCcRequestNumber

public void setCcRequestNumber(long ccRequestNumber)
                        throws java.lang.IllegalStateException
Description copied from interface: CreditControlMessage
Sets the value of the CC-Request-Number AVP, of type Unsigned32.

Specified by:
setCcRequestNumber in interface CreditControlMessage
Throws:
java.lang.IllegalStateException

setCcRequestType

public void setCcRequestType(CcRequestType ccRequestType)
                      throws java.lang.IllegalStateException
Description copied from interface: CreditControlMessage
Sets the value of the CC-Request-Type AVP, of type Enumerated.

Specified by:
setCcRequestType in interface CreditControlMessage
Throws:
java.lang.IllegalStateException

setCcSubSessionId

public void setCcSubSessionId(long ccSubSessionId)
                       throws java.lang.IllegalStateException
Description copied from interface: CreditControlMessage
Sets the value of the CC-Sub-Session-Id AVP, of type Unsigned64.

Specified by:
setCcSubSessionId in interface CreditControlMessage
Throws:
java.lang.IllegalStateException

setMultipleServicesCreditControl

public void setMultipleServicesCreditControl(MultipleServicesCreditControlAvp multipleServicesCreditControl)
                                      throws java.lang.IllegalStateException
Description copied from interface: CreditControlMessage
Sets a single Multiple-Services-Credit-Control AVP in the message, of type Grouped.

Specified by:
setMultipleServicesCreditControl in interface CreditControlMessage
Throws:
java.lang.IllegalStateException

setMultipleServicesCreditControls

public void setMultipleServicesCreditControls(MultipleServicesCreditControlAvp[] multipleServicesCreditControls)
                                       throws java.lang.IllegalStateException
Description copied from interface: CreditControlMessage
Sets the set of Multiple-Services-Credit-Control AVPs, with all the values in the given array.

Specified by:
setMultipleServicesCreditControls in interface CreditControlMessage
Throws:
java.lang.IllegalStateException


Copyright © 2011. All Rights Reserved.