|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.diameter.charging.util.RoChargingResults
public class RoChargingResults
The RoChargingResults class is a simple representation of the Diameter Credit-Control-Answer (CCA) command. It contains all the pertinent information returned by the OCS that a credit-control application needs to manage an online credit session.
The Ro CCA command is defined in ETSI TS 132 299 V6.9.0 (2006-12) - Diameter charging applications, which references RFC 4006 - Diameter Credit-Control Application.
Constructor Summary | |
---|---|
RoChargingResults()
Constructs an empty RoChargingResults object representing the CCA command. |
|
RoChargingResults(java.util.List<Avp> avps)
Constructs a RoChargingResults object representing the CCA Command. |
Method Summary | |
---|---|
java.lang.Integer |
getAuthApplicationId()
Gets the value corresponding to the payload of the {Auth-Application-Id} Avp. |
java.lang.Integer |
getCcRequestNumber()
Gets the value corresponding to the payload of the {CC-Request-Number} Avp. |
java.lang.Integer |
getCcSessionFailover()
Gets the value corresponding to the payload of the [CC-Session-Failover] Avp. |
CostInformation |
getCostInformation()
Gets the value corresponding to the payload of the [Cost-Information] Avp. |
java.lang.Integer |
getCreditControlFailureHandling()
Gets the value corresponding to the payload of the [Credit-Control-Failure-Handling] Avp. |
MultipleServicesCreditControl[] |
getMultipleServicesCreditControls()
Gets the values corresponding to the payloads of the [Multiple-Services-Credit-Control] Avps. |
java.lang.String |
getOriginHost()
Gets the value corresponding to the payload of the {Origin-Host} Avp. |
java.lang.String |
getOriginRealm()
Gets the value corresponding to the payload of the {Origin-Realm} Avp. |
ServiceInformation |
getServiceInformation()
Gets the value corresponding to the payload of the [Service-Information] Avp. |
java.lang.String |
getSessionId()
Gets the value corresponding to the payload of the {Session-Id} Avp. |
void |
setAuthApplicationId(java.lang.Integer authApplicationId)
Sets the value corresponding to the payload of the {Auth-Application-Id} Avp. |
void |
setCcRequestNumber(java.lang.Integer ccRequestNumber)
Sets the value corresponding to the payload of the {CC-Request-Number} Avp. |
void |
setCcSessionFailover(java.lang.Integer ccSessionFailover)
Sets the value corresponding to the payload of the [CC-Session-Failover] Avp. |
void |
setCostInformation(CostInformation costInformation)
Sets the value corresponding to the payload of the [Cost-Information] Avp. |
void |
setCreditControlFailureHandling(java.lang.Integer creditControlFailureHandling)
Sets the value corresponding to the payload of the [Credit-Control-Failure-Handling] Avp. |
void |
setMultipleServicesCreditControls(MultipleServicesCreditControl[] multipleServicesCreditControls)
Sets the value corresponding to the payloads of the [Multiple-Services-Credit-Control] Avps. |
void |
setOriginHost(java.lang.String originHost)
Sets the value corresponding to the payload of the {Origin-Host} Avp. |
void |
setOriginRealm(java.lang.String originRealm)
Sets the value corresponding to the payload of the {Origin-Realm} Avp. |
void |
setServiceInformation(ServiceInformation serviceInformation)
Sets the value corresponding to the payload of the [Service-Information] Avp. |
void |
setSessionId(java.lang.String sessionId)
Sets the value corresponding to the payload of the {Session-Id} Avp. |
java.util.Vector |
toAvps()
Transforms the RoChargingResults object into a Vector of Avps. |
void |
validate()
Validates the members of the RoChargingResults object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RoChargingResults()
public RoChargingResults(java.util.List<Avp> avps) throws AvpTransformationException
The method takes a List of Avps as an input. If an Avp code inside the list corresponds to a member of RoChargingResults, the member will be populated with the Avp value during construction. If an Avp code is unknown, the value will be silently discarded.
avps
- a list of Avps that can appear in the CCA
AvpTransformationException
- if the Avp value is in an unexpected format.Method Detail |
---|
public java.lang.Integer getCcRequestNumber()
public void setCcRequestNumber(java.lang.Integer ccRequestNumber)
ccRequestNumber
- the value corresponding to the payload of the {CC-Request-Number} Avp.public MultipleServicesCreditControl[] getMultipleServicesCreditControls()
public void setMultipleServicesCreditControls(MultipleServicesCreditControl[] multipleServicesCreditControls)
multipleServicesCreditControl
- the values corresponding to the payloads of the [Multiple-Services-Credit-Control] Avps.public ServiceInformation getServiceInformation()
public void setServiceInformation(ServiceInformation serviceInformation)
serviceInformation
- the value corresponding to the payload of the [Service-Information] Avp.public java.lang.String getSessionId()
public void setSessionId(java.lang.String sessionId)
sessionId
- the value corresponding to the payload of the {Session-Id} Avp.public java.lang.Integer getAuthApplicationId()
public void setAuthApplicationId(java.lang.Integer authApplicationId)
authApplicationId
- the value corresponding to the payload of the {Auth-Application-Id} Avp.public java.lang.Integer getCcSessionFailover()
public void setCcSessionFailover(java.lang.Integer ccSessionFailover)
ccSessionFailover
- the value corresponding to the payload of the [CC-Session-Failover] Avp.public CostInformation getCostInformation()
public void setCostInformation(CostInformation costInformation)
costInformation
- the value corresponding to the payload of the [Cost-Information] Avp.public java.lang.Integer getCreditControlFailureHandling()
public void setCreditControlFailureHandling(java.lang.Integer creditControlFailureHandling)
mmsInformation
- the value corresponding to the payload of the [Credit-Control-Failure-Handling] Avp.public java.lang.String getOriginHost()
public void setOriginHost(java.lang.String originHost)
originHost
- the value corresponding to the payload of the {Origin-Host} Avp.public java.lang.String getOriginRealm()
public void setOriginRealm(java.lang.String originRealm)
originRealm
- the value corresponding to the payload of the {Origin-Realm} Avp.public void validate() throws ChargingValidationException
ChargingValidationException
- if a member of RoChargingResults is in an unexpected format.public java.util.Vector toAvps() throws AvpTransformationException
AvpTransformationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |