Class Copy
java.lang.Object
org.wso2.carbon.registry.rest.api.RegistryRestSuper
org.wso2.carbon.registry.rest.api.Copy
This class to handle resource copy functions according to the REST verbs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponsecopyResource(String resourcePath, String destinationPath, String JWTToken) This method to copy resource to some target location according to REST verb POST.Methods inherited from class org.wso2.carbon.registry.rest.api.RegistryRestSuper
getBegin, getEnd, getPageSize, getResourcePath, getTenantID, getUserRegistry, getUserRegistry, setBegin, setEnd, setPageSize, setUserRegistry
-
Constructor Details
-
Copy
public Copy()
-
-
Method Details
-
copyResource
public javax.ws.rs.core.Response copyResource(String resourcePath, String destinationPath, @HeaderParam("X-JWT-Assertion") String JWTToken) This method to copy resource to some target location according to REST verb POST.- Parameters:
resourcePath- - Source path of the resource.destinationPath- - Destination path of the resource.JWTToken- - Access token.- Returns:
- - HTTP 204 No Content if success.
-