| java.lang.Object org.apache.http.message.BasicHeaderValueParser
BasicHeaderValueParser | public class BasicHeaderValueParser implements HeaderValueParser(Code) | | Basic implementation for parsing header values into elements.
Instances of this class are stateless and thread-safe.
Derived classes are expected to maintain these properties.
author: B.C. Holmes author: Park, Sung-Gu author: Mike Bowler author: Oleg Kalnichevski author: and others author: version: $Revision: 595670 $ since: 4.0 |
Method Summary | |
protected HeaderElement | createHeaderElement(String name, String value, NameValuePair[] params) Creates a header element. | protected NameValuePair | createNameValuePair(String name, String value) Creates a name-value pair. | final public static HeaderElement[] | parseElements(String value, HeaderValueParser parser) Parses elements with the given parser. | public HeaderElement[] | parseElements(CharArrayBuffer buffer, ParserCursor cursor) | final public static HeaderElement | parseHeaderElement(String value, HeaderValueParser parser) Parses an element with the given parser. | public HeaderElement | parseHeaderElement(CharArrayBuffer buffer, ParserCursor cursor) | final public static NameValuePair | parseNameValuePair(String value, HeaderValueParser parser) Parses a name-value-pair with the given parser. | public NameValuePair | parseNameValuePair(CharArrayBuffer buffer, ParserCursor cursor) | public NameValuePair | parseNameValuePair(CharArrayBuffer buffer, ParserCursor cursor, char[] delimiters) | final public static NameValuePair[] | parseParameters(String value, HeaderValueParser parser) Parses parameters with the given parser. | public NameValuePair[] | parseParameters(CharArrayBuffer buffer, ParserCursor cursor) |
DEFAULT | final public static BasicHeaderValueParser DEFAULT(Code) | | A default instance of this class, for use as default or fallback.
Note that
BasicHeaderValueParser is not a singleton, there
can be many instances of the class itself and of derived classes.
The instance here provides non-customized, default behavior.
|
parseElements | final public static HeaderElement[] parseElements(String value, HeaderValueParser parser) throws ParseException(Code) | | Parses elements with the given parser.
Parameters: value - the header value to parse Parameters: parser - the parser to use, or null for default array holding the header elements, never null |
parseHeaderElement | final public static HeaderElement parseHeaderElement(String value, HeaderValueParser parser) throws ParseException(Code) | | Parses an element with the given parser.
Parameters: value - the header element to parse Parameters: parser - the parser to use, or null for default the parsed header element |
parseNameValuePair | final public static NameValuePair parseNameValuePair(String value, HeaderValueParser parser) throws ParseException(Code) | | Parses a name-value-pair with the given parser.
Parameters: value - the NVP to parse Parameters: parser - the parser to use, or null for default the parsed name-value pair |
parseParameters | final public static NameValuePair[] parseParameters(String value, HeaderValueParser parser) throws ParseException(Code) | | Parses parameters with the given parser.
Parameters: value - the parameter list to parse Parameters: parser - the parser to use, or null for default array holding the parameters, never null |
|
|