|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.diameter.charging.util.RedirectServer
public class RedirectServer
RedirectServer is a lightweight representation of the Grouped [Redirect-Server] Avp. It contains the address information for a redirect server.
The [Redirect-Server] Avp is defined by the 3GPP in ETSI TS 132 299 V6.9.0 (2006-12) - Diameter charging applications.
Constructor Summary | |
---|---|
RedirectServer()
Constructs an empty RedirectServer object representing the [Redirect-Server] Avp. |
|
RedirectServer(java.util.List<Avp> avps)
Constructs a RedirectServer object representing the Grouped [Redirect-Server] Avp. |
Method Summary | |
---|---|
java.lang.Integer |
getRedirectAddressType()
Gets the value corresponding to the payload of the {Redirect-Address-Type} Avp. |
java.lang.String |
getRedirectServerAddress()
Gets the value corresponding to the payload of the {Redirect-Server-Address} Avp. |
void |
setRedirectAddressType(java.lang.Integer redirectAddressType)
Sets the value corresponding to the payload of the {Redirect-Address-Type} Avp. |
void |
setRedirectServerAddress(java.lang.String redirectServerAddress)
Sets the value corresponding to the payload of the {Redirect-Server-Address} Avp. |
Avp |
toAvp()
Transforms a RedirectServer object into a Grouped [Redirect-Server] Avp. |
void |
validate()
Validates the members of the RedirectServer object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RedirectServer()
public RedirectServer(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 RedirectServer, 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
[Redirect-Server] Avp.
AvpTransformationException
- if the Avp value is in an unexpected format.Method Detail |
---|
public java.lang.Integer getRedirectAddressType()
public void setRedirectAddressType(java.lang.Integer redirectAddressType)
redirectAddressType
- the value corresponding to the payload of the {Redirect-Address-Type} Avp.public java.lang.String getRedirectServerAddress()
public void setRedirectServerAddress(java.lang.String redirectServerAddress)
redirectServerAddress
- the value corresponding to the payload of the {Redirect-Server-Address} Avp.public void validate() throws ChargingValidationException
ChargingValidationException
- if a member of RedirectServer is in an unexpected format.public Avp toAvp() throws AvpTransformationException
All non-null members of RedirectServer will be transformed into Avps nested inside of the [Redirect-Server] Avp.
AvpTransformationException
- if a member of RedirectServer is in an
unexpected format.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |