public class SampleFilter extends Object implements org.forgerock.http.Filter
Modifier and Type | Class and Description |
---|---|
static class |
SampleFilter.Heaplet
Create and initialize the filter, based on the configuration.
|
Constructor and Description |
---|
SampleFilter() |
Modifier and Type | Method and Description |
---|---|
org.forgerock.util.promise.Promise<org.forgerock.http.protocol.Response,org.forgerock.util.promise.NeverThrowsException> |
filter(org.forgerock.services.context.Context context,
org.forgerock.http.protocol.Request request,
org.forgerock.http.Handler next)
Set a header in the incoming request and in the outgoing response.
|
public org.forgerock.util.promise.Promise<org.forgerock.http.protocol.Response,org.forgerock.util.promise.NeverThrowsException> filter(org.forgerock.services.context.Context context, org.forgerock.http.protocol.Request request, org.forgerock.http.Handler next)
{ "name": "SampleFilter", "type": "SampleFilter", "config": { "name": "X-Greeting", "value": "Hello world" } }
filter
in interface org.forgerock.http.Filter
context
- Execution context.request
- HTTP Request.next
- Next filter or handler in the chain.Promise
representing the response to be returned to the client.Copyright © 2025 Open Identity Platform Community. All rights reserved.