|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.server.model.ResourceMethod
public class ResourceMethod
Model of a method available on a resource. Covers resource method, sub-resource method and sub-resource locator.
| Nested Class Summary | |
|---|---|
static class |
ResourceMethod.Builder
Resource method model builder. |
static class |
ResourceMethod.JaxrsType
Resource method classification based on the recognized JAX-RS resource method types. |
| Method Summary | |
|---|---|
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()
|
String |
getPath()
Get the path direct assigned to the component. |
PathPattern |
getPathPattern()
Get the path pattern that can be used for matching the remaining request URI against this component represented by this model. |
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
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 String getPath()
getPath in interface Routedpublic PathPattern getPathPattern()
Routed
getPathPattern in interface Routedpublic List<MediaType> getConsumedTypes()
Consuming
getConsumedTypes in interface Consumingpublic List<MediaType> getProducedTypes()
Producing
getProducedTypes in interface Producingpublic long getSuspendTimeout()
Suspendabletime unit.
getSuspendTimeout in interface Suspendablepublic TimeUnit getSuspendTimeoutUnit()
Suspendabletimeout value time unit.
getSuspendTimeoutUnit in interface Suspendablepublic boolean isSuspendDeclared()
Suspendable
isSuspendDeclared 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()
ResourceModelComponent
getComponents in interface ResourceModelComponentpublic void accept(ResourceModelVisitor visitor)
ResourceModelComponent
accept in interface ResourceModelComponentvisitor - resource model visitor.public boolean isNameBound()
isNameBound in interface NameBoundpublic Collection<Class<? extends Annotation>> getNameBindings()
getNameBindings in interface NameBoundpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||