Interface ServletEndpointBuilderFactory.AdvancedServletEndpointBuilder

  • All Superinterfaces:
    org.apache.camel.builder.EndpointConsumerBuilder, org.apache.camel.EndpointConsumerResolver
    Enclosing interface:
    ServletEndpointBuilderFactory

    public static interface ServletEndpointBuilderFactory.AdvancedServletEndpointBuilder
    extends org.apache.camel.builder.EndpointConsumerBuilder
    Advanced builder for endpoint for the Servlet component.
    • Method Detail

      • attachmentMultipartBinding

        default ServletEndpointBuilderFactory.AdvancedServletEndpointBuilder attachmentMultipartBinding​(boolean attachmentMultipartBinding)
        Whether to automatic bind multipart/form-data as attachments on the Camel Exchange. The options attachmentMultipartBinding=true and disableStreamCache=false cannot work together. Remove disableStreamCache to use AttachmentMultipartBinding. This is turn off by default as this may require servlet specific configuration to enable this when using Servlet's. The option is a: boolean type. Default: false Group: consumer (advanced)
      • attachmentMultipartBinding

        default ServletEndpointBuilderFactory.AdvancedServletEndpointBuilder attachmentMultipartBinding​(String attachmentMultipartBinding)
        Whether to automatic bind multipart/form-data as attachments on the Camel Exchange. The options attachmentMultipartBinding=true and disableStreamCache=false cannot work together. Remove disableStreamCache to use AttachmentMultipartBinding. This is turn off by default as this may require servlet specific configuration to enable this when using Servlet's. The option will be converted to a boolean type. Default: false Group: consumer (advanced)
      • eagerCheckContentAvailable

        default ServletEndpointBuilderFactory.AdvancedServletEndpointBuilder eagerCheckContentAvailable​(boolean eagerCheckContentAvailable)
        Whether to eager check whether the HTTP requests has content if the content-length header is 0 or not present. This can be turned on in case HTTP clients do not send streamed data. The option is a: boolean type. Default: false Group: consumer (advanced)
      • eagerCheckContentAvailable

        default ServletEndpointBuilderFactory.AdvancedServletEndpointBuilder eagerCheckContentAvailable​(String eagerCheckContentAvailable)
        Whether to eager check whether the HTTP requests has content if the content-length header is 0 or not present. This can be turned on in case HTTP clients do not send streamed data. The option will be converted to a boolean type. Default: false Group: consumer (advanced)
      • exceptionHandler

        default ServletEndpointBuilderFactory.AdvancedServletEndpointBuilder exceptionHandler​(org.apache.camel.spi.ExceptionHandler exceptionHandler)
        To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By default the consumer will deal with exceptions, that will be logged at WARN or ERROR level and ignored. The option is a: org.apache.camel.spi.ExceptionHandler type. Group: consumer (advanced)
      • exceptionHandler

        default ServletEndpointBuilderFactory.AdvancedServletEndpointBuilder exceptionHandler​(String exceptionHandler)
        To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By default the consumer will deal with exceptions, that will be logged at WARN or ERROR level and ignored. The option will be converted to a org.apache.camel.spi.ExceptionHandler type. Group: consumer (advanced)
      • exchangePattern

        default ServletEndpointBuilderFactory.AdvancedServletEndpointBuilder exchangePattern​(org.apache.camel.ExchangePattern exchangePattern)
        Sets the exchange pattern when the consumer creates an exchange. The option is a: org.apache.camel.ExchangePattern type. Group: consumer (advanced)
      • fileNameExtWhitelist

        default ServletEndpointBuilderFactory.AdvancedServletEndpointBuilder fileNameExtWhitelist​(String fileNameExtWhitelist)
        Whitelist of accepted filename extensions for accepting uploaded files. Multiple extensions can be separated by comma, such as txt,xml. The option is a: java.lang.String type. Group: consumer (advanced)
      • optionsEnabled

        default ServletEndpointBuilderFactory.AdvancedServletEndpointBuilder optionsEnabled​(boolean optionsEnabled)
        Specifies whether to enable HTTP OPTIONS for this Servlet consumer. By default OPTIONS is turned off. The option is a: boolean type. Default: false Group: consumer (advanced)
      • mapHttpMessageBody

        default ServletEndpointBuilderFactory.AdvancedServletEndpointBuilder mapHttpMessageBody​(boolean mapHttpMessageBody)
        If this option is true then IN exchange Body of the exchange will be mapped to HTTP body. Setting this to false will avoid the HTTP mapping. The option is a: boolean type. Default: true Group: advanced
      • mapHttpMessageBody

        default ServletEndpointBuilderFactory.AdvancedServletEndpointBuilder mapHttpMessageBody​(String mapHttpMessageBody)
        If this option is true then IN exchange Body of the exchange will be mapped to HTTP body. Setting this to false will avoid the HTTP mapping. The option will be converted to a boolean type. Default: true Group: advanced
      • mapHttpMessageFormUrlEncodedBody

        default ServletEndpointBuilderFactory.AdvancedServletEndpointBuilder mapHttpMessageFormUrlEncodedBody​(boolean mapHttpMessageFormUrlEncodedBody)
        If this option is true then IN exchange Form Encoded body of the exchange will be mapped to HTTP. Setting this to false will avoid the HTTP Form Encoded body mapping. The option is a: boolean type. Default: true Group: advanced
      • mapHttpMessageFormUrlEncodedBody

        default ServletEndpointBuilderFactory.AdvancedServletEndpointBuilder mapHttpMessageFormUrlEncodedBody​(String mapHttpMessageFormUrlEncodedBody)
        If this option is true then IN exchange Form Encoded body of the exchange will be mapped to HTTP. Setting this to false will avoid the HTTP Form Encoded body mapping. The option will be converted to a boolean type. Default: true Group: advanced
      • mapHttpMessageHeaders

        default ServletEndpointBuilderFactory.AdvancedServletEndpointBuilder mapHttpMessageHeaders​(boolean mapHttpMessageHeaders)
        If this option is true then IN exchange Headers of the exchange will be mapped to HTTP headers. Setting this to false will avoid the HTTP Headers mapping. The option is a: boolean type. Default: true Group: advanced
      • mapHttpMessageHeaders

        default ServletEndpointBuilderFactory.AdvancedServletEndpointBuilder mapHttpMessageHeaders​(String mapHttpMessageHeaders)
        If this option is true then IN exchange Headers of the exchange will be mapped to HTTP headers. Setting this to false will avoid the HTTP Headers mapping. The option will be converted to a boolean type. Default: true Group: advanced
      • synchronous

        default ServletEndpointBuilderFactory.AdvancedServletEndpointBuilder synchronous​(boolean synchronous)
        Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). The option is a: boolean type. Default: false Group: advanced