public class BrmsResource extends Object
| Constructor and Description |
|---|
BrmsResource()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getDroolsFile(String pkgName,
String version,
String fileName) |
javax.ws.rs.core.Response |
getDroolsPackage(String pkgName,
String version)
Returns the content of a Brms/Drools Package in the s-ramp repository.
|
Packages |
getRestAllPackages()
Returns an XML document with all BRMS packages in the system.
|
javax.ws.rs.core.Response |
getRestAsset(String accept,
String pkgName,
String assetName)
Returns the content of a Brms/Drools Package in the s-ramp repository.
|
javax.ws.rs.core.Response |
getRestPackage(String pkgName)
Returns the content of a Brms/Drools Package in the s-ramp repository.
|
javax.ws.rs.core.Response |
getRestSourceAsset(String pkgName,
String assetName) |
Assets |
getRestXMLAllAssetsInPackage(String pkgName)
Returns an XML document with all BRMS packages in the system.
|
org.jboss.resteasy.plugins.providers.atom.Entry |
getRestXMLAsset(String pkgName,
String assetName)
Returns an XML document with all BRMS packages in the system.
|
public Packages getRestAllPackages() throws SrampAtomException
SrampAtomExceptionpublic Assets getRestXMLAllAssetsInPackage(String pkgName) throws SrampAtomException
SrampAtomExceptionpublic org.jboss.resteasy.plugins.providers.atom.Entry getRestXMLAsset(String pkgName, String assetName) throws SrampAtomException
SrampAtomExceptionpublic javax.ws.rs.core.Response getDroolsPackage(String pkgName, String version) throws SrampAtomException
pkgName - - the name of the Brms PackageSrampAtomException - http://localhost:8880/s-ramp-atom/brms/org.drools.guvnor.Guvnor/package/srampPackage/S-RAMP-0.0.3.0public javax.ws.rs.core.Response getRestPackage(String pkgName) throws SrampAtomException
pkgName - - the name of the Brms PackageSrampAtomExceptionpublic javax.ws.rs.core.Response getDroolsFile(String pkgName, String version, String fileName) throws SrampAtomException
SrampAtomExceptionpublic javax.ws.rs.core.Response getRestAsset(@HeaderParam(value="Accept")
String accept,
String pkgName,
String assetName)
throws SrampAtomException
pkgName - - the name of the Brms PackageassetName - - the name of the Brms AssetSrampAtomException - http://localhost:8080/s-ramp-server/brms/rest/packages/SRAMPPackage/assets/overlord.demo.SimpleReleaseProcess-taskform
http://localhost:8080/s-ramp-server/brms/org.drools.guvnor.Guvnor/package/SRAMPPackage/LATEST/overlord.demo.SimpleReleaseProcess-image.pngpublic javax.ws.rs.core.Response getRestSourceAsset(String pkgName, String assetName) throws SrampAtomException
SrampAtomExceptionCopyright © 2011–2013 JBoss, a division of Red Hat. All rights reserved.