Package org.glassfish.jersey
Class JerseyPriorities
java.lang.Object
org.glassfish.jersey.JerseyPriorities
Built-in Jersey-specific priority constants to be used along with
Priorities
where finer-grained
categorization is required.- Author:
- Adam Lindenthal
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Priority for components that have to be called AFTER message encoders/decoders filters/interceptors. -
Method Summary
Modifier and TypeMethodDescriptionstatic int
getPriorityValue
(Class<?> prioritized, int defaultValue) Return the value of priority annotation on a given class, if exists.
-
Field Details
-
POST_ENTITY_CODER
public static final int POST_ENTITY_CODERPriority for components that have to be called AFTER message encoders/decoders filters/interceptors. The constant has to be higher thanPriorities.ENTITY_CODER
in order to force the processing after the components withPriorities.ENTITY_CODER
are processed.- See Also:
-
-
Method Details
-
getPriorityValue
Return the value of priority annotation on a given class, if exists. Return the default value if not present.- Parameters:
prioritized
- the provider class that potentially has a priority.defaultValue
- the default priority value if not {@link @Priority) present- Returns:
- the value of Priority annotation if present or the default otherwise.
-