public class ParameterizedHeaderWithValue extends Object
A utility class to parse headers that are of the format name; param1=value; param2="quoted string"
such as Content-Type, Accepts, Content-Disposition etc.
More explicitly, a header that starts with a value, then has an optional list of semi-colon separated name/value pairs.
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static List<ParameterizedHeaderWithValue> |
fromString(String input)
Converts headers that are values followed by optional parameters
|
int |
hashCode() |
Map<String,String> |
parameters() |
String |
toString()
Converts the HeaderValue into a string, suitable for printing in an HTTP header.
|
String |
value() |
public String value()
public static List<ParameterizedHeaderWithValue> fromString(String input)
input
- The value to parsepublic String toString()
Copyright © 2017–2019. All rights reserved.