public interface RedirectInformation extends GroupedAvp
5.3.82 Redirect-Information The Redirect-Information AVP (AVP code 1085) is of type Grouped. It indicates whether the detected application traffic should be redirected to another controlled address. The Redirect-Information AVP is sent from the PCRF as a part of Charging-Rule- Definition AVP. If the Redirect-Information AVP includes the Redirect-Server-Address AVP, the Redirect-Address-Type AVP shall also be provided indicating the type of address given in the Redirect-Server-Address AVP. AVP Format: Redirect-Information ::= < AVP Header: 1085 > [ Redirect-Support ] [ Redirect-Address-Type ] [ Redirect-Server-Address ] *[ AVP ]
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.
|
RedirectSupport |
getRedirectSupport()
Returns the value of the Redirect-Support AVP, of type Enumerated.
|
boolean |
hasRedirectAddressType()
Returns true if the Redirect-Address-Type AVP is present in the Redirect-Information AVP.
|
boolean |
hasRedirectServerAddress()
Returns true if the Redirect-Server-Address AVP is present in the Redirect-Information AVP.
|
boolean |
hasRedirectSupport()
Returns true if the Redirect-Support AVP is present in the Redirect-Information AVP.
|
void |
removeExtensionAvps()
Removes all extension AVPs from the Redirect-Information AVP.
|
void |
removeRedirectAddressType()
Removes the Redirect-Address-Type AVP from the Redirect-Information AVP.
|
void |
removeRedirectServerAddress()
Removes the Redirect-Server-Address AVP from the Redirect-Information AVP.
|
void |
removeRedirectSupport()
Removes the Redirect-Support AVP from the Redirect-Information 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.
|
void |
setRedirectSupport(RedirectSupport redirectSupport)
Sets the value of the Redirect-Support AVP, of type Enumerated.
|
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorID, groupedAvpValue, intValue, longValue, stringValue
boolean hasRedirectSupport()
RedirectSupport getRedirectSupport()
void setRedirectSupport(RedirectSupport redirectSupport)
java.lang.NullPointerException
- if redirectSupport
is null
.void removeRedirectSupport()
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()