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

      • lazyStartProducer

        default PrinterEndpointBuilderFactory.PrinterEndpointBuilder lazyStartProducer​(boolean lazyStartProducer)
        Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. The option is a: <code>boolean</code> type. Default: false Group: producer
        Parameters:
        lazyStartProducer - the value to set
        Returns:
        the dsl builder
      • lazyStartProducer

        default PrinterEndpointBuilderFactory.PrinterEndpointBuilder lazyStartProducer​(String lazyStartProducer)
        Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. The option will be converted to a <code>boolean</code> type. Default: false Group: producer
        Parameters:
        lazyStartProducer - the value to set
        Returns:
        the dsl builder
      • 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