Uses of Class
org.forgerock.http.protocol.Response
Package
Description
Contains consumable services and endpoints used for monitoring AMs health.
This package defines the core interfaces and classes to provide an asynchronous and improved
JASPI-like message authentication API.
This package defines the authentication framework classes for the authentication of messages
via authentication contexts and modules.
Models and manages elements of the Hypertext Transfer Protocol.
Core
Filter
implementations.Support for CORS.
Core
Handler
implementations.Processes HTTP message header fields.
This package provides APIs for OAuth 2.0 services implementations.
Models and manages elements of the Hypertext Transfer Protocol.
Provides routing functionality for HTTP requests.
Provides interfaces for managing and interacting with HTTP Sessions.
HTTP service provider API.
OAuth 2.0 ForgeRock Client Implementation.
-
Uses of Response in org.forgerock.am.health
-
Uses of Response in org.forgerock.caf.authentication.api
Modifier and TypeMethodDescriptionMessageInfoContext.getResponse()
Gets the response object from thisMessageContextInfo
.Modifier and TypeMethodDescriptionvoid
MessageInfoContext.setResponse
(Response response) Sets the response object for thisMessageContextInfo
. -
Uses of Response in org.forgerock.caf.authentication.framework
Modifier and TypeMethodDescriptionAuthenticates incoming request messages and if successful calls the downstream filter or handler and then secures the returned response. -
Uses of Response in org.forgerock.http
Modifier and TypeMethodDescriptionFilters the request and/or response of an exchange.Sends an HTTP request and returns aPromise
representing the pending HTTP response.Sends an HTTP request and returns aPromise
representing the pending HTTP response.Client.sendWithoutClose
(Request request) Sends an HTTP request and returns aPromise
representing the pending HTTP response.Client.sendWithoutClose
(Context context, Request request) Sends an HTTP request and returns aPromise
representing the pending HTTP response. -
Uses of Response in org.forgerock.http.filter
Modifier and TypeMethodDescriptionHandles all OPTION requests to CREST resources, all other request methods are handled by theHandler
. -
Uses of Response in org.forgerock.http.filter.cors
Modifier and TypeMethodDescriptionCorsPolicy.handlePreflight
(Request request, String origin) Produces the response for a CORS preflight request.Modifier and TypeMethodDescriptionModifier and TypeMethodDescriptionvoid
CorsPolicy.handleActual
(Response response, String origin) Handles the response of an actual CORS request. -
Uses of Response in org.forgerock.http.handler
-
Uses of Response in org.forgerock.http.header
Modifier and TypeMethodDescriptionstatic SetCookie2Header
Deprecated, for removal: This API element is subject to removal in a future version.Constructs a new header, initialized from the specified response message.static SetCookieHeader
Constructs a new header, initialized from the specified response message.static WwwAuthenticateHeader
Obtain aWwwAuthenticateHeader
representation of the headers in the given response. -
Uses of Response in org.forgerock.http.oauth2
Modifier and TypeMethodDescriptionDeprecated. -
Uses of Response in org.forgerock.http.protocol
Modifier and TypeMethodDescriptionResponse.addTrailers
(Header... trailers) Add one or more trailers, aka trailing headers, to the 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.putTrailers
(Header... trailers) Put one or more trailers, aka trailing headers, to the response.Link a 'caused by' exception to this response.Sets the response status code.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.setVersion
(String version) Modifier and TypeMethodDescriptionstatic <E extends Exception>
AsyncFunction<E,Response, NeverThrowsException> Responses.internalServerError()
Utility method returning an async function that creates aResponse
with statusStatus.INTERNAL_SERVER_ERROR
and the exception set as the cause.static Promise<Response,
NeverThrowsException> Response.newResponsePromise
(Response response) Returns aPromise
representing theResponse
for an asynchronousRequest
which has already completed.static PromiseImpl<Response,
NeverThrowsException> Response.newResponsePromiseImpl()
static <E extends Exception>
Function<E,Response, NeverThrowsException> Responses.onExceptionInternalServerError()
Utility function that returns aResponse
whose status isStatus.INTERNAL_SERVER_ERROR
and the exception attached to the response as the cause.Modifier and TypeMethodDescriptionstatic Promise<Response,
NeverThrowsException> Response.newResponsePromise
(Response response) Returns aPromise
representing theResponse
for an asynchronousRequest
which has already completed.ModifierConstructorDescriptionCreates a defensive copy of the givenresponse
message.ResponseException
(Response response) Constructs a ResponseException using the givenresponse
.ResponseException
(Response response, String message, Throwable cause) Constructs a ResponseException using the givenresponse
,message
and parentcause
. -
Uses of Response in org.forgerock.http.routing
-
Uses of Response in org.forgerock.http.session
-
Uses of Response in org.forgerock.http.spi
-
Uses of Response in org.forgerock.oauth.clients.oauth2
Modifier and TypeMethodDescriptionprotected static AsyncFunction<Response,
JsonValue, OAuthException> OAuth2Client.mapToJsonValue()
AnAsyncFunction
that handles aResponse
from an Auth Server that returns the HTTP entity content as JsonValue, and throws anOAuthException
if the response is not successful (200 family status code), or if the content is not a valid JSON.