public class ArtifactResource extends AbstractResource
Entry)| Constructor and Description |
|---|
ArtifactResource()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.jboss.resteasy.plugins.providers.atom.Entry |
create(javax.servlet.http.HttpServletRequest request,
String model,
String type,
org.jboss.resteasy.plugins.providers.atom.Entry entry) |
org.jboss.resteasy.plugins.providers.atom.Entry |
create(javax.servlet.http.HttpServletRequest request,
String fileName,
String model,
String type,
InputStream is)
S-RAMP atom POST to upload an artifact to the repository.
|
org.jboss.resteasy.plugins.providers.atom.Entry |
createMultiPart(javax.servlet.http.HttpServletRequest request,
String model,
String type,
org.jboss.resteasy.plugins.providers.multipart.MultipartRelatedInput input)
Handles multi-part creates.
|
void |
delete(String model,
String type,
String uuid)
Called to delete an s-ramp artifact from the repository.
|
javax.ws.rs.core.Response |
getContent(String model,
String type,
String uuid)
Returns the content of an artifact in the s-ramp repository.
|
org.jboss.resteasy.plugins.providers.atom.Entry |
getMetaData(javax.servlet.http.HttpServletRequest request,
String model,
String type,
String uuid)
Called to get the meta data for an s-ramp artifact.
|
void |
updateContent(String fileName,
String model,
String type,
String uuid,
InputStream content)
S-RAMP atom PUT to upload a new version of the artifact into the repository.
|
void |
updateMetaData(String model,
String type,
String uuid,
org.jboss.resteasy.plugins.providers.atom.Entry atomEntry)
Called to update the meta data for an artifact.
|
ensureSupportsMark, logErrorpublic org.jboss.resteasy.plugins.providers.atom.Entry create(@Context
javax.servlet.http.HttpServletRequest request,
String model,
String type,
org.jboss.resteasy.plugins.providers.atom.Entry entry)
throws SrampAtomException
SrampAtomExceptionpublic org.jboss.resteasy.plugins.providers.atom.Entry create(@Context
javax.servlet.http.HttpServletRequest request,
@HeaderParam(value="Slug")
String fileName,
String model,
String type,
InputStream is)
throws SrampAtomException
fileName - model - type - is - SrampAtomExceptionpublic org.jboss.resteasy.plugins.providers.atom.Entry createMultiPart(@Context
javax.servlet.http.HttpServletRequest request,
String model,
String type,
org.jboss.resteasy.plugins.providers.multipart.MultipartRelatedInput input)
throws SrampAtomException
model - type - input - EntrySrampAtomExceptionpublic void updateMetaData(String model, String type, String uuid, org.jboss.resteasy.plugins.providers.atom.Entry atomEntry) throws SrampAtomException
model - type - uuid - atomEntry - SrampAtomExceptionpublic void updateContent(@HeaderParam(value="Slug")
String fileName,
String model,
String type,
String uuid,
InputStream content)
throws SrampAtomException
model - type - uuid - content - SrampAtomExceptionpublic org.jboss.resteasy.plugins.providers.atom.Entry getMetaData(@Context
javax.servlet.http.HttpServletRequest request,
String model,
String type,
String uuid)
throws SrampAtomException
Entry with the
full information about the artifact.model - type - uuid - SrampAtomExceptionpublic javax.ws.rs.core.Response getContent(String model, String type, String uuid) throws SrampAtomException
model - type - uuid - SrampAtomExceptionpublic void delete(String model, String type, String uuid) throws SrampAtomException
model - type - uuid - SrampAtomExceptionCopyright © 2011–2013 JBoss, a division of Red Hat. All rights reserved.