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 Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default PrinterEndpointBuilderFactory.AdvancedPrinterEndpointBuilder
advanced()
default PrinterEndpointBuilderFactory.PrinterEndpointBuilder
copies(int copies)
Number of copies to print.default PrinterEndpointBuilderFactory.PrinterEndpointBuilder
copies(String copies)
Number of copies to print.default PrinterEndpointBuilderFactory.PrinterEndpointBuilder
docFlavor(Object docFlavor)
Sets DocFlavor to use.default PrinterEndpointBuilderFactory.PrinterEndpointBuilder
docFlavor(String docFlavor)
Sets DocFlavor to use.default PrinterEndpointBuilderFactory.PrinterEndpointBuilder
flavor(String flavor)
Sets DocFlavor to use.default PrinterEndpointBuilderFactory.PrinterEndpointBuilder
lazyStartProducer(boolean lazyStartProducer)
Whether the producer should be started lazy (on the first message).default PrinterEndpointBuilderFactory.PrinterEndpointBuilder
lazyStartProducer(String lazyStartProducer)
Whether the producer should be started lazy (on the first message).default PrinterEndpointBuilderFactory.PrinterEndpointBuilder
mediaSize(String mediaSize)
Sets the stationary as defined by enumeration names in the javax.print.attribute.standard.MediaSizeName API.default PrinterEndpointBuilderFactory.PrinterEndpointBuilder
mediaTray(String mediaTray)
Sets MediaTray supported by the javax.print.DocFlavor API, for example upper,middle etc.default PrinterEndpointBuilderFactory.PrinterEndpointBuilder
mimeType(String mimeType)
Sets mimeTypes supported by the javax.print.DocFlavor API.default PrinterEndpointBuilderFactory.PrinterEndpointBuilder
orientation(String orientation)
Sets the page orientation.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.default PrinterEndpointBuilderFactory.PrinterEndpointBuilder
sendToPrinter(boolean sendToPrinter)
etting this option to false prevents sending of the print data to the printer.default PrinterEndpointBuilderFactory.PrinterEndpointBuilder
sendToPrinter(String sendToPrinter)
etting this option to false prevents sending of the print data to the printer.default PrinterEndpointBuilderFactory.PrinterEndpointBuilder
sides(String sides)
Sets one sided or two sided printing based on the javax.print.attribute.standard.Sides API.
-
-
-
Method Detail
-
advanced
default PrinterEndpointBuilderFactory.AdvancedPrinterEndpointBuilder advanced()
-
copies
default PrinterEndpointBuilderFactory.PrinterEndpointBuilder copies(int copies)
Number of copies to print. The option is a:int
type. Default: 1 Group: producer
-
copies
default PrinterEndpointBuilderFactory.PrinterEndpointBuilder copies(String copies)
Number of copies to print. The option will be converted to aint
type. Default: 1 Group: producer
-
docFlavor
default PrinterEndpointBuilderFactory.PrinterEndpointBuilder docFlavor(Object docFlavor)
Sets DocFlavor to use. The option is a:javax.print.DocFlavor
type. Group: producer
-
docFlavor
default PrinterEndpointBuilderFactory.PrinterEndpointBuilder docFlavor(String docFlavor)
Sets DocFlavor to use. The option will be converted to ajavax.print.DocFlavor
type. Group: producer
-
flavor
default PrinterEndpointBuilderFactory.PrinterEndpointBuilder flavor(String flavor)
Sets DocFlavor to use. The option is a:java.lang.String
type. Group: producer
-
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:boolean
type. Default: false Group: producer
-
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 aboolean
type. Default: false Group: producer
-
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:java.lang.String
type. Default: na-letter Group: producer
-
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:java.lang.String
type. Group: producer
-
mimeType
default PrinterEndpointBuilderFactory.PrinterEndpointBuilder mimeType(String mimeType)
Sets mimeTypes supported by the javax.print.DocFlavor API. The option is a:java.lang.String
type. Group: producer
-
orientation
default PrinterEndpointBuilderFactory.PrinterEndpointBuilder orientation(String orientation)
Sets the page orientation. The option is a:java.lang.String
type. Default: portrait Group: producer
-
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:java.lang.String
type. Group: producer
-
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:boolean
type. Default: true Group: producer
-
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 aboolean
type. Default: true Group: producer
-
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:java.lang.String
type. Default: one-sided Group: producer
-
-