public class StaticResponseHandler extends Object implements org.forgerock.http.Handler
Modifier and Type | Class and Description |
---|---|
static class |
StaticResponseHandler.Heaplet
Creates and initializes a static response handler in a heap environment.
|
Constructor and Description |
---|
StaticResponseHandler(org.forgerock.http.protocol.Status status)
Constructor.
|
StaticResponseHandler(org.forgerock.http.protocol.Status status,
String version,
Expression<String> entity)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
StaticResponseHandler |
addHeader(String key,
Expression<String> expression)
Adds a pair key / expression to the header.
|
org.forgerock.util.promise.Promise<org.forgerock.http.protocol.Response,org.forgerock.util.promise.NeverThrowsException> |
handle(org.forgerock.services.context.Context context,
org.forgerock.http.protocol.Request request) |
public StaticResponseHandler(org.forgerock.http.protocol.Status status)
status
- The response status to set.public StaticResponseHandler(org.forgerock.http.protocol.Status status, String version, Expression<String> entity)
status
- The response status to set.version
- The protocol version.entity
- The message entity expression.public StaticResponseHandler addHeader(String key, Expression<String> expression)
key
- The header key.expression
- The expression to evaluate.public org.forgerock.util.promise.Promise<org.forgerock.http.protocol.Response,org.forgerock.util.promise.NeverThrowsException> handle(org.forgerock.services.context.Context context, org.forgerock.http.protocol.Request request)
handle
in interface org.forgerock.http.Handler
Copyright © 2025 Open Identity Platform Community. All rights reserved.