Class GetRestful


  • public class GetRestful
    extends java.lang.Object
    Version:
    $Revision: 1 $
    • Constructor Summary

      Constructors 
      Constructor Description
      GetRestful()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Class getRootResourceClass​(java.lang.Class clazz)
      Given a class, search itself and implemented interfaces for jax-rs annotations.
      static java.lang.Class getSubResourceClass​(java.lang.Class clazz)
      Given a class, search itself and implemented interfaces for jax-rs annotations.
      static java.lang.Class<?>[] getSubResourceClasses​(java.lang.Class<?> clazz)
      Given a class, search itself and implemented interfaces for jax-rs annotations.
      private static boolean hasJAXRSAnnotations​(java.lang.Class<?> c)  
      static boolean isRootResource​(java.lang.Class clazz)  
      static boolean isSubResourceClass​(java.lang.Class clazz)
      Given a class, search itself and implemented interfaces for jax-rs annotations.
      private static boolean isTopObject​(java.lang.Class<?> actualClass)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GetRestful

        public GetRestful()
    • Method Detail

      • getRootResourceClass

        public static java.lang.Class getRootResourceClass​(java.lang.Class clazz)
        Given a class, search itself and implemented interfaces for jax-rs annotations.
        Parameters:
        clazz -
        Returns:
        list of class and intertfaces that have jax-rs annotations
      • isSubResourceClass

        public static boolean isSubResourceClass​(java.lang.Class clazz)
        Given a class, search itself and implemented interfaces for jax-rs annotations.
        Parameters:
        clazz -
        Returns:
        list of class and interfaces that have jax-rs annotations
      • getSubResourceClass

        public static java.lang.Class getSubResourceClass​(java.lang.Class clazz)
        Given a class, search itself and implemented interfaces for jax-rs annotations.
        Parameters:
        clazz -
        Returns:
        list of class and interfaces that have jax-rs annotations
      • getSubResourceClasses

        public static java.lang.Class<?>[] getSubResourceClasses​(java.lang.Class<?> clazz)
        Given a class, search itself and implemented interfaces for jax-rs annotations.
        Parameters:
        clazz -
        Returns:
        list of class and interfaces that have jax-rs annotations
      • isTopObject

        private static boolean isTopObject​(java.lang.Class<?> actualClass)
      • hasJAXRSAnnotations

        private static boolean hasJAXRSAnnotations​(java.lang.Class<?> c)
      • isRootResource

        public static boolean isRootResource​(java.lang.Class clazz)