Interface Resource

    • Method Detail

      • getName

        String getName()
        Returns the name of this resource
      • getParent

        Resource getParent()
        Returns the parent resource of this resource. This is null if the resource represents the root.
      • findAncestor

        <T extends Resource> T findAncestor​(Class<T> resourceClass)
        Finds the resource of the specified type within the ancestors of this resource
      • optionalFindAncestor

        <T extends ResourceOptional<T> optionalFindAncestor​(Class<T> resourceClass)
        Finds the resource of the specified type within the ancestors of this resource
      • isLeaf

        boolean isLeaf()
        Returns whether this resource is a leaf resource (i.e. it has no children, or the children are not navigable)
      • getRootResource

        static Resource getRootResource​(Connection connection)
        Returns a root resource configured against the supplied configuration