Class QueryContent
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
de.gmxhome.conrad.jpos.jpos_base.JposInputRequest
de.gmxhome.conrad.jpos.jpos_base.electronicjournal.QueryContent
- All Implemented Interfaces:
Runnable
Input request executor for ElectronicJournal method QueryContent.
-
Nested Class Summary
Nested classes/interfaces inherited from class de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
JposOutputRequest.JposRequestThread
-
Field Summary
Fields inherited from class de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
Abort, AdditionalData, Device, EndSync, Exception, Finished, OutputID, Props, Waiting
-
Constructor Summary
ConstructorsConstructorDescriptionQueryContent(JposCommonProperties props, String fileName, String fromMarker, String toMarker)
Constructor. -
Method Summary
Modifier and TypeMethodDescriptionElectronicJournal method QueryContent parameter fileName, see UPOS specification.ElectronicJournal method QueryContent parameter fromMarker, see UPOS specification.ElectronicJournal method QueryContent parameter toMarker, see UPOS specification.void
invoke()
Invokes the command.Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.JposInputRequest
createErrorEvent, createOutputEvent, enqueue, finishAsyncProcessing, reactivate
Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
abortCommand, abortCommand, catchedInvocation, clearAll, clearInput, clearOutput, countCommands, createIdleEvent, dequeue, enqueueSynchronous, finished, reactivate, reset, run
-
Constructor Details
-
QueryContent
public QueryContent(JposCommonProperties props, String fileName, String fromMarker, String toMarker)Constructor. Stores given parameters for later use.- Parameters:
props
- Property set of device service.fileName
- Filename to be used to store queried contents.fromMarker
- Name of lower bound marker.toMarker
- Name of upper bound marker.
-
-
Method Details
-
getFileName
ElectronicJournal method QueryContent parameter fileName, see UPOS specification.- Returns:
- Filename to be used to store queried contents.
-
getFromMarker
ElectronicJournal method QueryContent parameter fromMarker, see UPOS specification.- Returns:
- Name of lower bound marker.
-
getToMarker
ElectronicJournal method QueryContent parameter toMarker, see UPOS specification.- Returns:
- Name of upper bound marker.
-
invoke
public void invoke() throws jpos.JposExceptionDescription copied from class:JposOutputRequest
Invokes the command. Must be implemented in derived class. Calls finished() to wake up potentially waiting threads.- Overrides:
invoke
in classJposOutputRequest
- Throws:
jpos.JposException
- JposException thrown by the command to be executed.
-