public class DefaultResponseFormatResolver extends Object implements ResponseFormatResolver
Modifier and Type | Field and Description |
---|---|
static String |
ACCEPT_HEADER_CSV |
static String |
ACCEPT_HEADER_JSON |
static String |
ACCEPT_HEADER_JSONAPI |
static String |
URI_CSV |
static String |
URI_JSON |
static String |
URI_JSONAPI |
Constructor and Description |
---|
DefaultResponseFormatResolver()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
apply(String format,
javax.ws.rs.container.ContainerRequestContext containerRequestContext)
Resolve desirable format from URI and ContainerRequestContext.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
andThen
public static final String ACCEPT_HEADER_JSON
public static final String ACCEPT_HEADER_JSONAPI
public static final String ACCEPT_HEADER_CSV
public static final String URI_JSON
public static final String URI_JSONAPI
public static final String URI_CSV
public DefaultResponseFormatResolver()
public String apply(String format, javax.ws.rs.container.ContainerRequestContext containerRequestContext)
ResponseFormatResolver
apply
in interface ResponseFormatResolver
apply
in interface BiFunction<String,javax.ws.rs.container.ContainerRequestContext,String>
format
- The format String from URIcontainerRequestContext
- ContainerRequestContext object that contains request related informationCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.