public interface CoaInformation extends GroupedAvp
5.3.37 CoA-Information The CoA-Information AVP (AVP code 1039) is of type Grouped, and it contains care-of-address and the tunnel information related to the care of address. The CoA-Information AVP is sent from the PCEF to the PCRF. When used, the CoA-Information AVP shall include a CoA-IP-Address AVP. The CoA-Information AVP shall also include a Tunnel-Information AVP, which provides the tunnel header length and tunnel header filter information related to the specific care-of-address. AVP Format: CoA-Information ::= < AVP Header: 1039> { Tunnel-Information } { CoA-IP-Address } *[ AVP ]
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
Modifier and Type | Method and Description |
---|---|
Address |
getCoaIpAddress()
Returns the value of the CoA-IP-Address AVP, of type Address.
|
DiameterAvp[] |
getExtensionAvps()
Returns the set of extension AVPs.
|
TunnelInformation |
getTunnelInformation()
Returns the value of the Tunnel-Information AVP, of type Grouped.
|
boolean |
hasCoaIpAddress()
Returns true if the CoA-IP-Address AVP is present in the CoA-Information AVP.
|
boolean |
hasTunnelInformation()
Returns true if the Tunnel-Information AVP is present in the CoA-Information AVP.
|
void |
removeCoaIpAddress()
Removes the CoA-IP-Address AVP from the CoA-Information AVP.
|
void |
removeExtensionAvps()
Removes all extension AVPs from the CoA-Information AVP.
|
void |
removeTunnelInformation()
Removes the Tunnel-Information AVP from the CoA-Information AVP.
|
void |
setCoaIpAddress(Address coaIpAddress)
Sets the value of the CoA-IP-Address AVP, of type Address.
|
void |
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array.
|
void |
setTunnelInformation(TunnelInformation tunnelInformation)
Sets the value of the Tunnel-Information AVP, of type Grouped.
|
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorID, groupedAvpValue, intValue, longValue, stringValue
boolean hasTunnelInformation()
TunnelInformation getTunnelInformation()
void setTunnelInformation(TunnelInformation tunnelInformation)
java.lang.NullPointerException
- if tunnelInformation
is null
.void removeTunnelInformation()
boolean hasCoaIpAddress()
Address getCoaIpAddress()
void setCoaIpAddress(Address coaIpAddress)
java.lang.NullPointerException
- if coaIpAddress
is null
.void removeCoaIpAddress()
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()