Class MethodSelectingRouter.ConsumesProducesAcceptor
java.lang.Object
org.glassfish.jersey.server.internal.routing.MethodSelectingRouter.ConsumesProducesAcceptor
- Enclosing class:
MethodSelectingRouter
Represents a 1-1-1 relation between input and output media type and an methodAcceptorPair.
E.g. for a single resource method
@Consumes("*/*") @Produces("text/plain","text/html") @GET public String myGetMethod() { return "S"; }the following two relations would be generated:
consumes | produces | method |
---|---|---|
*/* | text/plain | myGetMethod |
*/* | text/html | myGetMethod |
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final CombinedMediaType.EffectiveMediaType
(package private) final MethodRouting
(package private) final CombinedMediaType.EffectiveMediaType
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ConsumesProducesAcceptor
(CombinedMediaType.EffectiveMediaType consumes, CombinedMediaType.EffectiveMediaType produces, MethodRouting methodRouting) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
(package private) boolean
isConsumable
(ContainerRequest requestContext) Determines whether thisConsumesProducesAcceptor
router can process therequest
.toString()
-
Field Details
-
consumes
-
produces
-
methodRouting
-
-
Constructor Details
-
ConsumesProducesAcceptor
private ConsumesProducesAcceptor(CombinedMediaType.EffectiveMediaType consumes, CombinedMediaType.EffectiveMediaType produces, MethodRouting methodRouting)
-
-
Method Details
-
isConsumable
Determines whether thisConsumesProducesAcceptor
router can process therequest
.- Parameters:
requestContext
- The request to be tested.- Returns:
- True if the
request
can be processed by this router, false otherwise.
-
toString
-
equals
-
hashCode
public int hashCode()
-