public class Artifact extends RegistryRestSuper
| Constructor and Description |
|---|
Artifact() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createResource(List<javax.ws.rs.core.PathSegment> path,
InputStream contentStream,
String contentType,
String JWTToken)
This method creates/update the resource sent as the payload to the registry.
|
javax.ws.rs.core.Response |
deleteResource(List<javax.ws.rs.core.PathSegment> path,
String JWTToken)
This method delete the requested resource.
|
javax.ws.rs.core.Response |
getResource(List<javax.ws.rs.core.PathSegment> path,
String JWTToken)
This method get the resource content of the requested resource.
|
getBegin, getEnd, getPageSize, getResourcePath, getTenantID, getUserRegistry, getUserRegistry, setBegin, setEnd, setPageSize, setUserRegistrypublic javax.ws.rs.core.Response getResource(List<javax.ws.rs.core.PathSegment> path, @HeaderParam(value="X-JWT-Assertion") String JWTToken)
path - - Path of the resource/collection in the registry.public javax.ws.rs.core.Response createResource(List<javax.ws.rs.core.PathSegment> path, InputStream contentStream, @HeaderParam(value="Content-Type") String contentType, @HeaderParam(value="X-JWT-Assertion") String JWTToken)
path - - List of path segment of the resource path after the (/resource) in the URIcontentStream - - Resource content sent as streamCopyright © 2015 WSO2. All rights reserved.