|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.ws.rs.Priorities
public final class Priorities
A collection of built-in priority constants for the JAX-RS components that are supposed to be
ordered based on their priority
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 @Priority
annotation is absent on a component,
for which a priority should be applied, the USER
priority value is used.
Field Summary | |
---|---|
static int |
AUTHENTICATION
Security authentication filter/interceptor priority. |
static int |
AUTHORIZATION
Security authorization filter/interceptor priority. |
static int |
ENTITY_CODER
Message encoder or decoder filter/interceptor priority. |
static int |
HEADER_DECORATOR
Header decorator filter/interceptor priority. |
static int |
USER
User-level filter/interceptor priority. |
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int AUTHENTICATION
public static final int AUTHORIZATION
public static final int HEADER_DECORATOR
public static final int ENTITY_CODER
public static final int USER
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |