|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.overlord.sramp.server.atom.services.AbstractResource
org.overlord.sramp.server.atom.services.ArtifactResource
public class ArtifactResource
The JAX-RS resource that handles artifact specific tasks, including:
Entry)
| Constructor Summary | |
|---|---|
ArtifactResource()
Constructor. |
|
| Method Summary | |
|---|---|
org.jboss.resteasy.plugins.providers.atom.Entry |
create(javax.servlet.http.HttpServletRequest request,
String contentType,
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 contentType,
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 contentType,
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. |
| Methods inherited from class org.overlord.sramp.server.atom.services.AbstractResource |
|---|
logError |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArtifactResource()
| Method Detail |
|---|
public org.jboss.resteasy.plugins.providers.atom.Entry create(@Context
javax.servlet.http.HttpServletRequest request,
@HeaderParam(value="Content-Type")
String contentType,
@HeaderParam(value="Slug")
String fileName,
String model,
String type,
InputStream is)
throws SrampAtomException
fileName - model - type - content -
SrampAtomException
public org.jboss.resteasy.plugins.providers.atom.Entry createMultiPart(@Context
javax.servlet.http.HttpServletRequest request,
@HeaderParam(value="Content-Type")
String contentType,
String model,
String type,
org.jboss.resteasy.plugins.providers.multipart.MultipartRelatedInput input)
throws SrampAtomException
contentType - model - type - input -
Entry
SrampAtomException
public void updateMetaData(String model,
String type,
String uuid,
org.jboss.resteasy.plugins.providers.atom.Entry atomEntry)
throws SrampAtomException
model - type - uuid - atomEntry -
SrampAtomException
public void updateContent(@HeaderParam(value="Content-Type")
String contentType,
@HeaderParam(value="Slug")
String fileName,
String model,
String type,
String uuid,
InputStream content)
throws SrampAtomException
model - type - uuid - content -
SrampAtomException
public 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 -
SrampAtomException
public javax.ws.rs.core.Response getContent(String model,
String type,
String uuid)
throws SrampAtomException
model - type - uuid -
SrampAtomException
public void delete(String model,
String type,
String uuid)
throws SrampAtomException
model - type - uuid -
SrampAtomException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||