Class AbstractMethodWrapper

  • Direct Known Subclasses:
    ResourceMethod, SubResourceLocator

    @Deprecated
    public abstract class AbstractMethodWrapper
    extends AbstractJaxRsWrapper
    Deprecated.
    Will be removed in next minor release.
    An abstract wrapper class for resource methods, sub resource methods and sub resource locators.
    • Field Detail

      • executeMethod

        final java.lang.reflect.Method executeMethod
        Deprecated.
        the Java method that should be called. This method could be different from the method containing the annotations, see section 3.6 "Annotation Inheritance" of JSR-311-spec.
        See Also:
        ResourceMethod.annotatedMethod
    • Method Detail

      • getName

        public java.lang.String getName()
        Deprecated.
        Returns the name of the method
        Returns:
        Returns the name of the method
      • getResourceClass

        public ResourceClass getResourceClass()
        Deprecated.
        Returns:
        Returns the resource class of this method.
      • internalInvoke

        java.lang.Object internalInvoke​(ResourceObject resourceObject)
                                 throws java.lang.IllegalArgumentException,
                                        java.lang.IllegalAccessException,
                                        java.lang.reflect.InvocationTargetException,
                                        ConvertRepresentationException,
                                        javax.ws.rs.WebApplicationException
        Deprecated.
        Invokes the method and returned the created representation for the response.
        Parameters:
        resourceObject -
        Returns:
        the unwrapped returned object by the wrapped method.
        Throws:
        java.lang.reflect.InvocationTargetException
        java.lang.IllegalAccessException
        java.lang.IllegalArgumentException
        java.lang.reflect.InvocationTargetException
        javax.ws.rs.WebApplicationException
        ConvertRepresentationException
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object