org.glassfish.jersey.process.internal
Class PreMatchRequestFilterAcceptor
java.lang.Object
org.glassfish.jersey.process.internal.PreMatchRequestFilterAcceptor
- All Implemented Interfaces:
- com.google.common.base.Function<javax.ws.rs.core.Request,Pair<javax.ws.rs.core.Request,com.google.common.base.Optional<LinearAcceptor>>>, LinearAcceptor, Stage<javax.ws.rs.core.Request,com.google.common.base.Optional<LinearAcceptor>>
public class PreMatchRequestFilterAcceptor
- extends Object
- implements LinearAcceptor
- Author:
- Pavel Bucek (pavel.bucek at oracle.com), Santiago Pericas-Geertsen (santiago.pericasgeertsen at oracle.com)
| Nested classes/interfaces inherited from interface org.glassfish.jersey.process.internal.Stage |
Stage.Root |
|
Field Summary |
protected static int |
FILTER_ORDER_ASCENDING
Ordering of filters based on their binding priority
values from lower to higher (ascending). |
protected static int |
FILTER_ORDER_DESCENDING
Ordering of filters based on their binding priority
values from higher to lower (descending). |
protected org.glassfish.hk2.Factory<org.glassfish.jersey.process.internal.FilterContext> |
filterContextFactory
|
|
Method Summary |
Pair<javax.ws.rs.core.Request,com.google.common.base.Optional<LinearAcceptor>> |
apply(javax.ws.rs.core.Request data)
Transforms supplied data and returns transformed data together with
a processing continuation in the form of a <data, continuation>
pair. |
protected List<T> |
getFilters(Class<T> filterContract)
Get the filter providers for the specific filter contract, sorted by their
binding priority. |
protected Map<String,Object> |
getProperties()
Get the immutable bag of request-scoped configuration properties. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.google.common.base.Function |
equals |
FILTER_ORDER_ASCENDING
protected static final int FILTER_ORDER_ASCENDING
- Ordering of filters based on their
binding priority
values from lower to higher (ascending).
- See Also:
- Constant Field Values
FILTER_ORDER_DESCENDING
protected static final int FILTER_ORDER_DESCENDING
- Ordering of filters based on their
binding priority
values from higher to lower (descending).
- See Also:
- Constant Field Values
filterContextFactory
protected org.glassfish.hk2.Factory<org.glassfish.jersey.process.internal.FilterContext> filterContextFactory
PreMatchRequestFilterAcceptor
public PreMatchRequestFilterAcceptor()
apply
public Pair<javax.ws.rs.core.Request,com.google.common.base.Optional<LinearAcceptor>> apply(javax.ws.rs.core.Request data)
- Description copied from interface:
LinearAcceptor
- Transforms supplied data and returns transformed data together with
a processing continuation in the form of a <data, continuation>
pair.
The returned continuation is (optionally) the next linear
acceptor that should be invoked. A present
continuation indicates the processing is expected to continue further, while
absence of a continuation indicates that the
unidirectional request transformation passed its final stage.
- Specified by:
apply in interface com.google.common.base.Function<javax.ws.rs.core.Request,Pair<javax.ws.rs.core.Request,com.google.common.base.Optional<LinearAcceptor>>>- Specified by:
apply in interface LinearAcceptor- Specified by:
apply in interface Stage<javax.ws.rs.core.Request,com.google.common.base.Optional<LinearAcceptor>>
- Parameters:
data - data to be transformed.
- Returns:
- a
pair of transformed data and processing continuation;
the transformed data is on the left and the processing continuation on
the right side of the pair.
getFilters
protected final List<T> getFilters(Class<T> filterContract)
- Get the filter providers for the specific filter contract, sorted by their
binding priority. The filter ordering is determined
- Parameters:
filterContract - filter contract.
- Returns:
- sorted list of filter contract providers.
getProperties
protected final Map<String,Object> getProperties()
- Get the immutable bag of request-scoped configuration properties.
- Returns:
- immutable property map.
Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.