public class SampleFilter extends GenericHeapObject implements Filter
Modifier and Type | Class and Description |
---|---|
static class |
SampleFilter.Heaplet
Create and initialize the filter, based on the configuration.
|
logger, storage
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.
|
getLogger, getStorage, setLogger, setStorage
public SampleFilter()
public Promise<Response,NeverThrowsException> filter(Context context, Request request, Handler next)
{ "name": "SampleFilter", "type": "SampleFilter", "config": { "name": "X-Greeting", "value": "Hello world" } }
Copyright 2011-2015 ForgeRock AS.