|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.server.model.AbstractResourceMethod
org.glassfish.jersey.server.model.ResourceMethod
public class ResourceMethod
Abstraction for a resource method
| Constructor Summary | |
|---|---|
ResourceMethod(ResourceClass resource,
Method method,
Class returnType,
Type genericReturnType,
String httpMethod,
Annotation[] markers)
|
|
| 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. |
Type |
getGenericReturnType()
Getter for the method generic return type |
Method |
getMethod()
Getter for the Java method |
List<Parameter> |
getParameters()
Provides access to all parameters associated with given Parameterized instance. |
Class<?> |
getReturnType()
Getter for the method return type |
boolean |
hasEntity()
Provides information on presence of an entity parameter. |
String |
toString()
|
| Methods inherited from class org.glassfish.jersey.server.model.AbstractResourceMethod |
|---|
areInputTypesDeclared, areOutputTypesDeclared, declareSuspend, getComponents, getDeclaringResource, getHttpMethod, getSupportedInputTypes, getSupportedOutputTypes, getSuspendTimeout, getSuspendTimeoutUnit, isSuspendDeclared, setAreInputTypesDeclared, setAreOutputTypesDeclared |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.glassfish.jersey.server.model.InvocableResourceMethod |
|---|
getDeclaringResource |
| Methods inherited from interface org.glassfish.jersey.server.model.ConsumesProducesEnabledComponent |
|---|
areInputTypesDeclared, areOutputTypesDeclared, getSupportedInputTypes, getSupportedOutputTypes, setAreInputTypesDeclared, setAreOutputTypesDeclared |
| Methods inherited from interface org.glassfish.jersey.server.model.SuspendableComponent |
|---|
declareSuspend, getSuspendTimeout, getSuspendTimeoutUnit, isSuspendDeclared |
| Constructor Detail |
|---|
public ResourceMethod(ResourceClass resource,
Method method,
Class returnType,
Type genericReturnType,
String httpMethod,
Annotation[] markers)
| Method Detail |
|---|
public Method getMethod()
InvocableResourceMethod
getMethod in interface InvocableResourceMethodpublic Class<?> getReturnType()
InvocableResourceMethod
getReturnType in interface InvocableResourceMethodpublic Type getGenericReturnType()
InvocableResourceMethod
getGenericReturnType in interface InvocableResourceMethodpublic boolean hasEntity()
Parameterized
hasEntity in interface Parameterizedpublic List<Parameter> getParameters()
Parameterized
getParameters in interface Parameterizedpublic void accept(ResourceModelVisitor visitor)
ResourceModelComponent
accept in interface ResourceModelComponentvisitor - resource model visitor.public String toString()
toString in class AbstractResourceMethod
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||