public class ContentNegotiator extends Object
| Constructor and Description |
|---|
ContentNegotiator() |
| Modifier and Type | Method and Description |
|---|---|
ContentType |
doContentNegotiation(ODataRequest odataRequest,
UriInfoImpl uriInfo,
List<String> supportedContentTypes)
Do the content negotiation for
accept header value based on
requested content type (in HTTP accept header from ODataRequest)
in combination with uri information from UriInfo and from given supported
content types (via
supportedContentTypes). |
public ContentType doContentNegotiation(ODataRequest odataRequest, UriInfoImpl uriInfo, List<String> supportedContentTypes) throws ODataException
accept header value based on
requested content type (in HTTP accept header from ODataRequest)
in combination with uri information from UriInfo and from given supported
content types (via
supportedContentTypes).request - specific requesturiInfo - specific uri informationsupportedContentTypes - list of supported content typesNULL if content type is not set and for given
UriInfo is
ignoredODataException - if no supported content type was foundIllegalArgumentException - if one of the input parameter is NULLCopyright © 2020. All rights reserved.