Interface FilterOrder
-
public interface FilterOrderThe filtering pipeline consists of a number of distinct phases. Filters can indicate when and where they should be applied in the pipeline using thePriorityannotation. Each phase of the filtering pipeline is bound to a differentPriority.ring(). These phases are enumerated below:STREAMINGfilters are applied first and are used to manipulate the content of the request or response, for example to apply compression to responsesURL_MAPPINGfilters are applied next, and are used to map the request to a particular backing store, for example to map a request to a particular schema in a particular database. This is a crucial phase as subsequent phases are dependent on this phase, for example theAUTHENTICATIONphase often depends on this phase in order to be able to determine what database to check credentials against.AUTHENTICATIONfilters examine any credentials in the request and maps them to aPrincipaland roles.RETARGETTINGfilters examine a request and re-write the request so that it is dispatched to a different request URL. This is similar tomod_rewritein Apache, requests are examined and potentially re-targeted to different dispatchers depending on values in the request URL and/or request headers.DISPATCHINGis the final phase, where a decision is made about which servlet will service the request
- Author:
- cdivilly
-
-
Field Summary
Fields Modifier and Type Field Description static intAUTHENTICATIONAUTHENTICATIONfilters examine any credentials in the request and maps them to aPrincipaland roles.static intDISPATCHINGDISPATCHINGis the final phase, where a decision is made about which servlet will service the requeststatic intRETARGETTINGRETARGETTINGfilters examine a request and re-write the request so that it is dispatched to a different request URL.static intSTREAMINGSTREAMINGfilters are applied first and are used to manipulate the content of the request or response, for example to apply compression to responses.static intURL_MAPPINGURL_MAPPINGfilters are applied next, and are used to map the request to a particular backing store, for example to map a request to a particular schema in a particular database.
-
-
-
Field Detail
-
STREAMING
static final int STREAMING
STREAMINGfilters are applied first and are used to manipulate the content of the request or response, for example to apply compression to responses.- See Also:
- Constant Field Values
-
URL_MAPPING
static final int URL_MAPPING
URL_MAPPINGfilters are applied next, and are used to map the request to a particular backing store, for example to map a request to a particular schema in a particular database. This is a crucial phase as subsequent phases are dependent on this phase, for example theAUTHENTICATIONphase often depends on this phase in order to be able to determine what database to check credentials against.- See Also:
- Constant Field Values
-
AUTHENTICATION
static final int AUTHENTICATION
AUTHENTICATIONfilters examine any credentials in the request and maps them to aPrincipaland roles.- See Also:
- Constant Field Values
-
RETARGETTING
static final int RETARGETTING
RETARGETTINGfilters examine a request and re-write the request so that it is dispatched to a different request URL. This is similar tomod_rewritein Apache, requests are examined and potentially re-targeted to different dispatchers depending on values in the request URL and/or request headers.- See Also:
- Constant Field Values
-
DISPATCHING
static final int DISPATCHING
DISPATCHINGis the final phase, where a decision is made about which servlet will service the request- See Also:
- Constant Field Values
-
-