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

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.CreditControlAnswerImpl
All Implemented Interfaces:
java.lang.Cloneable, net.java.slee.resource.diameter.base.events.DiameterMessage, CreditControlAnswer, CreditControlMessage

public class CreditControlAnswerImpl
extends CreditControlMessageImpl
implements CreditControlAnswer

CCA Credit-Control-Answer message implementation.

Start time:15:49:22 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
CreditControlAnswerImpl(org.jdiameter.api.Message message)
          Constructor.
 
Method Summary
 CcSessionFailoverType getCcSessionFailover()
          Returns the value of the CC-Session-Failover AVP, of type Enumerated.
 CheckBalanceResultType getCheckBalanceResult()
          Returns the value of the Check-Balance-Result AVP, of type Enumerated.
 CostInformationAvp getCostInformation()
          Returns the value of the Cost-Information AVP, of type Grouped.
 CreditControlFailureHandlingType getCreditControlFailureHandling()
          Returns the value of the Credit-Control-Failure-Handling AVP, of type Enumerated.
 DirectDebitingFailureHandlingType getDirectDebitingFailureHandling()
          Returns the value of the Direct-Debiting-Failure-Handling AVP, of type Enumerated.
 FinalUnitIndicationAvp getFinalUnitIndication()
          Returns the value of the Final-Unit-Indication AVP, of type Grouped.
 GrantedServiceUnitAvp getGrantedServiceUnit()
          Returns the value of the Granted-Service-Unit AVP, of type Grouped.
 java.lang.String getLongName()
           
 java.lang.String getShortName()
           
 long getValidityTime()
          Returns the value of the Validity-Time AVP, of type Unsigned32.
 boolean hasCcSessionFailover()
          Returns true if the CC-Session-Failover AVP is present in the message.
 boolean hasCheckBalanceResult()
          Returns true if the Check-Balance-Result AVP is present in the message.
 boolean hasCostInformation()
          Returns true if the Cost-Information AVP is present in the message.
 boolean hasCreditControlFailureHandling()
          Returns true if the Credit-Control-Failure-Handling AVP is present in the message.
 boolean hasDirectDebitingFailureHandling()
          Returns true if the Direct-Debiting-Failure-Handling AVP is present in the message.
 boolean hasFinalUnitIndication()
          Returns true if the Final-Unit-Indication AVP is present in the message.
 boolean hasGrantedServiceUnit()
          Returns true if the Granted-Service-Unit AVP is present in the message.
 boolean hasValidityTime()
          Returns true if the Validity-Time AVP is present in the message.
 void setCcSessionFailover(CcSessionFailoverType ccSessionFailover)
          Sets the value of the CC-Session-Failover AVP, of type Enumerated.
 void setCheckBalanceResult(CheckBalanceResultType checkBalanceResult)
          Sets the value of the Check-Balance-Result AVP, of type Enumerated.
 void setCostInformation(CostInformationAvp costInformation)
          Sets the value of the Cost-Information AVP, of type Grouped.
 void setCreditControlFailureHandling(CreditControlFailureHandlingType creditControlFailureHandling)
          Sets the value of the Credit-Control-Failure-Handling AVP, of type Enumerated.
 void setDirectDebitingFailureHandling(DirectDebitingFailureHandlingType directDebitingFailureHandling)
          Sets the value of the Direct-Debiting-Failure-Handling AVP, of type Enumerated.
 void setFinalUnitIndication(FinalUnitIndicationAvp finalUnitIndication)
          Sets the value of the Final-Unit-Indication AVP, of type Grouped.
 void setGrantedServiceUnit(GrantedServiceUnitAvp grantedServiceUnit)
          Sets the value of the Granted-Service-Unit AVP, of type Grouped.
 void setValidityTime(long validityTime)
          Sets the value of the Validity-Time AVP, of type Unsigned32.
 
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.CreditControlAnswer
getFailedAvps, getRedirectHosts, getRedirectHostUsage, getRedirectMaxCacheTime, getResultCode, hasRedirectHostUsage, hasRedirectMaxCacheTime, hasResultCode, setFailedAvp, setFailedAvps, setRedirectHost, setRedirectHosts, setRedirectHostUsage, setRedirectMaxCacheTime, setResultCode
 
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

CreditControlAnswerImpl

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

Parameters:
message - the message to construct the Answer
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

getCcSessionFailover

public CcSessionFailoverType getCcSessionFailover()
Description copied from interface: CreditControlAnswer
Returns the value of the CC-Session-Failover AVP, of type Enumerated.

Specified by:
getCcSessionFailover in interface CreditControlAnswer
Returns:

getCheckBalanceResult

public CheckBalanceResultType getCheckBalanceResult()
Description copied from interface: CreditControlAnswer
Returns the value of the Check-Balance-Result AVP, of type Enumerated.

Specified by:
getCheckBalanceResult in interface CreditControlAnswer
Returns:

getCostInformation

public CostInformationAvp getCostInformation()
Description copied from interface: CreditControlAnswer
Returns the value of the Cost-Information AVP, of type Grouped.

Specified by:
getCostInformation in interface CreditControlAnswer
Returns:

getCreditControlFailureHandling

public CreditControlFailureHandlingType getCreditControlFailureHandling()
Description copied from interface: CreditControlAnswer
Returns the value of the Credit-Control-Failure-Handling AVP, of type Enumerated.

Specified by:
getCreditControlFailureHandling in interface CreditControlAnswer
Returns:

getDirectDebitingFailureHandling

public DirectDebitingFailureHandlingType getDirectDebitingFailureHandling()
Description copied from interface: CreditControlAnswer
Returns the value of the Direct-Debiting-Failure-Handling AVP, of type Enumerated.

Specified by:
getDirectDebitingFailureHandling in interface CreditControlAnswer
Returns:

getFinalUnitIndication

public FinalUnitIndicationAvp getFinalUnitIndication()
Description copied from interface: CreditControlAnswer
Returns the value of the Final-Unit-Indication AVP, of type Grouped.

Specified by:
getFinalUnitIndication in interface CreditControlAnswer
Returns:

getGrantedServiceUnit

public GrantedServiceUnitAvp getGrantedServiceUnit()
Description copied from interface: CreditControlAnswer
Returns the value of the Granted-Service-Unit AVP, of type Grouped.

Specified by:
getGrantedServiceUnit in interface CreditControlAnswer
Returns:

getValidityTime

public long getValidityTime()
Description copied from interface: CreditControlAnswer
Returns the value of the Validity-Time AVP, of type Unsigned32.

Specified by:
getValidityTime in interface CreditControlAnswer
Returns:

hasCcSessionFailover

public boolean hasCcSessionFailover()
Description copied from interface: CreditControlAnswer
Returns true if the CC-Session-Failover AVP is present in the message.

Specified by:
hasCcSessionFailover in interface CreditControlAnswer
Returns:

hasCheckBalanceResult

public boolean hasCheckBalanceResult()
Description copied from interface: CreditControlAnswer
Returns true if the Check-Balance-Result AVP is present in the message.

Specified by:
hasCheckBalanceResult in interface CreditControlAnswer
Returns:

hasCostInformation

public boolean hasCostInformation()
Description copied from interface: CreditControlAnswer
Returns true if the Cost-Information AVP is present in the message.

Specified by:
hasCostInformation in interface CreditControlAnswer
Returns:

hasCreditControlFailureHandling

public boolean hasCreditControlFailureHandling()
Description copied from interface: CreditControlAnswer
Returns true if the Credit-Control-Failure-Handling AVP is present in the message.

Specified by:
hasCreditControlFailureHandling in interface CreditControlAnswer
Returns:

hasDirectDebitingFailureHandling

public boolean hasDirectDebitingFailureHandling()
Description copied from interface: CreditControlAnswer
Returns true if the Direct-Debiting-Failure-Handling AVP is present in the message.

Specified by:
hasDirectDebitingFailureHandling in interface CreditControlAnswer
Returns:

hasFinalUnitIndication

public boolean hasFinalUnitIndication()
Description copied from interface: CreditControlAnswer
Returns true if the Final-Unit-Indication AVP is present in the message.

Specified by:
hasFinalUnitIndication in interface CreditControlAnswer
Returns:

hasGrantedServiceUnit

public boolean hasGrantedServiceUnit()
Description copied from interface: CreditControlAnswer
Returns true if the Granted-Service-Unit AVP is present in the message.

Specified by:
hasGrantedServiceUnit in interface CreditControlAnswer
Returns:

hasValidityTime

public boolean hasValidityTime()
Description copied from interface: CreditControlAnswer
Returns true if the Validity-Time AVP is present in the message.

Specified by:
hasValidityTime in interface CreditControlAnswer
Returns:

setCcSessionFailover

public void setCcSessionFailover(CcSessionFailoverType ccSessionFailover)
                          throws java.lang.IllegalStateException
Description copied from interface: CreditControlAnswer
Sets the value of the CC-Session-Failover AVP, of type Enumerated.

Specified by:
setCcSessionFailover in interface CreditControlAnswer
Throws:
java.lang.IllegalStateException

setCheckBalanceResult

public void setCheckBalanceResult(CheckBalanceResultType checkBalanceResult)
                           throws java.lang.IllegalStateException
Description copied from interface: CreditControlAnswer
Sets the value of the Check-Balance-Result AVP, of type Enumerated.

Specified by:
setCheckBalanceResult in interface CreditControlAnswer
Throws:
java.lang.IllegalStateException

setCostInformation

public void setCostInformation(CostInformationAvp costInformation)
                        throws java.lang.IllegalStateException
Description copied from interface: CreditControlAnswer
Sets the value of the Cost-Information AVP, of type Grouped.

Specified by:
setCostInformation in interface CreditControlAnswer
Throws:
java.lang.IllegalStateException

setCreditControlFailureHandling

public void setCreditControlFailureHandling(CreditControlFailureHandlingType creditControlFailureHandling)
                                     throws java.lang.IllegalStateException
Description copied from interface: CreditControlAnswer
Sets the value of the Credit-Control-Failure-Handling AVP, of type Enumerated.

Specified by:
setCreditControlFailureHandling in interface CreditControlAnswer
Throws:
java.lang.IllegalStateException

setDirectDebitingFailureHandling

public void setDirectDebitingFailureHandling(DirectDebitingFailureHandlingType directDebitingFailureHandling)
                                      throws java.lang.IllegalStateException
Description copied from interface: CreditControlAnswer
Sets the value of the Direct-Debiting-Failure-Handling AVP, of type Enumerated.

Specified by:
setDirectDebitingFailureHandling in interface CreditControlAnswer
Throws:
java.lang.IllegalStateException

setFinalUnitIndication

public void setFinalUnitIndication(FinalUnitIndicationAvp finalUnitIndication)
                            throws java.lang.IllegalStateException
Description copied from interface: CreditControlAnswer
Sets the value of the Final-Unit-Indication AVP, of type Grouped.

Specified by:
setFinalUnitIndication in interface CreditControlAnswer
Throws:
java.lang.IllegalStateException

setGrantedServiceUnit

public void setGrantedServiceUnit(GrantedServiceUnitAvp grantedServiceUnit)
                           throws java.lang.IllegalStateException
Description copied from interface: CreditControlAnswer
Sets the value of the Granted-Service-Unit AVP, of type Grouped.

Specified by:
setGrantedServiceUnit in interface CreditControlAnswer
Throws:
java.lang.IllegalStateException

setValidityTime

public void setValidityTime(long validityTime)
                     throws java.lang.IllegalStateException
Description copied from interface: CreditControlAnswer
Sets the value of the Validity-Time AVP, of type Unsigned32.

Specified by:
setValidityTime in interface CreditControlAnswer
Throws:
java.lang.IllegalStateException


Copyright © 2012. All Rights Reserved.