Class RequestSpecificConsumesProducesAcceptor<MethodRouting>
java.lang.Object
org.glassfish.jersey.internal.routing.RequestSpecificConsumesProducesAcceptor<MethodRouting>
- All Implemented Interfaces:
Comparable
public final class RequestSpecificConsumesProducesAcceptor<MethodRouting>
extends Object
implements Comparable
A
Comparable concrete request content-type, accept header, and a methodRouting triplet- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRequestSpecificConsumesProducesAcceptor(CombinedMediaType consumes, CombinedMediaType produces, boolean producesFromProviders, MethodRouting methodRouting) -
Method Summary
Modifier and TypeMethodDescriptionintGet request content typeGet specified method routingGet Accept header media typebooleanInformation whethergetProduces()was set by providers}.toString()
-
Constructor Details
-
RequestSpecificConsumesProducesAcceptor
public RequestSpecificConsumesProducesAcceptor(CombinedMediaType consumes, CombinedMediaType produces, boolean producesFromProviders, MethodRouting methodRouting)
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<MethodRouting>
-
getConsumes
Get request content type- Returns:
- request content type
-
getMethodRouting
Get specified method routing- Returns:
- method routing
-
getProduces
Get Accept header media type- Returns:
- request accept header
-
producesFromProviders
public boolean producesFromProviders()Information whethergetProduces()was set by providers}. If not, resource method was annotated by@Produces- Returns:
trueif the produces media type was set by providers and not by@Producesannotation.
-
toString
-