Class ResourceClass

  • Direct Known Subclasses:
    RootResourceClass

    @Deprecated
    public class ResourceClass
    extends AbstractJaxRsWrapper
    Deprecated.
    Will be removed in next minor release.
    Instances represents a root resource class. A Java class that uses JAX-RS annotations to implement a corresponding Web resource, see chapter 3 of JAX-RS specification
    • Method Detail

      • checkForPrimitiveParameters

        private void checkForPrimitiveParameters​(java.lang.reflect.Method execMethod,
                                                 java.util.logging.Logger logger)
        Deprecated.
        Warn, if one of the message parameters is primitive.
        Parameters:
        execMethod -
        logger -
      • equals

        public boolean equals​(java.lang.Object anotherObject)
        Deprecated.
        Overrides:
        equals in class java.lang.Object
      • getAllowedMethods

        public java.util.Set<Method> getAllowedMethods​(RemainingPath remainingPath)
        Deprecated.
        Returns the allowed methods on the remainingPart. This method is used for a OPTIONS request, if no special java method in the root resource class was found for the given remainingPart.
        Parameters:
        remainingPath -
        Returns:
        an unmodifiable Set of the allowed methods.
      • getAnnotatedJavaMethod

        private java.lang.reflect.Method getAnnotatedJavaMethod​(java.lang.reflect.Method javaMethod)
        Deprecated.
        Returns the method with the annotations, corresponding to the given method. If the given method contains any JAX-RS annotations, it is returned. If it is not annotated with JAX-RS annotations, this method looks recursive in the subclass and the implemented interfaces, until it found one. This would be returned.
        Parameters:
        javaMethod - The java method to look for annotations
        Returns:
        the founded method, or null, if no method with annotations was found. Returns also null, if null was given.
      • getJaxRsClass

        public final java.lang.Class<?> getJaxRsClass()
        Deprecated.
        Returns:
        Returns the wrapped root resource class.
      • getMethodFromClass

        private java.lang.reflect.Method getMethodFromClass​(java.lang.Class<?> clazz,
                                                            java.lang.reflect.Method subClassMethod)
        Deprecated.
        Looks for the method with the same signature as the given method in the given class.
        Parameters:
        clazz - The Class to look for the method.
        subClassMethod - the Method to look for it's signature in the given class.
        Returns:
        the method in the given class, with the same signature as given method, or null if such method is not available. Returns also null, if the given class is null.
      • getMethodsForPath

        public java.util.Collection<ResourceMethod> getMethodsForPath​(RemainingPath remainingPath)
        Deprecated.
        Return all resource methods for the given path, ignoring HTTP method, consumed or produced mimes and so on.
        Parameters:
        resourceObject - The resource object
        remainingPath - the path
        Returns:
        The ist of ResourceMethods
      • getName

        public java.lang.String getName()
        Deprecated.
        Returns:
        returns the name of the wrapped class
      • getResourceMethods

        public final java.lang.Iterable<ResourceMethod> getResourceMethods()
        Deprecated.
        Returns:
        Return the sub resource methods of the given class.
      • getResourceMethodsAndLocators

        public final java.util.Collection<ResourceMethodOrLocator> getResourceMethodsAndLocators()
        Deprecated.
        Returns:
        Returns the sub resource locatores and sub resource methods.
      • getSubResourceLocators

        public final java.lang.Iterable<SubResourceLocator> getSubResourceLocators()
        Deprecated.
        Returns:
        Returns the sub resource locators of the given class.
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class java.lang.Object
      • hasSubResourceMethodsOrLocators

        public final boolean hasSubResourceMethodsOrLocators()
        Deprecated.
        Returns:
        Returns true if the wrapped resource class has sub resource methods or sub resource locators.
      • isLeaveEncoded

        boolean isLeaveEncoded()
        Deprecated.
        Returns:
        the leaveEncoded
      • toString

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