Package org.forgerock.openig.doc
Class SampleFilter
- java.lang.Object
-
- org.forgerock.openig.doc.SampleFilter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SampleFilter.Heaplet
Create and initialize the filter, based on the configuration.
-
Constructor Summary
Constructors Constructor Description SampleFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Promise<Response,NeverThrowsException>
filter(Context context, Request request, Handler next)
Set a header in the incoming request and in the outgoing response.
-
-
-
Method Detail
-
filter
public Promise<Response,NeverThrowsException> filter(Context context, Request request, Handler next)
Set a header in the incoming request and in the outgoing response. A configuration example looks something like the following.{ "name": "SampleFilter", "type": "SampleFilter", "config": { "name": "X-Greeting", "value": "Hello world" } }
-
-