class ContainerFilteringStage extends AbstractChainableStage<RequestProcessingContext>
Modifier and Type | Class and Description |
---|---|
private static class |
ContainerFilteringStage.ResponseFilterStage |
Stage.Builder<DATA>, Stage.Continuation<DATA>
Modifier and Type | Field and Description |
---|---|
private java.lang.Iterable<RankedProvider<javax.ws.rs.container.ContainerRequestFilter>> |
requestFilters |
private java.lang.Iterable<RankedProvider<javax.ws.rs.container.ContainerResponseFilter>> |
responseFilters |
Constructor and Description |
---|
ContainerFilteringStage(java.lang.Iterable<RankedProvider<javax.ws.rs.container.ContainerRequestFilter>> requestFilters,
java.lang.Iterable<RankedProvider<javax.ws.rs.container.ContainerResponseFilter>> responseFilters)
Create a new container filtering stage specifying global request and response filters.
|
Modifier and Type | Method and Description |
---|---|
Stage.Continuation<RequestProcessingContext> |
apply(RequestProcessingContext context)
Performs a data processing task and returns the processed data together with
a
processing continuation . |
getDefaultNext, setDefaultNext
private final java.lang.Iterable<RankedProvider<javax.ws.rs.container.ContainerRequestFilter>> requestFilters
private final java.lang.Iterable<RankedProvider<javax.ws.rs.container.ContainerResponseFilter>> responseFilters
ContainerFilteringStage(java.lang.Iterable<RankedProvider<javax.ws.rs.container.ContainerRequestFilter>> requestFilters, java.lang.Iterable<RankedProvider<javax.ws.rs.container.ContainerResponseFilter>> responseFilters)
All global response filters are passed in the pre-match stage, since if a pre-match filter aborts,
response filters should still be executed. For the post-match filter stage creation, null
is passed
to the responseFilters parameter.
requestFilters
- list of global (unbound) request filters (either pre or post match - depending on the
stage being created).responseFilters
- list of global response filters (for pre-match stage) or null
(for post-match
stage).public Stage.Continuation<RequestProcessingContext> apply(RequestProcessingContext context)
Stage
processing continuation
.context
- data to be transformed.