public class SampleFilter extends GenericFilter
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() |
public SampleFilter()
public void filter(Exchange exchange, Handler next) throws HandlerException, IOException
{ "name": "SampleFilter", "type": "SampleFilter", "config": { "name": "X-Greeting", "value": "Hello world" } }
exchange
- Wraps request and response.next
- Next filter or handler in the chain.HandlerException
- Failure when handling the exchange.IOException
- I/O exception when handling the exchange.Copyright © 2014 ForgeRock AS. All rights reserved.