public final class RequestSpecificConsumesProducesAcceptor<MethodRouting> extends Object implements Comparable
Comparable concrete request content-type, accept header, and a methodRouting tripletCombinedMediaType| Constructor and Description |
|---|
RequestSpecificConsumesProducesAcceptor(CombinedMediaType consumes,
CombinedMediaType produces,
boolean producesFromProviders,
MethodRouting methodRouting) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o) |
CombinedMediaType |
getConsumes()
Get request content type
|
MethodRouting |
getMethodRouting()
Get specified method routing
|
CombinedMediaType |
getProduces()
Get Accept header media type
|
boolean |
producesFromProviders()
Information whether
getProduces() was set by providers}. |
String |
toString() |
public RequestSpecificConsumesProducesAcceptor(CombinedMediaType consumes, CombinedMediaType produces, boolean producesFromProviders, MethodRouting methodRouting)
public int compareTo(Object o)
compareTo in interface Comparablepublic CombinedMediaType getConsumes()
public MethodRouting getMethodRouting()
public CombinedMediaType getProduces()
public boolean producesFromProviders()
getProduces() was set by providers}. If not, resource method was annotated by
@Producestrue if the produces media type was set by providers and not by @Produces annotation.Copyright © 2007-2024,Oracleand/or its affiliates.All Rights Reserved. Use is subject to license terms.