| Constructor and Description |
|---|
ExperimentalRawFilesResource() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteRawFile(ExperimentalRawFile res)
Delete a specific raw file.
|
byte[] |
gerRawFileSegment(ExperimentalRawFile res,
long start,
long length)
Get a segment of the raw file.
|
ExperimentalRawFileInfo |
getRawFileInfo(ExperimentalRawFile res)
Get raw file info DTO.
|
ExperimentalRawFilesInfo |
getRawFilesInfo()
List experimental raw files.
|
SizeInfoDto |
getRawFileSizeinfo(ExperimentalRawFile res,
SizeInfoMethod method)
Experimental endpoint to estimate allocated size.
|
Response |
getRawFileWithContentDisposition(ExperimentalRawFile res)
Get the raw file content with
content-disposition. |
Response |
getRawFileWithNoContentDisposition(ExperimentalRawFile res)
Get the raw file content with no
content-disposition. |
ExperimentalRawFileInfo |
postNewRawFile(InputStream uploadedInputStream,
org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail,
String description,
String nameprefix,
String contenttype)
Experimental file upload.
|
ExperimentalRawFileInfo |
putRawFile(String res,
InputStream uploadedInputStream,
org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail,
String description,
String contenttype)
Experimental file upload.
|
@GET @Produces(value="application/json") public ExperimentalRawFilesInfo getRawFilesInfo()
WuiForbiddenException - When rawfile listing is disabled (See ServerFeature.RAWFILES_LIST).@POST @Produces(value="application/json") @Consumes(value="multipart/form-data") public ExperimentalRawFileInfo postNewRawFile(InputStream uploadedInputStream, org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail, String description, String nameprefix, String contenttype) throws IOException
uploadedInputStream - InputStream to read content datafileDetail - Details containing original uploaded file namedescription - Description of the uploaded resourcenameprefix - Resource name suggestion / prefixcontenttype - Optional content type to be used. When no content type is specified application/octet-stream will
be used.IOException - propagatedWuiForbiddenException - When rawfile modifications are disabled (See ServerFeature.RAWFILES_MODIFY).@PUT @Path(value="{res}") @Produces(value="application/json") @Consumes(value="multipart/form-data") public ExperimentalRawFileInfo putRawFile(@PathParam(value="res") String res, InputStream uploadedInputStream, org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail, String description, String contenttype) throws IOException
res - Resource name to add/updateuploadedInputStream - InputStream to read content datafileDetail - Details containing original uploaded file namedescription - Optional description of the uploaded resourcecontenttype - Optional content type to be used. When no content type is specified application/octet-stream will
be used.IOException - propagatedWuiForbiddenException - When rawfile modifications are disabled (See ServerFeature.RAWFILES_MODIFY).@DELETE @Path(value="{res}") public void deleteRawFile(@PathParam(value="res") ExperimentalRawFile res)
res - Resource name to deleteWuiForbiddenException - When rawfile modifications are disabled (See ServerFeature.RAWFILES_MODIFY).@GET @Path(value="{res}") @Produces(value="application/json") public ExperimentalRawFileInfo getRawFileInfo(@PathParam(value="res") ExperimentalRawFile res)
res - Raw file@GET @Path(value="{res}/segment") @Produces(value="application/octet-stream") public byte[] gerRawFileSegment(@PathParam(value="res") ExperimentalRawFile res, @QueryParam(value="start") long start, @QueryParam(value="length") long length)
res - Raw filestart - Index (0-based) of the first byte to return.length - Maximal number of bytes to return@GET @Path(value="{res}/raw") public Response getRawFileWithContentDisposition(@PathParam(value="res") ExperimentalRawFile res)
content-disposition.
The response media type will be filled according to the stored media type.
Additionally the response will be filled with content-disposition header with value
attachment; filename = [NAME] where [NAME] is the resource name. Accessing this endpoint from
a browser typically opens a download dialog with the specified file name.
res - Raw file@GET @Path(value="{res}/raw-nocd") public Response getRawFileWithNoContentDisposition(@PathParam(value="res") ExperimentalRawFile res)
content-disposition.
The response media type will be filled according to the stored media type. The response is the same as the
response of #getRawFileWithNoContentDisposition2(com.chemaxon.overlap.wui.res.ExperimentalRawFile). The
path associated to this method (rawfiles/{res}/raw-nocd) represents REST semantics, where the response
is a view/representation (raw-nocd) of the resource (rawfiles/{res}/raw-nocd).res - Raw file@Beta @GET @Produces(value="application/json") @Path(value="{res}/get-sizeinfo") public SizeInfoDto getRawFileSizeinfo(@PathParam(value="res") ExperimentalRawFile res, @QueryParam(value="method") SizeInfoMethod method)
res - Contentmethod - Size info method to use.