public class ResourceMethod extends Object implements ResourceModelComponent, Producing, Consuming, Suspendable, NameBound
| Modifier and Type | Class and Description |
|---|---|
static class |
ResourceMethod.Builder
Resource method model builder.
|
static class |
ResourceMethod.JaxrsType
Resource method classification based on the recognized JAX-RS
resource method types.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ResourceModelVisitor visitor)
A component should call the visitor back with an appropriate
visitor interface method to give it a chance to process.
|
List<? extends ResourceModelComponent> |
getComponents()
Should return all existing resource model sub-components.
|
List<MediaType> |
getConsumedTypes()
Get the consumed media types supported by the component.
|
String |
getHttpMethod()
Get the associated HTTP method.
|
Invocable |
getInvocable()
Get the invocable method model.
|
Collection<Class<? extends Annotation>> |
getNameBindings() |
List<MediaType> |
getProducedTypes()
Get the produced media types supported by the component.
|
long |
getSuspendTimeout()
Get the suspend timeout value in the given
time unit. |
TimeUnit |
getSuspendTimeoutUnit()
Get the suspend
timeout value time unit. |
ResourceMethod.JaxrsType |
getType()
Get the JAX-RS method type.
|
boolean |
isManagedAsyncDeclared()
Check if the component is marked to be executed asynchronously by using
an internal Jersey
executor service. |
boolean |
isNameBound() |
boolean |
isSuspendDeclared()
Check if the component is marked for suspending.
|
String |
toString() |
public ResourceMethod.JaxrsType getType()
public String getHttpMethod()
null in case the method represents a sub-resource
locator.null in case this method
represents a sub-resource locator.public Invocable getInvocable()
public List<MediaType> getConsumedTypes()
ConsuminggetConsumedTypes in interface Consumingpublic List<MediaType> getProducedTypes()
ProducinggetProducedTypes in interface Producingpublic long getSuspendTimeout()
Suspendabletime unit.getSuspendTimeout in interface Suspendablepublic TimeUnit getSuspendTimeoutUnit()
Suspendabletimeout value time unit.getSuspendTimeoutUnit in interface Suspendablepublic boolean isSuspendDeclared()
SuspendableisSuspendDeclared in interface Suspendabletrue if the component is marked for suspending,
false otherwise.public boolean isManagedAsyncDeclared()
Suspendableexecutor service.isManagedAsyncDeclared in interface Suspendabletrue if the component is marked for managed asynchronous execution,
false otherwise.public List<? extends ResourceModelComponent> getComponents()
ResourceModelComponentgetComponents in interface ResourceModelComponentpublic void accept(ResourceModelVisitor visitor)
ResourceModelComponentaccept in interface ResourceModelComponentvisitor - resource model visitor.public boolean isNameBound()
isNameBound in interface NameBoundpublic Collection<Class<? extends Annotation>> getNameBindings()
getNameBindings in interface NameBoundCopyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.