Class Property


  • @Path("/property")
    public class Property
    extends RegistryRestSuper
    This is to handle the REST verbs GET,POST,DELETE related to property.
    • Constructor Detail

      • Property

        public Property()
    • Method Detail

      • getProperty

        public javax.ws.rs.core.Response getProperty​(String resourcePath,
                                                     String propertyName,
                                                     @HeaderParam("X-JWT-Assertion")
                                                     String JWTToken)
        Method retrieves the specified property for the given resource
        Parameters:
        resourcePath - - Resource path in the registry space
        propertyName - - Name of the property to be fetched
        Returns:
        - JSON property model element. HTTP 200 OK.
      • addProperty

        public javax.ws.rs.core.Response addProperty​(String resourcePath,
                                                     String name,
                                                     String value,
                                                     @HeaderParam("X-JWT-Assertion")
                                                     String JWTToken)
        This method add array of JSON property model for the specified resource
        Parameters:
        resourcePath - - resource path
        name - - property name
        value - - property value
        Returns:
        Response - HTTP 204 No Content.
      • deleteProperty

        public javax.ws.rs.core.Response deleteProperty​(String resourcePath,
                                                        String name,
                                                        @HeaderParam("X-JWT-Assertion")
                                                        String JWTToken)
        This method delete the specified property of the resource
        Parameters:
        resourcePath - - path of the resource
        name - - property name to be deleted
        Returns:
        Response - array of property model. HTTP 204 No Content.