Class NodeResource

    • Constructor Detail

      • NodeResource

        public NodeResource()
    • Method Detail

      • getRoot

        @GET
        @Produces("application/json")
        public NodeEntity getRoot()
        Description copied from class: AbstractNodeResource
        Get the root of the application and its children. As this service works only in non authenticated mode for the moment, children do not contain special nodes.
        Overrides:
        getRoot in class AbstractNodeResource
        Returns:
        the application root and its children
      • getNode

        @GET
        @Path("{path: [0-9]+(/[0-9]+)*}")
        @Produces("application/json")
        public NodeEntity getNode​(@PathParam("path")
                                  String path)
        Description copied from class: AbstractNodeResource
        Get any node of the application and its children.
        Overrides:
        getNode in class AbstractNodeResource
        Returns:
        NodeEntity representing asking node
      • getChildren

        @GET
        @Path("{path: [0-9]+(/[0-9]+)*/children}")
        @Produces("application/json")
        public NodeEntity[] getChildren​(@PathParam("path")
                                        String path)
        Get all children of any node of the application.
        Overrides:
        getChildren in class AbstractNodeResource
        Returns:
        an array of NodeEntity representing children