|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.diameter.charging.util.ServerCapabilities
public class ServerCapabilities
ServerCapabilities is a lightweight representation of the Grouped [Server-Capabilities] Avp. It holds the capabilities of a SIP server.
The [Server-Capabilities] Avp is defined by the 3GPP in ETSI TS 132 299 V6.9.0 (2006-12) - Diameter charging applications.
Constructor Summary | |
---|---|
ServerCapabilities()
Constructs an empty ServerCapabilities object representing the [Server-Capabilities] Avp. |
|
ServerCapabilities(java.util.List<Avp> avps)
Constructs a ServerCapabilities object representing the Grouped [Server-Capabilities] Avp. |
Method Summary | |
---|---|
java.lang.Integer[] |
getMandatoryCapabilities()
Gets the values corresponding to the payloads of the [Mandatory-Capability] Avps. |
java.lang.Integer[] |
getOptionalCapabilities()
Gets the values corresponding to the payloads of the [Optional-Capability] Avps. |
java.lang.String[] |
getServerNames()
Gets the values corresponding to the payloads of the [Server-Name] Avps. |
void |
setMandatoryCapabilities(java.lang.Integer[] mandatoryCapabilities)
Sets the values corresponding to the payloads of the [Mandatory-Capability] Avps. |
void |
setOptionalCapabilities(java.lang.Integer[] optionalCapabilities)
Sets the values corresponding to the payloads of the [Optional-Capability] Avps. |
void |
setServerNames(java.lang.String[] serverName)
Sets the values corresponding to the payloads of the [Server-Name] Avps. |
Avp |
toAvp()
Transforms a ServerCapabilities object into a Grouped [Server-Capabilities] Avp. |
void |
validate()
Validates the members of the ServerCapabilities object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServerCapabilities()
public ServerCapabilities(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 ServerCapabilities, 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 Grouped
[Server-Capabilities] Avp.
AvpTransformationException
- if the Avp value is in an unexpected format.Method Detail |
---|
public java.lang.Integer[] getMandatoryCapabilities()
public void setMandatoryCapabilities(java.lang.Integer[] mandatoryCapabilities)
mandatoryCapabilities
- the values corresponding to the payloads of the [Mandatory-Capability] Avps.public java.lang.Integer[] getOptionalCapabilities()
public void setOptionalCapabilities(java.lang.Integer[] optionalCapabilities)
optionalCapabilities
- the values corresponding to the payloads of the [Optional-Capability] Avps.public java.lang.String[] getServerNames()
public void setServerNames(java.lang.String[] serverName)
serverNames
- the values corresponding to the payloads of the [Server-Name] Avps.public void validate() throws ChargingValidationException
ChargingValidationException
- if a member of ServerCapabilities is in an unexpected format.public Avp toAvp() throws AvpTransformationException
All non-null members of ServerCapabilities will be transformed into Avps nested inside of the [Server-Capabilities] Avp.
AvpTransformationException
- if a member of ServerCapabilities is in an
unexpected format.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |