Interface ResourceRegistration

    • Method Detail

      • getPathElement

        PathElement getPathElement()
        Returns the path element under which this resource is registered with its parent resource, or null if this is the root resource.
        Returns:
        the path element, or null if this is the root resource.
      • root

        static ResourceRegistration root()
        Creates a new root resource registration
        Returns:
        a resource registration
      • of

        static ResourceRegistration of​(PathElement path)
        Creates a new resource registration for the specified path.
        Parameters:
        path - a path element
        Returns:
        a resource registration
      • of

        static ResourceRegistration of​(PathElement path,
                                       Stability stability)
        Creates a new resource registration for the specified path and with the specified stability level.
        Parameters:
        path - a path element
        stability - a stability level
        Returns:
        a resource registration