Class MethodSelectingRouter.ConsumesProducesAcceptor
- java.lang.Object
-
- org.glassfish.jersey.server.internal.routing.MethodSelectingRouter.ConsumesProducesAcceptor
-
- Enclosing class:
- MethodSelectingRouter
private static class MethodSelectingRouter.ConsumesProducesAcceptor extends java.lang.Object
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
Fields Modifier and Type Field Description (package private) CombinedMediaType.EffectiveMediaType
consumes
(package private) MethodRouting
methodRouting
(package private) CombinedMediaType.EffectiveMediaType
produces
-
Constructor Summary
Constructors Modifier Constructor Description private
ConsumesProducesAcceptor(CombinedMediaType.EffectiveMediaType consumes, CombinedMediaType.EffectiveMediaType produces, MethodRouting methodRouting)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
hashCode()
(package private) boolean
isConsumable(ContainerRequest requestContext)
Determines whether thisConsumesProducesAcceptor
router can process therequest
.java.lang.String
toString()
-
-
-
Field Detail
-
consumes
final CombinedMediaType.EffectiveMediaType consumes
-
produces
final CombinedMediaType.EffectiveMediaType produces
-
methodRouting
final MethodRouting methodRouting
-
-
Constructor Detail
-
ConsumesProducesAcceptor
private ConsumesProducesAcceptor(CombinedMediaType.EffectiveMediaType consumes, CombinedMediaType.EffectiveMediaType produces, MethodRouting methodRouting)
-
-
Method Detail
-
isConsumable
boolean isConsumable(ContainerRequest requestContext)
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
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-