@Path(value="/archive")
@Produces(value={"text/html","application/xml","application/json","text/xml"})
public class ArchiveRestService
extends Object
The API provides methods to read and write snapshot data into the cassandra cluster.
| Constructor and Description |
|---|
ArchiveRestService() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getMetadata(String format)
Loads the metadata from the archive and returns a HTML representation.
|
javax.ws.rs.core.Response |
getSnapshot(String id,
String format)
Loads a snapshot from the archive and returns a HTML representation.
|
javax.ws.rs.core.Response |
getSnapshotFileByMD5Checksum(String md5,
String contentType)
Returns a file attachment based on its MD5 Checksum
The query parameter 'contentType' can be added to specify the returned
content type.
|
javax.ws.rs.core.Response |
getSnapshotFileByName(String id,
String file,
javax.ws.rs.core.UriInfo uriInfo)
Returns a file attachment located in the property $file of the specified
snapshot
The file name will be encoded.
|
@GET
@Path(value="/snapshot/{id : ([0-9a-f]{8}-.*|[0-9a-f]{11}-.*)}")
public javax.ws.rs.core.Response getSnapshot(@PathParam(value="id")
String id,
@QueryParam(value="format")
String format)
id - - snapshot id@GET
@Path(value="/metadata")
public javax.ws.rs.core.Response getMetadata(@QueryParam(value="format")
String format)
@GET
@Path(value="/md5/{md5}")
@Produces(value="application/octet-stream")
public javax.ws.rs.core.Response getSnapshotFileByMD5Checksum(@PathParam(value="md5") @Encoded
String md5,
@QueryParam(value="contentType")
String contentType)
The query parameter 'contentType' can be added to specify the returned content type.
md5 - - md5 checksum to identify the file content@GET
@Path(value="/snapshot/{id}/file/{file}")
public javax.ws.rs.core.Response getSnapshotFileByName(@PathParam(value="snapshotid")
String id,
@PathParam(value="file") @Encoded
String file,
@Context
javax.ws.rs.core.UriInfo uriInfo)
The file name will be encoded. With a URLDecode the filename is decoded in different formats and searched in the file list. This is not a nice solution.
uniqueid - Copyright © 2016–2023 Imixs Software Solutions GmbH. All rights reserved.