@Path(value="/artifact") 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, setUserRegistry@Path(value="/{path:.*}")
public 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.@Path(value="/{path:.*}")
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 stream@Path(value="/{path:.*}")
public javax.ws.rs.core.Response deleteResource(List<javax.ws.rs.core.PathSegment> path,
@HeaderParam(value="X-JWT-Assertion")
String JWTToken)
path - - path segment of the resource pathCopyright © 2019 WSO2. All rights reserved.