| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONTENT_TYPE_PROPERTY |
| Constructor and Description |
|---|
HttpMethodRule(java.util.Map<java.lang.String,java.util.List<ResourceMethod>> methods,
boolean isSubResource,
DispatchingListener dispatchingListener) |
HttpMethodRule(java.util.Map<java.lang.String,java.util.List<ResourceMethod>> methods,
DispatchingListener dispatchingListener) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(java.lang.CharSequence path,
java.lang.Object resource,
UriRuleContext context)
Accept the rule.
|
static java.util.List<MediaType> |
getSpecificAcceptableMediaTypes(java.util.List<MediaType> acceptableMediaType,
java.util.List<? extends MediaType> priorityMediaTypes)
Get a list of media types that are acceptable for the response.
|
public static final java.lang.String CONTENT_TYPE_PROPERTY
public HttpMethodRule(java.util.Map<java.lang.String,java.util.List<ResourceMethod>> methods, DispatchingListener dispatchingListener)
public HttpMethodRule(java.util.Map<java.lang.String,java.util.List<ResourceMethod>> methods, boolean isSubResource, DispatchingListener dispatchingListener)
public boolean accept(java.lang.CharSequence path,
java.lang.Object resource,
UriRuleContext context)
UriRulepublic static java.util.List<MediaType> getSpecificAcceptableMediaTypes(java.util.List<MediaType> acceptableMediaType, java.util.List<? extends 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 © 2015 Oracle Corporation. All Rights Reserved.