Package org.glassfish.jersey
Class JerseyPriorities
- java.lang.Object
-
- org.glassfish.jersey.JerseyPriorities
-
public class JerseyPriorities extends Object
Built-in Jersey-specific priority constants to be used along withPrioritieswhere finer-grained categorization is required.- Author:
- Adam Lindenthal
-
-
Field Summary
Fields Modifier and Type Field Description static intPOST_ENTITY_CODERPriority for components that have to be called AFTER message encoders/decoders filters/interceptors.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intgetPriorityValue(Class<?> prioritized, int defaultValue)Return the value of priority annotation on a given class, if exists.
-
-
-
Field Detail
-
POST_ENTITY_CODER
public static final int POST_ENTITY_CODER
Priority 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:
- Constant Field Values
-
-
Method Detail
-
getPriorityValue
public static int getPriorityValue(Class<?> prioritized, int defaultValue)
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.
-
-