Methods Summary |
---|
public java.lang.String | encodeBody()Encodes the body as a textstring.
if (parameters != null && !parameters.isEmpty()) {
if (valueWithoutParam.equals("")) {
return parameters.encode();
} else {
String separator = Header.isAuthorization(headerName) ?
Separators.SP : Separators.SEMICOLON;
return valueWithoutParam + separator +
parameters.encode();
}
} else {
return headerValue;
}
|
public NameValueList | getParameters()Gets the parameter list for this extension header.
return parameters;
|
public java.lang.Object | getValue()Gets the value of the header without parameters.
return valueWithoutParam;
|
public void | setHeaderValue(java.lang.String value)Sets the header value field.
Overloads the function from the base class.
headerValue = value;
valueWithoutParam = value;
|
public void | setName(java.lang.String name)Sets the name for a generic header.
headerName = name;
|
public void | setValue(java.lang.String value)Sets the value without parameters for a generic header.
valueWithoutParam = value;
|