@Path(value="/file") @Produces(value="application/octet-stream") @Consumes(value="application/octet-stream") public interface IFileResource extends FileResource
DocumentFileUploadForm,
FileResourceACCEPTED_TYPES_RESOURCE, DOWNLOAD_TEMPLATE, FILE_DOWNLOAD_TEMPLATE, FILE_RESOURCE, FILETYPE_RAW_SOURCE_DOCUMENT, FILETYPE_TRANSLATED_APPROVED, FILETYPE_TRANSLATED_APPROVED_AND_FUZZY, SERVICE_PATH, SOURCE_DOWNLOAD_TEMPLATE, SOURCE_UPLOAD_TEMPLATE, TRANSLATION_UPLOAD_TEMPLATE| Modifier and Type | Method and Description |
|---|---|
org.jboss.resteasy.client.ClientResponse<String> |
acceptedFileTypes() |
org.jboss.resteasy.client.ClientResponse |
downloadSourceFile(String projectSlug,
String iterationSlug,
String fileType,
String docId)
Downloads a single source file.
|
org.jboss.resteasy.client.ClientResponse |
downloadTranslationFile(String projectSlug,
String iterationSlug,
String locale,
String fileExtension,
String docId)
Downloads a single translation file.
|
org.jboss.resteasy.client.ClientResponse<ChunkUploadResponse> |
uploadSourceFile(String projectSlug,
String iterationSlug,
String docId,
DocumentFileUploadForm uploadForm) |
org.jboss.resteasy.client.ClientResponse<ChunkUploadResponse> |
uploadTranslationFile(String projectSlug,
String iterationSlug,
String localeId,
String docId,
String merge,
DocumentFileUploadForm uploadForm) |
download@GET @Path(value="/accepted_types") @Produces(value="text/plain") org.jboss.resteasy.client.ClientResponse<String> acceptedFileTypes()
acceptedFileTypes in interface FileResource@POST
@Path(value="/source/{projectSlug}/{iterationSlug}")
@Consumes(value="multipart/form-data")
@Produces(value="application/xml")
org.jboss.resteasy.client.ClientResponse<ChunkUploadResponse> uploadSourceFile(@PathParam(value="projectSlug")
String projectSlug,
@PathParam(value="iterationSlug")
String iterationSlug,
@QueryParam(value="docId")
String docId,
DocumentFileUploadForm uploadForm)
uploadSourceFile in interface FileResource@POST
@Path(value="/translation/{projectSlug}/{iterationSlug}/{locale}")
@Consumes(value="multipart/form-data")
@Produces(value="application/xml")
org.jboss.resteasy.client.ClientResponse<ChunkUploadResponse> uploadTranslationFile(@PathParam(value="projectSlug")
String projectSlug,
@PathParam(value="iterationSlug")
String iterationSlug,
@PathParam(value="locale")
String localeId,
@QueryParam(value="docId")
String docId,
@QueryParam(value="merge")
String merge,
DocumentFileUploadForm uploadForm)
uploadTranslationFile in interface FileResource@GET
@Path(value="/source/{projectSlug}/{iterationSlug}/{fileType}")
org.jboss.resteasy.client.ClientResponse downloadSourceFile(@PathParam(value="projectSlug")
String projectSlug,
@PathParam(value="iterationSlug")
String iterationSlug,
@PathParam(value="fileType")
String fileType,
@QueryParam(value="docId")
String docId)
FileResourcedownloadSourceFile in interface FileResourcefileType - use 'raw' for original source if available, or 'pot' to
generate pot from source strings@GET
@Path(value="/translation/{projectSlug}/{iterationSlug}/{locale}/{fileType}")
org.jboss.resteasy.client.ClientResponse downloadTranslationFile(@PathParam(value="projectSlug")
String projectSlug,
@PathParam(value="iterationSlug")
String iterationSlug,
@PathParam(value="locale")
String locale,
@PathParam(value="fileType")
String fileExtension,
@QueryParam(value="docId")
String docId)
FileResourcedownloadTranslationFile in interface FileResourceprojectSlug - Project identifier.iterationSlug - Project iteration identifier.locale - Translations for this locale will be contained in the
downloaded document.docId - Document identifier to fetch translations for.Copyright © 2014 Zanata Project. All rights reserved.