public class PChargingFunctionAddresses extends ParametersHeader implements PChargingFunctionAddressesHeader, SIPHeaderNamesIms, ExtensionHeader
P-Charging-Function-Addresses SIP Private Header.
Sintax (RFC 3455):
P-Charging-Addr = "P-Charging-Function-Addresses" HCOLON charge-addr-params *(SEMI charge-addr-params) charge-addr-params = ccf / ecf / generic-param ccf = "ccf" EQUAL gen-value ecf = "ecf" EQUAL gen-value gen-value = token / host / quoted-string
example:
P-Charging-Function-Addresses: ccf=192.1.1.1; ccf=192.1.1.2; ecf=192.1.1.3; ecf=192.1.1.4
TODO: add PARSER support for IPv6 address. eg: P-Charging-Function-Addresses: ccf=[5555.b99.c88.d77.e66]; ecf=[5555.6aa.7bb.8cc.9dd]
duplicates, parameters
headerName
AND, AT, COLON, COMMA, DOT, DOUBLE_QUOTE, EQUALS, GREATER_THAN, HT, immutableClasses, indentation, LESS_THAN, LPAREN, matchExpression, NEWLINE, PERCENT, POUND, QUESTION, QUOTE, RETURN, RPAREN, SEMICOLON, SLASH, SP, STAR, stringRepresentation
NAME
CALLED_PARTY_ID, P_ACCESS_NETWORK_INFO, P_ASSERTED_IDENTITY, P_ASSERTED_SERVICE, P_ASSOCIATED_URI, P_CHARGING_FUNCTION_ADDRESSES, P_CHARGING_VECTOR, P_MEDIA_AUTHORIZATION, P_PREFERRED_IDENTITY, P_PREFERRED_SERVICE, P_PROFILE_KEY, P_SERVED_USER, P_USER_DATABASE, P_VISITED_NETWORK_ID, PATH, PRIVACY, SECURITY_CLIENT, SECURITY_SERVER, SECURITY_VERIFY, SERVICE_ROUTE
ACCEPT, ACCEPT_ENCODING, ACCEPT_LANGUAGE, ALERT_INFO, ALLOW, ALLOW_EVENTS, AUTHENTICATION_INFO, AUTHORIZATION, CALL_ID, CALL_INFO, CONTACT, CONTENT_DISPOSITION, CONTENT_ENCODING, CONTENT_LANGUAGE, CONTENT_LENGTH, CONTENT_TYPE, CSEQ, DATE, ERROR_INFO, EVENT, EXPIRES, FROM, IN_REPLY_TO, JOIN, MAX_FORWARDS, MIME_VERSION, MIN_EXPIRES, MIN_SE, ORGANIZATION, PRIORITY, PROXY_AUTHENTICATE, PROXY_AUTHORIZATION, PROXY_REQUIRE, RACK, REASON, RECORD_ROUTE, REFERRED_BY, REPLACES, REPLY_TO, REQUIRE, RETRY_AFTER, ROUTE, RSEQ, SERVER, SESSION_EXPIRES, SIP_ETAG, SIP_IF_MATCH, SUBJECT, SUBSCRIPTION_STATE, SUPPORTED, TIMESTAMP, TO, UNSUPPORTED, USER_AGENT, VIA, WARNING, WWW_AUTHENTICATE
Constructor and Description |
---|
PChargingFunctionAddresses()
Defaul Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addChargingCollectionFunctionAddress(String ccfAddress)
Add another Charging Collection Function (CCF) Address to this header
|
void |
addEventChargingFunctionAddress(String ecfAddress)
Add another Event Charging Function (ECF) Address to this header
|
boolean |
delete(String value,
String name)
Remove parameter
|
StringBuilder |
encodeBody(StringBuilder encoding)
Encode the body of this header (the stuff that follows headerName).
|
ListIterator |
getChargingCollectionFunctionAddresses()
Get all the Charging Collection Function (CCF) Addresses set in this header
|
ListIterator<NameValue> |
getEventChargingFunctionAddresses()
Get all the Event Charging Function (ECF) Addresses set in this header
|
void |
removeChargingCollectionFunctionAddress(String ccfAddress)
Remove a Charging Collection Function (CCF) Address set in this header
|
void |
removeEventChargingFunctionAddress(String ecfAddress)
Remove a Event Charging Function (ECF) Address set in this header
|
void |
setChargingCollectionFunctionAddress(String ccfAddress)
Set the Charging Collection Function (CCF) Address
|
void |
setEventChargingFunctionAddress(String ecfAddress)
Set the Event Charging Function (ECF) Address
|
void |
setValue(String value)
Sets the value parameter of the ExtensionHeader.
|
clone, equalParameters, getMultiParameter, getMultiParameterNames, getMultiParameters, getMultiParameterValue, getNameValue, getParameter, getParameter, getParameterAsBoolean, getParameterAsFloat, getParameterAsHexInt, getParameterAsInt, getParameterAsLong, getParameterAsURI, getParameterNames, getParameters, getParameterValue, hasMultiParameter, hasMultiParameters, hasParameter, hasParameters, removeMultiParameter, removeMultiParameters, removeParameter, removeParameters, setMultiParameter, setMultiParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameters, setQuotedParameter
encode, encode, getHeaderName, getHeaderValue, getName, getValue, hashCode, isHeaderList, setHeaderName, toString
dbgPrint, debugDump, debugDump, equals, match
dbgPrint, getClassFromName, getIndentation, getMatcher, isMySubclass, makeClone, merge, setMatcher, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
getParameter, getParameterNames, removeParameter, setParameter
getValue
public PChargingFunctionAddresses()
public StringBuilder encodeBody(StringBuilder encoding)
SIPHeader
encodeBody
in class ParametersHeader
public void setChargingCollectionFunctionAddress(String ccfAddress) throws ParseException
Set the Charging Collection Function (CCF) Address
setChargingCollectionFunctionAddress
in interface PChargingFunctionAddressesHeader
ccfAddress
- - the address to set in the CCF parameterParseException
public void addChargingCollectionFunctionAddress(String ccfAddress) throws ParseException
Add another Charging Collection Function (CCF) Address to this header
addChargingCollectionFunctionAddress
in interface PChargingFunctionAddressesHeader
ccfAddress
- - the address to set in the CCF parameterParseException
public void removeChargingCollectionFunctionAddress(String ccfAddress) throws ParseException
Remove a Charging Collection Function (CCF) Address set in this header
removeChargingCollectionFunctionAddress
in interface PChargingFunctionAddressesHeader
ccfAddress
- - the address in the CCF parameter to removeParseException
- if the address was not removedpublic ListIterator getChargingCollectionFunctionAddresses()
Get all the Charging Collection Function (CCF) Addresses set in this header
getChargingCollectionFunctionAddresses
in interface PChargingFunctionAddressesHeader
public void setEventChargingFunctionAddress(String ecfAddress) throws ParseException
Set the Event Charging Function (ECF) Address
setEventChargingFunctionAddress
in interface PChargingFunctionAddressesHeader
ecfAddress
- - the address to set in the ECF parameterParseException
public void addEventChargingFunctionAddress(String ecfAddress) throws ParseException
Add another Event Charging Function (ECF) Address to this header
addEventChargingFunctionAddress
in interface PChargingFunctionAddressesHeader
ecfAddress
- - the address to set in the ECF parameterParseException
public void removeEventChargingFunctionAddress(String ecfAddress) throws ParseException
Remove a Event Charging Function (ECF) Address set in this header
removeEventChargingFunctionAddress
in interface PChargingFunctionAddressesHeader
ecfAddress
- - the address in the ECF parameter to removeParseException
- if the address was not removedpublic ListIterator<NameValue> getEventChargingFunctionAddresses()
Get all the Event Charging Function (ECF) Addresses set in this header
getEventChargingFunctionAddresses
in interface PChargingFunctionAddressesHeader
public boolean delete(String value, String name)
Remove parameter
value
- - of the parametername
- - of the parameterpublic void setValue(String value) throws ParseException
ExtensionHeader
setValue
in interface ExtensionHeader
value
- - the new value of the ExtensionHeaderParseException
- which signals that an error has been reached
unexpectedly while parsing the value parameter.Copyright © 2016. All Rights Reserved.