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 Comparable
public CombinedMediaType getConsumes()
public MethodRouting getMethodRouting()
public CombinedMediaType getProduces()
public boolean producesFromProviders()
getProduces()
was set by providers}. If not, resource method was annotated by
@Produces
true
if the produces media type was set by providers and not by @Produces
annotation.Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.