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
FieldsModifier and TypeFieldDescriptionstatic final intPriority for components that have to be called AFTER message encoders/decoders filters/interceptors. -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetPriorityValue(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_CODERin order to force the processing after the components withPriorities.ENTITY_CODERare 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.
-