Package | Description |
---|---|
org.forgerock.http.header |
Processes HTTP message header fields.
|
org.forgerock.http.header.authorization |
Credentials classes for use with the
AuthorizationHeader . |
org.forgerock.http.protocol |
Models and manages elements of the Hypertext Transfer Protocol.
|
org.forgerock.http.util |
Miscellaneous utility classes.
|
Modifier and Type | Method and Description |
---|---|
protected abstract H |
HeaderFactory.parse(List<String> values)
Create a header instance from a list of String representations, each of
which may in turn contain multiple values if the header supports them.
|
H |
HeaderFactory.parse(Object value)
Create a header instance from a provided object representation.
|
protected abstract H |
HeaderFactory.parse(String value)
Create a header instance from String representation, which may contain
multiple values if the header supports them.
|
protected AuthorizationHeader |
AuthorizationHeader.Factory.parse(String value) |
<C> Optional<C> |
AuthorizationHeader.parseCredentials(CredentialsParser<C> parser)
Parse the credentials to a rich type.
|
AuthorizationHeader |
AuthorizationHeader.setRawValue(String rawValue)
Set the raw value of the header.
|
static WwwAuthenticateHeader |
WwwAuthenticateHeader.valueOf(List<String> values)
Obtain a
WwwAuthenticateHeader representation of the given header values. |
static SetCookie2Header |
SetCookie2Header.valueOf(List<String> values)
Constructs a new header, initialized from the specified list of
Set-Cookie2 values. |
static ReferrerHeader |
ReferrerHeader.valueOf(Message<?> message)
Constructs a new header, initialized from the specified message.
|
static AuthorizationHeader |
AuthorizationHeader.valueOf(Message<?> message)
Constructs a new header, initialized from the specified message.
|
static TransactionIdHeader |
TransactionIdHeader.valueOf(Request request)
Constructs a new header, initialized from the specified request.
|
static WwwAuthenticateHeader |
WwwAuthenticateHeader.valueOf(Response response)
Obtain a
WwwAuthenticateHeader representation of the headers in the given response. |
static SetCookie2Header |
SetCookie2Header.valueOf(Response response)
Constructs a new header, initialized from the specified response message.
|
static TransactionIdHeader |
TransactionIdHeader.valueOf(String value)
Constructs a new header, initialized from the specified string value.
|
static SetCookie2Header |
SetCookie2Header.valueOf(String value)
Constructs a new header, initialized from the specified string value.
|
static ReferrerHeader |
ReferrerHeader.valueOf(String value)
Parse the provided value as a
Referrer header. |
static AuthorizationHeader |
AuthorizationHeader.valueOf(String value)
Parse a string as an
Authorization header value. |
Constructor and Description |
---|
TransactionIdHeader(String value)
Constructs a new header with the provided value for the transaction id.
|
Modifier and Type | Method and Description |
---|---|
C |
CredentialsParser.parse(String credentials)
Parse the provided credentials into a rich representation.
|
Constructor and Description |
---|
BearerToken(String token)
Construct a new set of
Bearer authorization credentials. |
Modifier and Type | Method and Description |
---|---|
<H extends Header> |
Headers.get(Class<H> headerType)
Returns the specified
Header or {code null} if the header is not included in the message. |
Modifier and Type | Method and Description |
---|---|
static com.fasterxml.jackson.databind.ObjectWriter |
Json.makeLocalizingObjectWriter(com.fasterxml.jackson.databind.ObjectMapper mapper,
Request request)
Make an object writer that contains the locales from the request for serialization of
LocalizableString
instances. |
Copyright © 2010-2018, ForgeRock All Rights Reserved.