public class HeadersByLeg
extends java.lang.Object
HeadersByLegCodec
when storing in a CMP field.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CELLULAR_NETWORK_INFO |
static java.lang.String |
OC_TERM_P_ACCESS_NETWORK_INFO |
static java.lang.String |
OC_TERM_P_VISITED_NETWORK_ID |
static java.lang.String |
P_ACCESS_NETWORK_INFO |
static java.lang.String |
P_CELLULAR_NETWORK_INFO |
static java.lang.String |
P_CHARGING_VECTOR |
static java.lang.String |
P_EARLY_MEDIA |
static java.lang.String |
P_VISITED_NETWORK_ID |
Constructor and Description |
---|
HeadersByLeg() |
Modifier and Type | Method and Description |
---|---|
void |
addHeaderForLeg(java.lang.String legName,
java.lang.String headerName,
java.lang.String headerValue)
Add a header value to a particular leg, retaining existing values, if any
|
void |
copyLegValues(java.lang.String fromLeg,
java.lang.String toLeg)
Copies the headers associated with fromLeg and associates them with toLeg.
|
java.lang.String |
getHeaderValueForLeg(java.lang.String legName,
java.lang.String headerName)
Get a leg's header value.
|
java.util.List<java.lang.String> |
getHeaderValuesForLeg(java.lang.String legName,
java.lang.String headerName)
Get a leg's header values.
|
void |
setHeaderForLeg(java.lang.String legName,
java.lang.String headerName,
java.lang.String headerValue)
Set the header value for a particular leg.
|
void |
setHeadersForLeg(java.lang.String legName,
java.lang.String headerName,
java.lang.Iterable<java.lang.String> headerValues)
Set multiple header values for a particular leg.
|
java.lang.String |
toString() |
public static final java.lang.String P_ACCESS_NETWORK_INFO
public static final java.lang.String OC_TERM_P_ACCESS_NETWORK_INFO
public static final java.lang.String P_CHARGING_VECTOR
public static final java.lang.String P_VISITED_NETWORK_ID
public static final java.lang.String OC_TERM_P_VISITED_NETWORK_ID
public static final java.lang.String CELLULAR_NETWORK_INFO
public static final java.lang.String P_CELLULAR_NETWORK_INFO
public static final java.lang.String P_EARLY_MEDIA
public void setHeaderForLeg(java.lang.String legName, java.lang.String headerName, java.lang.String headerValue)
legName
- the leg name the header is associated withheaderName
- the header nameheaderValue
- the header valuepublic void setHeadersForLeg(java.lang.String legName, java.lang.String headerName, java.lang.Iterable<java.lang.String> headerValues)
legName
- the leg name the header is associated withheaderName
- the header nameheaderValues
- the header valuespublic void addHeaderForLeg(java.lang.String legName, java.lang.String headerName, java.lang.String headerValue)
legName
- the leg name the header is associated withheaderName
- the header nameheaderValue
- the new header valuepublic java.lang.String getHeaderValueForLeg(java.lang.String legName, java.lang.String headerName)
legName
- the leg name the header is associated withheaderName
- the header namepublic java.util.List<java.lang.String> getHeaderValuesForLeg(java.lang.String legName, java.lang.String headerName)
legName
- the leg name the header is associated withheaderName
- the header namepublic void copyLegValues(java.lang.String fromLeg, java.lang.String toLeg)
fromLeg
- leg name to copy header values fromtoLeg
- leg name to copy header values topublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © OpenCloud. All Rights Reserved.