Class ExportServerOperation
java.lang.Object
com.jadice.web.export.server.serveroperation.AbstractExportServerOperation<ExportParameters,ServerOperationMessage,Exporter>
com.levigo.jadice.web.demo.common.server.export.ExportServerOperation
- All Implemented Interfaces:
ServerOperation<ExportParameters,
ServerOperationMessage>
@Component
public class ExportServerOperation
extends AbstractExportServerOperation<ExportParameters,ServerOperationMessage,Exporter>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.levigo.jadice.web.server.ServerOperation
ServerOperation.Request<P>, ServerOperation.ResponseChannel<M>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Exporter
Create the appropriateExporter
instance.protected void
doExport
(ServerOperation.Request<ExportParameters> request, ServerOperation.ResponseChannel<ServerOperationMessage> responseChannel, Exporter exporter) Because of the changes in JWT-427, clone the document's annotations before printing.protected void
onExportFailed
(ServerOperation.Request<ExportParameters> request, ServerOperation.ResponseChannel<ServerOperationMessage> responseChannel, Exporter exporter) A method that can be overridden if an export-fail should be handledMethods inherited from class com.jadice.web.export.server.serveroperation.AbstractExportServerOperation
invoke
-
Constructor Details
-
ExportServerOperation
public ExportServerOperation() -
ExportServerOperation
-
-
Method Details
-
doExport
protected void doExport(ServerOperation.Request<ExportParameters> request, ServerOperation.ResponseChannel<ServerOperationMessage> responseChannel, Exporter exporter) throws Exception Because of the changes in JWT-427, clone the document's annotations before printing. Check the clones forTextAnnotations
and for the matches, replace the logical fontFaces with the Standard 14 ones to ensure both client and server rendering are based on the same font family.- Specified by:
doExport
in classAbstractExportServerOperation<ExportParameters,
ServerOperationMessage, Exporter> - Parameters:
request
- the associatedServerOperation.Request
. For Details seeServerOperation.Request
responseChannel
- the associatedServerOperation.ResponseChannel
. For details seeServerOperation.ResponseChannel
exporter
- theExporter
instance that shall be configured to perform the export.- Throws:
Exception
-
createExporter
Description copied from class:AbstractExportServerOperation
Create the appropriateExporter
instance. The instance shall not be shared and will be used exclusively by a single export task.- Specified by:
createExporter
in classAbstractExportServerOperation<ExportParameters,
ServerOperationMessage, Exporter> - Returns:
- an
Exporter
instance.
-
onExportFailed
protected void onExportFailed(ServerOperation.Request<ExportParameters> request, ServerOperation.ResponseChannel<ServerOperationMessage> responseChannel, Exporter exporter) Description copied from class:AbstractExportServerOperation
A method that can be overridden if an export-fail should be handled- Overrides:
onExportFailed
in classAbstractExportServerOperation<ExportParameters,
ServerOperationMessage, Exporter> - Parameters:
request
- the associatedServerOperation.Request
. For Details seeServerOperation.Request
responseChannel
- the associatedServerOperation.ResponseChannel
. For details seeServerOperation.ResponseChannel
exporter
- theExporter
instance that shall be configured to perform the export.
-