| Modifier and Type | Field and Description |
|---|---|
static String |
CONTENT_TYPE_PROPERTY |
| Constructor and Description |
|---|
HttpMethodRule(Map<String,List<ResourceMethod>> methods,
boolean isSubResource,
DispatchingListener dispatchingListener) |
HttpMethodRule(Map<String,List<ResourceMethod>> methods,
DispatchingListener dispatchingListener) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(CharSequence path,
Object resource,
UriRuleContext context)
Accept the rule.
|
static List<javax.ws.rs.core.MediaType> |
getSpecificAcceptableMediaTypes(List<javax.ws.rs.core.MediaType> acceptableMediaType,
List<? extends javax.ws.rs.core.MediaType> priorityMediaTypes)
Get a list of media types that are acceptable for the response.
|
public static final String CONTENT_TYPE_PROPERTY
public HttpMethodRule(Map<String,List<ResourceMethod>> methods, DispatchingListener dispatchingListener)
public HttpMethodRule(Map<String,List<ResourceMethod>> methods, boolean isSubResource, DispatchingListener dispatchingListener)
public boolean accept(CharSequence path, Object resource, UriRuleContext context)
UriRulepublic static List<javax.ws.rs.core.MediaType> getSpecificAcceptableMediaTypes(List<javax.ws.rs.core.MediaType> acceptableMediaType, List<? extends javax.ws.rs.core.MediaType> priorityMediaTypes)
acceptableMediaType - the list of acceptable media types.priorityMediaTypes - the list of media types that take priority.priorityMediaTypes that
is compatible with an acceptable media type, otherwise the
list of all acceptable media type is returned.Copyright © 2016 Oracle Corporation. All rights reserved.