Interface Pop3sComponentBuilderFactory.Pop3sComponentBuilder

    • Method Detail

      • bridgeErrorHandler

        default Pop3sComponentBuilderFactory.Pop3sComponentBuilder bridgeErrorHandler​(boolean bridgeErrorHandler)
        Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. The option is a: boolean type. Default: false Group: consumer
      • closeFolder

        default Pop3sComponentBuilderFactory.Pop3sComponentBuilder closeFolder​(boolean closeFolder)
        Whether the consumer should close the folder after polling. Setting this option to false and having disconnect=false as well, then the consumer keep the folder open between polls. The option is a: boolean type. Default: true Group: consumer
      • copyTo

        default Pop3sComponentBuilderFactory.Pop3sComponentBuilder copyTo​(String copyTo)
        After processing a mail message, it can be copied to a mail folder with the given name. You can override this configuration value, with a header with the key copyTo, allowing you to copy messages to folder names configured at runtime. The option is a: java.lang.String type. Group: consumer
      • delete

        default Pop3sComponentBuilderFactory.Pop3sComponentBuilder delete​(boolean delete)
        Deletes the messages after they have been processed. This is done by setting the DELETED flag on the mail message. If false, the SEEN flag is set instead. As of Camel 2.10 you can override this configuration option by setting a header with the key delete to determine if the mail should be deleted or not. The option is a: boolean type. Default: false Group: consumer
      • disconnect

        default Pop3sComponentBuilderFactory.Pop3sComponentBuilder disconnect​(boolean disconnect)
        Whether the consumer should disconnect after polling. If enabled this forces Camel to connect on each poll. The option is a: boolean type. Default: false Group: consumer
      • handleFailedMessage

        default Pop3sComponentBuilderFactory.Pop3sComponentBuilder handleFailedMessage​(boolean handleFailedMessage)
        If the mail consumer cannot retrieve a given mail message, then this option allows to handle the caused exception by the consumer's error handler. By enable the bridge error handler on the consumer, then the Camel routing error handler can handle the exception instead. The default behavior would be the consumer throws an exception and no mails from the batch would be able to be routed by Camel. The option is a: boolean type. Default: false Group: consumer
      • mimeDecodeHeaders

        default Pop3sComponentBuilderFactory.Pop3sComponentBuilder mimeDecodeHeaders​(boolean mimeDecodeHeaders)
        This option enables transparent MIME decoding and unfolding for mail headers. The option is a: boolean type. Default: false Group: consumer
      • moveTo

        default Pop3sComponentBuilderFactory.Pop3sComponentBuilder moveTo​(String moveTo)
        After processing a mail message, it can be moved to a mail folder with the given name. You can override this configuration value, with a header with the key moveTo, allowing you to move messages to folder names configured at runtime. The option is a: java.lang.String type. Group: consumer
      • peek

        default Pop3sComponentBuilderFactory.Pop3sComponentBuilder peek​(boolean peek)
        Will mark the javax.mail.Message as peeked before processing the mail message. This applies to IMAPMessage messages types only. By using peek the mail will not be eager marked as SEEN on the mail server, which allows us to rollback the mail message if there is an error processing in Camel. The option is a: boolean type. Default: true Group: consumer
      • skipFailedMessage

        default Pop3sComponentBuilderFactory.Pop3sComponentBuilder skipFailedMessage​(boolean skipFailedMessage)
        If the mail consumer cannot retrieve a given mail message, then this option allows to skip the message and move on to retrieve the next mail message. The default behavior would be the consumer throws an exception and no mails from the batch would be able to be routed by Camel. The option is a: boolean type. Default: false Group: consumer
      • fetchSize

        default Pop3sComponentBuilderFactory.Pop3sComponentBuilder fetchSize​(int fetchSize)
        Sets the maximum number of messages to consume during a poll. This can be used to avoid overloading a mail server, if a mailbox folder contains a lot of messages. Default value of -1 means no fetch size and all messages will be consumed. Setting the value to 0 is a special corner case, where Camel will not consume any messages at all. The option is a: int type. Default: -1 Group: consumer (advanced)
      • mapMailMessage

        default Pop3sComponentBuilderFactory.Pop3sComponentBuilder mapMailMessage​(boolean mapMailMessage)
        Specifies whether Camel should map the received mail message to Camel body/headers/attachments. If set to true, the body of the mail message is mapped to the body of the Camel IN message, the mail headers are mapped to IN headers, and the attachments to Camel IN attachment message. If this option is set to false then the IN message contains a raw javax.mail.Message. You can retrieve this raw message by calling exchange.getIn().getBody(javax.mail.Message.class). The option is a: boolean type. Default: true Group: consumer (advanced)
      • lazyStartProducer

        default Pop3sComponentBuilderFactory.Pop3sComponentBuilder 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
      • javaMailSender

        default Pop3sComponentBuilderFactory.Pop3sComponentBuilder javaMailSender​(org.apache.camel.component.mail.JavaMailSender javaMailSender)
        To use a custom org.apache.camel.component.mail.JavaMailSender for sending emails. The option is a: org.apache.camel.component.mail.JavaMailSender type. Group: producer (advanced)
      • additionalJavaMailProperties

        default Pop3sComponentBuilderFactory.Pop3sComponentBuilder additionalJavaMailProperties​(Properties additionalJavaMailProperties)
        Sets additional java mail properties, that will append/override any default properties that is set based on all the other options. This is useful if you need to add some special options but want to keep the others as is. The option is a: java.util.Properties type. Group: advanced
      • alternativeBodyHeader

        default Pop3sComponentBuilderFactory.Pop3sComponentBuilder alternativeBodyHeader​(String alternativeBodyHeader)
        Specifies the key to an IN message header that contains an alternative email body. For example, if you send emails in text/html format and want to provide an alternative mail body for non-HTML email clients, set the alternative mail body with this key as a header. The option is a: java.lang.String type. Default: CamelMailAlternativeBody Group: advanced
      • attachmentsContentTransferEncodingResolver

        default Pop3sComponentBuilderFactory.Pop3sComponentBuilder attachmentsContentTransferEncodingResolver​(org.apache.camel.component.mail.AttachmentsContentTransferEncodingResolver attachmentsContentTransferEncodingResolver)
        To use a custom AttachmentsContentTransferEncodingResolver to resolve what content-type-encoding to use for attachments. The option is a: org.apache.camel.component.mail.AttachmentsContentTransferEncodingResolver type. Group: advanced
      • authenticator

        default Pop3sComponentBuilderFactory.Pop3sComponentBuilder authenticator​(org.apache.camel.component.mail.MailAuthenticator authenticator)
        The authenticator for login. If set then the password and username are ignored. Can be used for tokens which can expire and therefore must be read dynamically. The option is a: org.apache.camel.component.mail.MailAuthenticator type. Group: advanced
      • autowiredEnabled

        default Pop3sComponentBuilderFactory.Pop3sComponentBuilder autowiredEnabled​(boolean autowiredEnabled)
        Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc. The option is a: boolean type. Default: true Group: advanced
      • configuration

        default Pop3sComponentBuilderFactory.Pop3sComponentBuilder configuration​(org.apache.camel.component.mail.MailConfiguration configuration)
        Sets the Mail configuration. The option is a: org.apache.camel.component.mail.MailConfiguration type. Group: advanced
      • contentTypeResolver

        default Pop3sComponentBuilderFactory.Pop3sComponentBuilder contentTypeResolver​(org.apache.camel.component.mail.ContentTypeResolver contentTypeResolver)
        Resolver to determine Content-Type for file attachments. The option is a: org.apache.camel.component.mail.ContentTypeResolver type. Group: advanced
      • debugMode

        default Pop3sComponentBuilderFactory.Pop3sComponentBuilder debugMode​(boolean debugMode)
        Enable debug mode on the underlying mail framework. The SUN Mail framework logs the debug messages to System.out by default. The option is a: boolean type. Default: false Group: advanced
      • ignoreUnsupportedCharset

        default Pop3sComponentBuilderFactory.Pop3sComponentBuilder ignoreUnsupportedCharset​(boolean ignoreUnsupportedCharset)
        Option to let Camel ignore unsupported charset in the local JVM when sending mails. If the charset is unsupported then charset=XXX (where XXX represents the unsupported charset) is removed from the content-type and it relies on the platform default instead. The option is a: boolean type. Default: false Group: advanced
      • ignoreUriScheme

        default Pop3sComponentBuilderFactory.Pop3sComponentBuilder ignoreUriScheme​(boolean ignoreUriScheme)
        Option to let Camel ignore unsupported charset in the local JVM when sending mails. If the charset is unsupported then charset=XXX (where XXX represents the unsupported charset) is removed from the content-type and it relies on the platform default instead. The option is a: boolean type. Default: false Group: advanced
      • javaMailProperties

        default Pop3sComponentBuilderFactory.Pop3sComponentBuilder javaMailProperties​(Properties javaMailProperties)
        Sets the java mail options. Will clear any default properties and only use the properties provided for this method. The option is a: java.util.Properties type. Group: advanced
      • session

        default Pop3sComponentBuilderFactory.Pop3sComponentBuilder session​(javax.mail.Session session)
        Specifies the mail session that camel should use for all mail interactions. Useful in scenarios where mail sessions are created and managed by some other resource, such as a JavaEE container. When using a custom mail session, then the hostname and port from the mail session will be used (if configured on the session). The option is a: javax.mail.Session type. Group: advanced
      • headerFilterStrategy

        default Pop3sComponentBuilderFactory.Pop3sComponentBuilder headerFilterStrategy​(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy)
        To use a custom org.apache.camel.spi.HeaderFilterStrategy to filter header to and from Camel message. The option is a: org.apache.camel.spi.HeaderFilterStrategy type. Group: filter
      • sslContextParameters

        default Pop3sComponentBuilderFactory.Pop3sComponentBuilder sslContextParameters​(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters)
        To configure security using SSLContextParameters. The option is a: org.apache.camel.support.jsse.SSLContextParameters type. Group: security
      • useGlobalSslContextParameters

        default Pop3sComponentBuilderFactory.Pop3sComponentBuilder useGlobalSslContextParameters​(boolean useGlobalSslContextParameters)
        Enable usage of global SSL context parameters. The option is a: boolean type. Default: false Group: security