public interface RedirectServer extends GroupedAvp
8.37. Redirect-Server AVP The Redirect-Server AVP (AVP Code 434) is of type Grouped and contains the address information of the redirect server (e.g., HTTP redirect server, SIP Server) with which the end user is to be connected when the account cannot cover the service cost. It MUST be present when the Final-Unit-Action AVP is set to REDIRECT. It is defined as follows (per the grouped-avp-def of RFC 3588 [DIAMBASE]): Redirect-Server ::= < AVP Header: 434 > { Redirect-Address-Type } { Redirect-Server-Address }Note:
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
Modifier and Type | Method and Description |
---|---|
DiameterAvp[] |
getExtensionAvps()
Returns the set of extension AVPs.
|
RedirectAddressType |
getRedirectAddressType()
Returns the value of the Redirect-Address-Type AVP, of type Enumerated.
|
java.lang.String |
getRedirectServerAddress()
Returns the value of the Redirect-Server-Address AVP, of type UTF8String.
|
boolean |
hasRedirectAddressType()
Returns true if the Redirect-Address-Type AVP is present in the Redirect-Server AVP.
|
boolean |
hasRedirectServerAddress()
Returns true if the Redirect-Server-Address AVP is present in the Redirect-Server AVP.
|
void |
removeExtensionAvps()
Removes all extension AVPs from the Redirect-Server AVP.
|
void |
removeRedirectAddressType()
Removes the Redirect-Address-Type AVP from the Redirect-Server AVP.
|
void |
removeRedirectServerAddress()
Removes the Redirect-Server-Address AVP from the Redirect-Server AVP.
|
void |
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array.
|
void |
setRedirectAddressType(RedirectAddressType redirectAddressType)
Sets the value of the Redirect-Address-Type AVP, of type Enumerated.
|
void |
setRedirectServerAddress(java.lang.String redirectServerAddress)
Sets the value of the Redirect-Server-Address AVP, of type UTF8String.
|
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorID, groupedAvpValue, intValue, longValue, stringValue
boolean hasRedirectAddressType()
RedirectAddressType getRedirectAddressType()
void setRedirectAddressType(RedirectAddressType redirectAddressType)
java.lang.NullPointerException
- if redirectAddressType
is null
.void removeRedirectAddressType()
boolean hasRedirectServerAddress()
java.lang.String getRedirectServerAddress()
void setRedirectServerAddress(java.lang.String redirectServerAddress)
java.lang.NullPointerException
- if redirectServerAddress
is null
.void removeRedirectServerAddress()
DiameterAvp[] getExtensionAvps()
void setExtensionAvps(DiameterAvp[] avps) throws AvpNotAllowedException
AvpNotAllowedException
- if an AVP is encountered of a type already known to this class
(i.e. an AVP for which get/set methods already appear in this class)java.lang.NullPointerException
- if avps
is null
.void removeExtensionAvps()