Package com.inrupt.client.core
Class DefaultHeaderParser
java.lang.Object
com.inrupt.client.core.DefaultHeaderParser
- All Implemented Interfaces:
HeaderParser
A default header parser.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionParse multiple HTTP Link headers into a data structure.parseWacAllow(List<String> headers) Parse multiple HTTP Wac-Allow headers into a data structure.parseWwwAuthenticate(List<String> headers) Parse multiple HTTP WWW-Authenticate headers into a data structure.
-
Constructor Details
-
DefaultHeaderParser
public DefaultHeaderParser()
-
-
Method Details
-
parseLink
Description copied from interface:HeaderParserParse multiple HTTP Link headers into a data structure.- Specified by:
parseLinkin interfaceHeaderParser- Parameters:
headers- some number of HTTP headers- Returns:
- a collection of link structures
-
parseWwwAuthenticate
Description copied from interface:HeaderParserParse multiple HTTP WWW-Authenticate headers into a data structure.- Specified by:
parseWwwAuthenticatein interfaceHeaderParser- Parameters:
headers- some number of HTTP headers- Returns:
- a WWW-Authenticate data structure
-
parseWacAllow
Description copied from interface:HeaderParserParse multiple HTTP Wac-Allow headers into a data structure.- Specified by:
parseWacAllowin interfaceHeaderParser- Parameters:
headers- some number of HTTP headers- Returns:
- a Wac-Allow data structure
-