|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.overlord.sramp.client.SrampAtomApiClient
public class SrampAtomApiClient
Class used to communicate with the S-RAMP server.
| Constructor Summary | |
|---|---|
SrampAtomApiClient(String endpoint)
Constructor. |
|
| Method Summary | |
|---|---|
InputStream |
getArtifactContent(ArtifactType artifactType,
String artifactUuid)
Please see javadoc in getArtifactContent(String, String, String). |
InputStream |
getArtifactContent(String artifactModel,
String artifactType,
String artifactUuid)
Gets the content for an artifact as an input stream. |
org.jboss.resteasy.plugins.providers.atom.Entry |
getFullArtifactEntry(ArtifactType artifactType,
String artifactUuid)
Please see javadoc in getFullArtifactEntry(String, String, String). |
org.jboss.resteasy.plugins.providers.atom.Entry |
getFullArtifactEntry(String artifactModel,
String artifactType,
String artifactUuid)
Gets an Atom Entry for the given S-RAMP artifact by UUID. |
org.jboss.resteasy.plugins.providers.atom.Feed |
query(String srampQuery,
int page,
int pageSize,
String orderBy,
boolean ascending)
Executes the given s-ramp query xpath and returns a Feed of the matching artifacts. |
org.jboss.resteasy.plugins.providers.atom.Entry |
uploadArtifact(ArtifactType artifactType,
InputStream content,
String artifactFileName)
Please refer to javadoc in uploadArtifact(String, String, InputStream, String) |
org.jboss.resteasy.plugins.providers.atom.Entry |
uploadArtifact(String artifactModel,
String artifactType,
InputStream content,
String artifactFileName)
Uploads an artifact to the s-ramp repository. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SrampAtomApiClient(String endpoint)
endpoint - | Method Detail |
|---|
public org.jboss.resteasy.plugins.providers.atom.Entry getFullArtifactEntry(String artifactModel,
String artifactType,
String artifactUuid)
throws SrampClientException,
SrampServerException
Entry for the given S-RAMP artifact by UUID.
artifactModel - the artifact model (core, xsd, wsdl, etc)artifactType - the artifact type (XmlDocument, XsdDocument, etc)artifactUuid - the S-RAMP uuid of the artifact
Entry
SrampClientException
SrampServerException
public org.jboss.resteasy.plugins.providers.atom.Entry getFullArtifactEntry(ArtifactType artifactType,
String artifactUuid)
throws SrampClientException,
SrampServerException
getFullArtifactEntry(String, String, String).
artifactType - artifactUuid -
SrampClientException
SrampServerException
public InputStream getArtifactContent(String artifactModel,
String artifactType,
String artifactUuid)
throws SrampClientException,
SrampServerException
InputStream when done.
artifactModel - the artifact model (core, xsd, wsdl, etc)artifactType - the artifact type (XmlDocument, XsdDocument, etc)artifactUuid - the S-RAMP uuid of the artifact
InputStream to the S-RAMP artifact content
SrampClientException
SrampServerException
public InputStream getArtifactContent(ArtifactType artifactType,
String artifactUuid)
throws SrampClientException,
SrampServerException
getArtifactContent(String, String, String).
artifactType - artifactUuid -
SrampClientException
SrampServerException
public org.jboss.resteasy.plugins.providers.atom.Entry uploadArtifact(String artifactModel,
String artifactType,
InputStream content,
String artifactFileName)
throws SrampClientException,
SrampServerException
artifactModel - the new artifact's modelartifactType - the new artifact's typecontent - the byte content of the artifactartifactFileName - the file name of the artifact (optional, can be null)
SrampClientException
SrampServerException
public org.jboss.resteasy.plugins.providers.atom.Entry uploadArtifact(ArtifactType artifactType,
InputStream content,
String artifactFileName)
throws SrampClientException,
SrampServerException
uploadArtifact(String, String, InputStream, String)
artifactType - content - artifactFileName -
SrampClientException
SrampServerException
public org.jboss.resteasy.plugins.providers.atom.Feed query(String srampQuery,
int page,
int pageSize,
String orderBy,
boolean ascending)
throws SrampClientException,
SrampServerException
srampQuery - the s-ramp query (xpath formatted)page - which page of results to return (0 indexed)pageSize - the size of the page of results to returnorderBy - the s-ramp property to use for sorting (name, uuid, createdOn, etc)ascending - the direction of the sort
Feed
SrampClientException
SrampServerException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||