Class PrintRecMessage

All Implemented Interfaces:
Runnable

public class PrintRecMessage extends OutputRequest
Output request executor for FiscalPrinter method PrintRecMessage.
  • Constructor Details

    • PrintRecMessage

      public PrintRecMessage(FiscalPrinterProperties props, String message)
      Constructor. Stores given parameters for later use.
      Parameters:
      props - Property set of device service.
      message - Text message to print.
  • Method Details

    • getMessageType

      public int getMessageType()
      FiscalPrinter property MessageType at time of validation, see UPOS specification.
      Returns:
      Value of property MessageType during validation.
    • getMessage

      public String getMessage()
      FiscalPrinter method PrintRecMessage parameter message, see UPOS specification.
      Returns:
      PrintRecMessage parameter message.
    • invoke

      public void invoke() throws jpos.JposException
      Description copied from class: OutputRequest
      This function should be called whenever a printing method has been invoked. Therefore, it is the perfect place to signal processing has finished to implicitly waiting synchronous methods.
      Overrides:
      invoke in class OutputRequest
      Throws:
      jpos.JposException - If the invoked method throws an exception.