|
||||||||||
| 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. |
java.util.List<? extends ResourceModelComponent> |
getComponents()
Should return all existing resource model sub-components. |
java.util.List<MediaType> |
getConsumedTypes()
Get the consumed media types supported by the component. |
java.lang.String |
getHttpMethod()
Get the associated HTTP method. |
Invocable |
getInvocable()
Get the invocable method model. |
java.lang.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. |
java.util.List<MediaType> |
getProducedTypes()
Get the produced media types supported by the component. |
long |
getSuspendTimeout()
Get the suspend timeout value in the given time unit. |
java.util.concurrent.TimeUnit |
getSuspendTimeoutUnit()
Get the suspend timeout value time unit. |
ResourceMethod.JaxrsType |
getType()
Get the JAX-RS method type. |
boolean |
isSuspendDeclared()
Check if the component is marked for suspending. |
java.lang.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 java.lang.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 java.lang.String getPath()
getPath in interface Routedpublic PathPattern getPathPattern()
Routed
getPathPattern in interface Routedpublic java.util.List<MediaType> getConsumedTypes()
Consuming
getConsumedTypes in interface Consumingpublic java.util.List<MediaType> getProducedTypes()
Producing
getProducedTypes in interface Producingpublic long getSuspendTimeout()
Suspendabletime unit.
getSuspendTimeout in interface Suspendable@Suspend.timeOut()public java.util.concurrent.TimeUnit getSuspendTimeoutUnit()
Suspendabletimeout value time unit.
getSuspendTimeoutUnit in interface Suspendable@Suspend.timeUnit()public boolean isSuspendDeclared()
Suspendable
isSuspendDeclared in interface Suspendabletrue if the component is marked for suspending,
false otherwise.public java.util.List<? extends ResourceModelComponent> getComponents()
ResourceModelComponent
getComponents in interface ResourceModelComponentpublic void accept(ResourceModelVisitor visitor)
ResourceModelComponent
accept in interface ResourceModelComponentvisitor - resource model visitor.public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||