org.glassfish.jersey.process.internal
Class ResponseFilterResponder
java.lang.Object
org.glassfish.jersey.process.internal.ResponseFilterResponder
- All Implemented Interfaces:
- com.google.common.base.Function<javax.ws.rs.core.Response,javax.ws.rs.core.Response>
public class ResponseFilterResponder
- extends Object
- implements com.google.common.base.Function<javax.ws.rs.core.Response,javax.ws.rs.core.Response>
- Author:
- Pavel Bucek (pavel.bucek at oracle.com), Santiago Pericas-Geertsen (santiago.pericasgeertsen at oracle.com)
|
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 |
javax.ws.rs.core.Response |
apply(javax.ws.rs.core.Response data)
|
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
ResponseFilterResponder
public ResponseFilterResponder()
apply
public javax.ws.rs.core.Response apply(javax.ws.rs.core.Response data)
- Specified by:
apply in interface com.google.common.base.Function<javax.ws.rs.core.Response,javax.ws.rs.core.Response>
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.