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 |
---|---|
Promise<Response,NeverThrowsException> |
filter(Context context,
Request request,
Handler next)
Set a header in the incoming request and in the outgoing response.
|
public Promise<Response,NeverThrowsException> filter(Context context, Request request, Handler next)
{ "name": "SampleFilter", "type": "SampleFilter", "config": { "name": "X-Greeting", "value": "Hello world" } }
Copyright 2011-2017 ForgeRock AS.