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:HeaderParser
Parse multiple HTTP Link headers into a data structure.- Specified by:
parseLink
in interfaceHeaderParser
- Parameters:
headers
- some number of HTTP headers- Returns:
- a collection of link structures
-
parseWwwAuthenticate
Description copied from interface:HeaderParser
Parse multiple HTTP WWW-Authenticate headers into a data structure.- Specified by:
parseWwwAuthenticate
in interfaceHeaderParser
- Parameters:
headers
- some number of HTTP headers- Returns:
- a WWW-Authenticate data structure
-
parseWacAllow
Description copied from interface:HeaderParser
Parse multiple HTTP Wac-Allow headers into a data structure.- Specified by:
parseWacAllow
in interfaceHeaderParser
- Parameters:
headers
- some number of HTTP headers- Returns:
- a Wac-Allow data structure
-