API jar - RapturePlatform/Rapture GitHub Wiki
The JAR api is used to manage the storage of Java Archive (JAR) files for use by a Rapture server.
HttpJarApi jarApi = new HttpJarApi(loginApi);
boolean retVal = jarApi.jarExists(jarUri);
retVal = baseAPI.doJar_JarExists(jarUri);
Entitlement: /data/list/$f(jarUri)
Indicates whether a given JAR exists.
Parameter | Type | Description |
---|---|---|
jarUri | String |
Type | Description |
---|---|
boolean |
HttpJarApi jarApi = new HttpJarApi(loginApi);
void retVal = jarApi.putJar(jarUri, jarContent);
retVal = baseAPI.doJar_PutJar(jarUri, jarContent);
Entitlement: /data/write/$f(jarUri)
Stores a JAR.
Parameter | Type | Description |
---|---|---|
jarUri | String | |
jarContent | byte[] |
Type | Description |
---|---|
void |
HttpJarApi jarApi = new HttpJarApi(loginApi);
BlobContainer retVal = jarApi.getJar(jarUri);
retVal = baseAPI.doJar_GetJar(jarUri);
Entitlement: /data/read/$f(jarUri)
Retrieves a JAR and its metadata. The JAR is represented as a byte array.
Parameter | Type | Description |
---|---|---|
jarUri | String |
Type | Description |
---|---|
BlobContainer |
Describes a blob repository.
Field | Type |
---|---|
headers | Map(String, String) |
content | ByteArray |
HttpJarApi jarApi = new HttpJarApi(loginApi);
void retVal = jarApi.deleteJar(jarUri);
retVal = baseAPI.doJar_DeleteJar(jarUri);
Entitlement: /data/write/$f(jarUri)
Removes a JAR from the backing store. There is no undo.
Parameter | Type | Description |
---|---|---|
jarUri | String |
Type | Description |
---|---|
void |
HttpJarApi jarApi = new HttpJarApi(loginApi);
Long retVal = jarApi.getJarSize(jarUri);
retVal = baseAPI.doJar_GetJarSize(jarUri);
Entitlement: /data/list/$f(jarUri)
Retrieves the number of bytes in a JAR.
Parameter | Type | Description |
---|---|---|
jarUri | String |
Type | Description |
---|---|
Long |
HttpJarApi jarApi = new HttpJarApi(loginApi);
Map<String,String> retVal = jarApi.getJarMetaData(jarUri);
retVal = baseAPI.doJar_GetJarMetaData(jarUri);
Entitlement: /data/list/$f(jarUri)
Retrieves all metadata associated with a JAR.
Parameter | Type | Description |
---|---|---|
jarUri | String |
Type | Description |
---|---|
Map<String,String> |
HttpJarApi jarApi = new HttpJarApi(loginApi);
Map<String,RaptureFolderInfo> retVal = jarApi.listJarsByUriPrefix(uriPrefix, depth);
retVal = baseAPI.doJar_ListJarsByUriPrefix(uriPrefix, depth);
Entitlement: /data/list/$f(uriPrefix)
Returns full pathnames for an entire subtree as a map of the path to RFI.
Parameter | Type | Description |
---|---|---|
uriPrefix | String | |
depth | int |
Type | Description |
---|---|
Map<String,RaptureFolderInfo> |
HttpJarApi jarApi = new HttpJarApi(loginApi);
boolean retVal = jarApi.jarIsEnabled(jarUri);
retVal = baseAPI.doJar_JarIsEnabled(jarUri);
Entitlement: /data/list/$f(jarUri)
Indicates whether a given JAR is enabled on this server.
Parameter | Type | Description |
---|---|---|
jarUri | String |
Type | Description |
---|---|
boolean |
HttpJarApi jarApi = new HttpJarApi(loginApi);
void retVal = jarApi.enableJar(jarUri);
retVal = baseAPI.doJar_EnableJar(jarUri);
Entitlement: /admin/jar
Enables a JAR to be used on this server.
Parameter | Type | Description |
---|---|---|
jarUri | String |
Type | Description |
---|---|
void |
HttpJarApi jarApi = new HttpJarApi(loginApi);
void retVal = jarApi.disableJar(jarUri);
retVal = baseAPI.doJar_DisableJar(jarUri);
Entitlement: /admin/jar
Disables a JAR from being used on this server.
Parameter | Type | Description |
---|---|---|
jarUri | String |
Type | Description |
---|---|
void |