|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RequestFilter
Interface implemented by filters invoked at the Pre
extension point. Filters implementing this interface MUST be
annotated with Provider
.
As part of the client API, these filters are executed before
the HTTP invocation. As part of the server API, these filters are
executed before the resource method is called but after it has been
matched. If processing is required before resource matching,
a PreMatchRequestFilter
should be used instead.
PreMatchRequestFilter
Method Summary | |
---|---|
void |
preFilter(FilterContext context)
Filter method called at the Pre extension point. |
Method Detail |
---|
void preFilter(FilterContext context) throws IOException
Filter method called at the Pre extension point. I.e., before the HTTP invocation in the client and before the resource method invocation (but after resource matching) in the server.
Filters in a chain are ordered according to their binding
priority (see BindingPriority
). If a request filter
produces a response by calling FilterContext.setResponse(javax.ws.rs.core.Response)
,
the execution of the request chain is stopped and the response is
returned without calling the corresponding resource method
(Server API) or HTTP invocation (Client API). For example, a
caching filter may produce a response in this way. Note that
responses produced in this manner are still processed by
the response filter chain.
context
- invocation context
IOException
- if an I/O exception occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |