Package | Description |
---|---|
org.forgerock.http.header |
Processes HTTP message header fields.
|
org.forgerock.http.protocol |
Models and manages elements of the Hypertext Transfer Protocol.
|
Modifier and Type | Class and Description |
---|---|
class |
HeaderFactory<H extends Header>
Creates instances of
Header classes from String representation. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractSetCookieHeader
An abstract SetCookieHeader class for
SetCookieHeader and SetCookie2Header . |
class |
AcceptApiVersionHeader
Processes the
Accept-API-Version message header. |
class |
AcceptLanguageHeader
A header class representing the Accept-Language HTTP header.
|
class |
AuthorizationHeader
A header class representing the
Authorization HTTP header. |
class |
ConnectionHeader
Processes the
Connection message header. |
class |
ContentApiVersionHeader
Processes the
Content-API-Version message header. |
class |
ContentEncodingHeader
Processes the
Content-Encoding message header. |
class |
ContentLengthHeader
Processes the
Content-Length message header. |
class |
ContentTypeHeader
Processes the
Content-Type message header. |
class |
CookieHeader
Processes the
Cookie request message header. |
class |
GenericHeader
An undecoded HTTP message header.
|
class |
LocationHeader
Processes the
Location message header. |
class |
ReferrerHeader
A
Header representation of the Referrer HTTP header. |
class |
SetCookie2Header
Processes the
Set-Cookie2 request message header, defined in
RFC 2965. |
class |
SetCookieHeader
Processes the
Set-Cookie request message header. |
class |
TransactionIdHeader
Processes the transactionId header used mainly for audit purpose.
|
class |
WarningHeader
Processes the
Warning message header. |
class |
WwwAuthenticateHeader
A
Header representation of the WWW-Authenticate HTTP header. |
Modifier and Type | Field and Description |
---|---|
static Map<Class<? extends Header>,String> |
HeaderFactory.HEADER_NAMES
A map of
Header types to the names of the headers they implement. |
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 |
---|---|
Header |
Headers.get(Object key)
Rich-type friendly get method.
|
Header |
Headers.put(Header header)
A put method to add a particular
Header instance. |
Header |
Headers.put(String key,
Object value)
A script compatible put method that will accept a
Header , String , Collection<String>
and String[] value. |
Header |
Headers.remove(Object key)
Rich-type friendly remove method.
|
Modifier and Type | Method and Description |
---|---|
Map<String,Header> |
Headers.asMapOfHeaders()
The
Headers class extends Map<String, Object> to support flexible parameters in scripting. |
Modifier and Type | Method and Description |
---|---|
void |
Headers.add(Header header)
An add method to add a particular
Header instance. |
T |
MessageImpl.addHeaders(Header... headers) |
M |
Message.addHeaders(Header... headers)
Add one or more headers to the request.
|
Header |
Headers.put(Header header)
A put method to add a particular
Header instance. |
T |
MessageImpl.putHeaders(Header... headers) |
M |
Message.putHeaders(Header... headers)
Put one or more headers to the request.
|
Modifier and Type | Method and Description |
---|---|
String |
Headers.getFirst(Class<? extends Header> key)
Gets the first value of the header, or null if the header does not exist.
|
Copyright © 2010-2018, ForgeRock All Rights Reserved.