Interface PrinterEndpointBuilderFactory.PrinterEndpointBuilder

  • All Superinterfaces:
    org.apache.camel.builder.EndpointProducerBuilder, org.apache.camel.EndpointProducerResolver
    Enclosing interface:
    PrinterEndpointBuilderFactory

    public static interface PrinterEndpointBuilderFactory.PrinterEndpointBuilder
    extends org.apache.camel.builder.EndpointProducerBuilder
    Builder for endpoint for the Printer component.
    • Method Detail

      • mediaSize

        default PrinterEndpointBuilderFactory.PrinterEndpointBuilder mediaSize​(String mediaSize)
        Sets the stationary as defined by enumeration names in the javax.print.attribute.standard.MediaSizeName API. The default setting is to use North American Letter sized stationary. The value's case is ignored, e.g. values of iso_a4 and ISO_A4 may be used. The option is a: <code>java.lang.String</code> type. Default: na-letter Group: producer
        Parameters:
        mediaSize - the value to set
        Returns:
        the dsl builder
      • mediaTray

        default PrinterEndpointBuilderFactory.PrinterEndpointBuilder mediaTray​(String mediaTray)
        Sets MediaTray supported by the javax.print.DocFlavor API, for example upper,middle etc. The option is a: <code>java.lang.String</code> type. Group: producer
        Parameters:
        mediaTray - the value to set
        Returns:
        the dsl builder
      • mimeType

        default PrinterEndpointBuilderFactory.PrinterEndpointBuilder mimeType​(String mimeType)
        Sets mimeTypes supported by the javax.print.DocFlavor API. The option is a: <code>java.lang.String</code> type. Group: producer
        Parameters:
        mimeType - the value to set
        Returns:
        the dsl builder
      • orientation

        default PrinterEndpointBuilderFactory.PrinterEndpointBuilder orientation​(String orientation)
        Sets the page orientation. The option is a: <code>java.lang.String</code> type. Default: portrait Group: producer
        Parameters:
        orientation - the value to set
        Returns:
        the dsl builder
      • printerPrefix

        default PrinterEndpointBuilderFactory.PrinterEndpointBuilder printerPrefix​(String printerPrefix)
        Sets the prefix name of the printer, it is useful when the printer name does not start with //hostname/printer. The option is a: <code>java.lang.String</code> type. Group: producer
        Parameters:
        printerPrefix - the value to set
        Returns:
        the dsl builder
      • sendToPrinter

        default PrinterEndpointBuilderFactory.PrinterEndpointBuilder sendToPrinter​(boolean sendToPrinter)
        etting this option to false prevents sending of the print data to the printer. The option is a: <code>boolean</code> type. Default: true Group: producer
        Parameters:
        sendToPrinter - the value to set
        Returns:
        the dsl builder
      • sendToPrinter

        default PrinterEndpointBuilderFactory.PrinterEndpointBuilder sendToPrinter​(String sendToPrinter)
        etting this option to false prevents sending of the print data to the printer. The option will be converted to a <code>boolean</code> type. Default: true Group: producer
        Parameters:
        sendToPrinter - the value to set
        Returns:
        the dsl builder
      • sides

        default PrinterEndpointBuilderFactory.PrinterEndpointBuilder sides​(String sides)
        Sets one sided or two sided printing based on the javax.print.attribute.standard.Sides API. The option is a: <code>java.lang.String</code> type. Default: one-sided Group: producer
        Parameters:
        sides - the value to set
        Returns:
        the dsl builder