Class Priorities
- java.lang.Object
- 
- jakarta.ws.rs.Priorities
 
- 
 public final class Priorities extends Object A collection of built-in priority constants for the JAX-RS components that are supposed to be ordered based on theirjakarta.annotation.Priorityclass-level annotation value when used or applied by JAX-RS runtime.For example, JAX-RS filters and interceptors are grouped in chains for each of the message processing extension points: Pre, PreMatch, Post as well as ReadFrom and WriteTo. Each of these chains is sorted based on priorities which are represented as integer numbers. All chains, except Post, are sorted in ascending order; the lower the number the higher the priority. The Post filter chain is sorted in descending order to ensure that response filters are executed in reverse order. JAX-RS components that belong to the same priority class (same integer value) are executed in an implementation-defined manner. By default, when the @Priorityannotation is absent on a component, for which a priority should be applied, theUSERpriority value is used.- Since:
- 2.0
- Author:
- Marek Potociar (marek.potociar at oracle.com)
 
- 
- 
Field SummaryFields Modifier and Type Field Description static intAUTHENTICATIONSecurity authentication filter/interceptor priority.static intAUTHORIZATIONSecurity authorization filter/interceptor priority.static intENTITY_CODERMessage encoder or decoder filter/interceptor priority.static intHEADER_DECORATORHeader decorator filter/interceptor priority.static intUSERUser-level filter/interceptor priority.
 
- 
- 
- 
Field Detail- 
AUTHENTICATIONpublic static final int AUTHENTICATION Security authentication filter/interceptor priority.- See Also:
- Constant Field Values
 
 - 
AUTHORIZATIONpublic static final int AUTHORIZATION Security authorization filter/interceptor priority.- See Also:
- Constant Field Values
 
 - 
HEADER_DECORATORpublic static final int HEADER_DECORATOR Header decorator filter/interceptor priority.- See Also:
- Constant Field Values
 
 - 
ENTITY_CODERpublic static final int ENTITY_CODER Message encoder or decoder filter/interceptor priority.- See Also:
- Constant Field Values
 
 - 
USERpublic static final int USER User-level filter/interceptor priority. This value is also used as a default priority for application-supplied providers.- See Also:
- Constant Field Values
 
 
- 
 
-