Package | Description |
---|---|
org.forgerock.caf.authentication.api |
This package defines the core interfaces and classes to provide an asynchronous and improved
JASPI-like message authentication API.
|
org.forgerock.caf.authentication.framework |
This package defines the authentication framework classes for the authentication of messages
via authentication contexts and modules.
|
org.forgerock.http |
Models and manages elements of the Hypertext Transfer Protocol.
|
org.forgerock.http.filter |
Core
Filter implementations. |
org.forgerock.http.handler |
Core
Handler implementations. |
org.forgerock.http.header |
Processes HTTP message header fields.
|
org.forgerock.http.oauth2 |
This package provides APIs for OAuth 2.0 services implementations.
|
org.forgerock.http.protocol |
Models and manages elements of the Hypertext Transfer Protocol.
|
org.forgerock.http.routing |
Provides routing functionality for HTTP requests.
|
org.forgerock.http.session |
Provides interfaces for managing and interacting with HTTP Sessions.
|
org.forgerock.http.spi |
HTTP service provider API.
|
org.forgerock.oauth.clients.oauth2 |
OAuth 2.0 ForgeRock Client Implementation.
|
Modifier and Type | Method and Description |
---|---|
Response |
MessageInfoContext.getResponse()
Gets the response object from this
MessageContextInfo . |
Modifier and Type | Method and Description |
---|---|
void |
MessageInfoContext.setResponse(Response response)
Sets the response object for this
MessageContextInfo . |
Modifier and Type | Method and Description |
---|---|
Response |
MessageContextImpl.getResponse() |
Modifier and Type | Method and Description |
---|---|
Promise<Response,NeverThrowsException> |
AuthenticationFilter.filter(Context context,
Request request,
Handler next)
Authenticates incoming request messages and if successful calls the downstream filter or
handler and then secures the returned response.
|
Modifier and Type | Method and Description |
---|---|
void |
MessageContextImpl.setResponse(Response response) |
Modifier and Type | Method and Description |
---|---|
Promise<Response,NeverThrowsException> |
Filter.filter(Context context,
Request request,
Handler next)
Filters the request and/or response of an exchange.
|
Promise<Response,NeverThrowsException> |
Handler.handle(Context context,
Request request)
|
Promise<Response,NeverThrowsException> |
Client.send(Context context,
Request request)
Sends an HTTP request and returns a
Promise representing the
pending HTTP response. |
Promise<Response,NeverThrowsException> |
Client.send(Request request)
Sends an HTTP request and returns a
Promise representing the
pending HTTP response. |
Promise<Response,NeverThrowsException> |
Client.sendWithoutClose(Context context,
Request request)
Sends an HTTP request and returns a
Promise representing the
pending HTTP response. |
Promise<Response,NeverThrowsException> |
Client.sendWithoutClose(Request request)
Sends an HTTP request and returns a
Promise representing the
pending HTTP response. |
Modifier and Type | Method and Description |
---|---|
Promise<Response,NeverThrowsException> |
TransactionIdOutboundFilter.filter(Context context,
Request request,
Handler next) |
Promise<Response,NeverThrowsException> |
TransactionIdInboundFilter.filter(Context context,
Request request,
Handler next) |
Promise<Response,NeverThrowsException> |
OptionsFilter.filter(Context context,
Request request,
Handler next)
Handles all OPTION requests to CREST resources, all other request methods are handled by the
Handler . |
Promise<Response,NeverThrowsException> |
CsrfFilter.filter(Context context,
Request request,
Handler next) |
Modifier and Type | Method and Description |
---|---|
Promise<Response,NeverThrowsException> |
HttpClientHandler.handle(Context context,
Request request)
Sends an HTTP request to a remote server and returns a
Promise
representing the asynchronous response. |
Modifier and Type | Method and Description |
---|---|
static WwwAuthenticateHeader |
WwwAuthenticateHeader.valueOf(Response response)
Obtain a
WwwAuthenticateHeader representation of the headers in the given response. |
static SetCookieHeader |
SetCookieHeader.valueOf(Response response)
Constructs a new header, initialized from the specified response message.
|
static SetCookie2Header |
SetCookie2Header.valueOf(Response response)
Constructs a new header, initialized from the specified response message.
|
Modifier and Type | Method and Description |
---|---|
Promise<Response,NeverThrowsException> |
ResourceServerFilter.filter(Context context,
Request request,
Handler next) |
Modifier and Type | Method and Description |
---|---|
Response |
ResponseException.getResponse()
Returns the response associated to this exception.
|
static Response |
Responses.newForbidden()
Generates an empty Forbidden response (403).
|
static Response |
Responses.newInternalServerError()
Generates an empty Internal Server Error response (500).
|
static Response |
Responses.newInternalServerError(Exception exception)
Generates an Internal Server Error response (500)
containing the cause of the error response.
|
static Response |
Responses.newNotFound()
Generates an empty Not Found response (404).
|
Response |
Response.setCause(Exception cause)
Link a 'caused by' exception to this response.
|
Response |
Response.setEntity(Object o) |
Response |
Response.setStatus(Status status)
Sets the response status code.
|
Response |
Response.setStreamingContent(boolean streamingContent)
Set that the response's content has to be considered as a streaming and thus
some special treatments may apply on it.
|
Response |
Response.setVersion(String version) |
Modifier and Type | Method and Description |
---|---|
static <E extends Exception> |
Responses.internalServerError()
Utility method returning an async function that creates a
Response with status
Status.INTERNAL_SERVER_ERROR and the exception set as the cause. |
static Promise<Response,NeverThrowsException> |
Response.newResponsePromise(Response response)
Returns a
Promise representing the Response for an
asynchronous Request which has already completed. |
static PromiseImpl<Response,NeverThrowsException> |
Response.newResponsePromiseImpl()
|
static <E extends Exception> |
Responses.onExceptionInternalServerError()
Utility function that returns a
Response whose status is Status.INTERNAL_SERVER_ERROR and the
exception attached to the response as the cause. |
Modifier and Type | Method and Description |
---|---|
static Promise<Response,NeverThrowsException> |
Response.newResponsePromise(Response response)
Returns a
Promise representing the Response for an
asynchronous Request which has already completed. |
Constructor and Description |
---|
Response(Response response)
Creates a defensive copy of the given
response message. |
ResponseException(Response response)
Constructs a ResponseException using the given
response . |
ResponseException(Response response,
String message,
Throwable cause)
Constructs a ResponseException using the given
response , message and parent cause . |
Modifier and Type | Method and Description |
---|---|
Promise<Response,NeverThrowsException> |
ResourceApiVersionRoutingFilter.filter(Context context,
Request request,
Handler next) |
Promise<Response,NeverThrowsException> |
Router.handle(Context context,
Request request) |
Modifier and Type | Method and Description |
---|---|
void |
Session.save(Response response)
Save the session state to the response.
|
void |
SessionManager.save(Session session,
Response response)
Saves the session into the provided response.
|
Modifier and Type | Method and Description |
---|---|
Promise<Response,NeverThrowsException> |
HttpClient.sendAsync(Request request)
|
Modifier and Type | Method and Description |
---|---|
protected static Function<Response,JsonValue,OAuthException> |
OAuth2Client.mapToJsonValue()
A
Function that handles a Response from an Auth Server
that returns the HTTP entity content as JsonValue, and throws an OAuthException if
the response is not successful (200 family status code). |
Copyright © 2010-2018, ForgeRock All Rights Reserved.