Class Copy
- java.lang.Object
-
- org.wso2.carbon.registry.rest.api.RegistryRestSuper
-
- org.wso2.carbon.registry.rest.api.Copy
-
@Path("/copy") public class Copy extends RegistryRestSuperThis class to handle resource copy functions according to the REST verbs.
-
-
Constructor Summary
Constructors Constructor Description Copy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.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
-
-
-
-
Method Detail
-
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.
-
-