Modifier and Type | Method and Description |
---|---|
protected static ResourceException |
ElasticsearchAuditEventHandler.resourceException(String indexName,
String topic,
String resourceId,
Response response)
Gets an
Exception Promise containing an Elasticsearch HTTP response status and payload. |
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 |
---|---|
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 |
---|---|
Promise<Response,NeverThrowsException> |
ProtectedResource.handle(Context context,
Request request)
Sets a header, "RESOURCE_CALLED:true" on the response to signify that it has been called and write a JSON
string to the response containing the principal and context from the request attributes.
|
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. |
Modifier and Type | Method and Description |
---|---|
protected Response |
AbstractHttpClient.createResponse(org.apache.http.HttpResponse result)
Creates a new
Response populated from the given AHC result . |
Modifier and Type | Method and Description |
---|---|
Promise<Response,NeverThrowsException> |
AsyncHttpClient.sendAsync(Request request) |
Modifier and Type | Method and Description |
---|---|
Promise<Response,NeverThrowsException> |
DescribedOauth2Endpoint.handle(Context context,
Request request) |
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 . |
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 SetCookieHeader |
SetCookieHeader.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.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.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 |
ServletSession.save(Response response) |
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 |
---|---|
Promise<Response,NeverThrowsException> |
OpenApiRequestFilter.filter(Context context,
Request request,
Handler next) |
Copyright © 2025 Open Identity Platform Community. All rights reserved.