private static class MethodSelectingRouter.ConsumesProducesAcceptor
extends java.lang.Object
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 |
Modifier and Type | Field and Description |
---|---|
(package private) CombinedMediaType.EffectiveMediaType |
consumes |
(package private) MethodRouting |
methodRouting |
(package private) CombinedMediaType.EffectiveMediaType |
produces |
Modifier | Constructor and Description |
---|---|
private |
ConsumesProducesAcceptor(CombinedMediaType.EffectiveMediaType consumes,
CombinedMediaType.EffectiveMediaType produces,
MethodRouting methodRouting) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
(package private) boolean |
isConsumable(ContainerRequest requestContext)
Determines whether this
ConsumesProducesAcceptor router can process the request . |
java.lang.String |
toString() |
final CombinedMediaType.EffectiveMediaType consumes
final CombinedMediaType.EffectiveMediaType produces
final MethodRouting methodRouting
private ConsumesProducesAcceptor(CombinedMediaType.EffectiveMediaType consumes, CombinedMediaType.EffectiveMediaType produces, MethodRouting methodRouting)
boolean isConsumable(ContainerRequest requestContext)
ConsumesProducesAcceptor
router can process the request
.requestContext
- The request to be tested.request
can be processed by this router, false otherwise.public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object