Package org.forgerock.http.header
Class AuthorizationHeader.Factory
java.lang.Object
org.forgerock.http.header.HeaderFactory<H>
org.forgerock.http.header.AuthorizationHeader.Factory
- Enclosing class:
- AuthorizationHeader
A factory for creating
AuthorizationHeader
instances.-
Field Summary
Fields inherited from class org.forgerock.http.header.HeaderFactory
FACTORIES, HEADER_NAMES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Class<AuthorizationHeader>
Get the associated header class.protected String
Get the associated header name.protected AuthorizationHeader
Create a header instance from String representation, which may contain multiple values if the header supports them.protected final AuthorizationHeader
Create a header instance from a list of String representations, each of which may in turn contain multiple values if the header supports them.Methods inherited from class org.forgerock.http.header.HeaderFactory
parse
-
Constructor Details
-
Factory
public Factory()
-
-
Method Details
-
parse
Description copied from class:HeaderFactory
Create a header instance from String representation, which may contain multiple values if the header supports them.- Specified by:
parse
in classHeaderFactory<AuthorizationHeader>
- Parameters:
value
- The string representation.- Returns:
- The parsed header.
- Throws:
MalformedHeaderException
- When the value cannot be parsed.
-
getHeaderClass
Description copied from class:HeaderFactory
Get the associated header class.- Specified by:
getHeaderClass
in classHeaderFactory<AuthorizationHeader>
- Returns:
- the header class
-
getHeaderName
Description copied from class:HeaderFactory
Get the associated header name.- Specified by:
getHeaderName
in classHeaderFactory<AuthorizationHeader>
- Returns:
- the header name
-
parse
Description copied from class:HeaderFactory
Create a header instance from a list of String representations, each of which may in turn contain multiple values if the header supports them.- Specified by:
parse
in classHeaderFactory<H extends Header>
- Parameters:
values
- The string representations.- Returns:
- The parsed header.
- Throws:
MalformedHeaderException
- When the value cannot be parsed.
-