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
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected Class<AuthorizationHeader>Get the associated header class.protected StringGet the associated header name.protected AuthorizationHeaderCreate a header instance from String representation, which may contain multiple values if the header supports them.protected final AuthorizationHeaderCreate 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:HeaderFactoryCreate a header instance from String representation, which may contain multiple values if the header supports them.- Specified by:
 parsein classHeaderFactory<AuthorizationHeader>- Parameters:
 value- The string representation.- Returns:
 - The parsed header.
 - Throws:
 MalformedHeaderException- When the value cannot be parsed.
 - 
getHeaderClass
Description copied from class:HeaderFactoryGet the associated header class.- Specified by:
 getHeaderClassin classHeaderFactory<AuthorizationHeader>- Returns:
 - the header class
 
 - 
getHeaderName
Description copied from class:HeaderFactoryGet the associated header name.- Specified by:
 getHeaderNamein classHeaderFactory<AuthorizationHeader>- Returns:
 - the header name
 
 - 
parse
Description copied from class:HeaderFactoryCreate 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:
 parsein classHeaderFactory<H extends Header>- Parameters:
 values- The string representations.- Returns:
 - The parsed header.
 - Throws:
 MalformedHeaderException- When the value cannot be parsed.
 
 -