org.glassfish.jersey.server.model
Interface InvocableResourceMethod

All Superinterfaces:
ConsumesProducesEnabledComponent, Parameterized, SuspendableComponent
All Known Implementing Classes:
ResourceMethod, SubResourceMethod

public interface InvocableResourceMethod
extends Parameterized, ConsumesProducesEnabledComponent, SuspendableComponent

A common interface for resource methods, sub-resource methods and sub-resource locators directly bound to a concrete Java method.

These methods of the declaring resource class are invoked by a Java method dispatcher at runtime.

Author:
Jakub Podlesak (jakub.podlesak at oracle.com)
See Also:
ResourceMethod, SubResourceMethod, SubResourceLocator, ResourceMethodDispatcher

Method Summary
 ResourceClass getDeclaringResource()
          Getter for the enclosing resource class instance.
 Type getGenericReturnType()
          Getter for the method generic return type
 Method getMethod()
          Getter for the Java method
 Class<?> getReturnType()
          Getter for the method return type
 
Methods inherited from interface org.glassfish.jersey.server.model.Parameterized
getParameters, hasEntity
 
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
 

Method Detail

getDeclaringResource

ResourceClass getDeclaringResource()
Getter for the enclosing resource class instance.

Returns:
the enclosing resource class instance.

getMethod

Method getMethod()
Getter for the Java method

Returns:
corresponding Java method

getReturnType

Class<?> getReturnType()
Getter for the method return type

Returns:
corresponding Java method return type

getGenericReturnType

Type getGenericReturnType()
Getter for the method generic return type

Returns:
corresponding Java method generic return type


Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.