Interface HttpEndpointBuilderFactory.HttpEndpointBuilder

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

    public static interface HttpEndpointBuilderFactory.HttpEndpointBuilder
    extends org.apache.camel.builder.EndpointProducerBuilder
    Builder for endpoint for the HTTP component.
    • Method Detail

      • disableStreamCache

        default HttpEndpointBuilderFactory.HttpEndpointBuilder disableStreamCache​(boolean disableStreamCache)
        Determines whether or not the raw input stream from Servlet is cached or not (Camel will read the stream into a in memory/overflow to file, Stream caching) cache. By default Camel will cache the Servlet input stream to support reading it multiple times to ensure it Camel can retrieve all data from the stream. However you can set this option to true when you for example need to access the raw stream, such as streaming it directly to a file or other persistent store. DefaultHttpBinding will copy the request input stream into a stream cache and put it into message body if this option is false to support reading the stream multiple times. If you use Servlet to bridge/proxy an endpoint then consider enabling this option to improve performance, in case you do not need to read the message payload multiple times. The http producer will by default cache the response body stream. If setting this option to true, then the producers will not cache the response body stream but use the response stream as-is as the message body. The option is a: boolean type. Default: false Group: common
      • disableStreamCache

        default HttpEndpointBuilderFactory.HttpEndpointBuilder disableStreamCache​(String disableStreamCache)
        Determines whether or not the raw input stream from Servlet is cached or not (Camel will read the stream into a in memory/overflow to file, Stream caching) cache. By default Camel will cache the Servlet input stream to support reading it multiple times to ensure it Camel can retrieve all data from the stream. However you can set this option to true when you for example need to access the raw stream, such as streaming it directly to a file or other persistent store. DefaultHttpBinding will copy the request input stream into a stream cache and put it into message body if this option is false to support reading the stream multiple times. If you use Servlet to bridge/proxy an endpoint then consider enabling this option to improve performance, in case you do not need to read the message payload multiple times. The http producer will by default cache the response body stream. If setting this option to true, then the producers will not cache the response body stream but use the response stream as-is as the message body. The option will be converted to a boolean type. Default: false Group: common
      • headerFilterStrategy

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

        default HttpEndpointBuilderFactory.HttpEndpointBuilder headerFilterStrategy​(String headerFilterStrategy)
        To use a custom HeaderFilterStrategy to filter header to and from Camel message. The option will be converted to a org.apache.camel.spi.HeaderFilterStrategy type. Group: common
      • bridgeEndpoint

        default HttpEndpointBuilderFactory.HttpEndpointBuilder bridgeEndpoint​(boolean bridgeEndpoint)
        If the option is true, HttpProducer will ignore the Exchange.HTTP_URI header, and use the endpoint's URI for request. You may also set the option throwExceptionOnFailure to be false to let the HttpProducer send all the fault response back. The option is a: boolean type. Default: false Group: producer
      • bridgeEndpoint

        default HttpEndpointBuilderFactory.HttpEndpointBuilder bridgeEndpoint​(String bridgeEndpoint)
        If the option is true, HttpProducer will ignore the Exchange.HTTP_URI header, and use the endpoint's URI for request. You may also set the option throwExceptionOnFailure to be false to let the HttpProducer send all the fault response back. The option will be converted to a boolean type. Default: false Group: producer
      • chunked

        default HttpEndpointBuilderFactory.HttpEndpointBuilder chunked​(boolean chunked)
        If this option is false the Servlet will disable the HTTP streaming and set the content-length header on the response. The option is a: boolean type. Default: true Group: producer
      • chunked

        default HttpEndpointBuilderFactory.HttpEndpointBuilder chunked​(String chunked)
        If this option is false the Servlet will disable the HTTP streaming and set the content-length header on the response. The option will be converted to a boolean type. Default: true Group: producer
      • clearExpiredCookies

        default HttpEndpointBuilderFactory.HttpEndpointBuilder clearExpiredCookies​(boolean clearExpiredCookies)
        Whether to clear expired cookies before sending the HTTP request. This ensures the cookies store does not keep growing by adding new cookies which is newer removed when they are expired. The option is a: boolean type. Default: true Group: producer
      • clearExpiredCookies

        default HttpEndpointBuilderFactory.HttpEndpointBuilder clearExpiredCookies​(String clearExpiredCookies)
        Whether to clear expired cookies before sending the HTTP request. This ensures the cookies store does not keep growing by adding new cookies which is newer removed when they are expired. The option will be converted to a boolean type. Default: true Group: producer
      • connectionClose

        default HttpEndpointBuilderFactory.HttpEndpointBuilder connectionClose​(boolean connectionClose)
        Specifies whether a Connection Close header must be added to HTTP Request. By default connectionClose is false. The option is a: boolean type. Default: false Group: producer
      • connectionClose

        default HttpEndpointBuilderFactory.HttpEndpointBuilder connectionClose​(String connectionClose)
        Specifies whether a Connection Close header must be added to HTTP Request. By default connectionClose is false. The option will be converted to a boolean type. Default: false Group: producer
      • copyHeaders

        default HttpEndpointBuilderFactory.HttpEndpointBuilder copyHeaders​(boolean copyHeaders)
        If this option is true then IN exchange headers will be copied to OUT exchange headers according to copy strategy. Setting this to false, allows to only include the headers from the HTTP response (not propagating IN headers). The option is a: boolean type. Default: true Group: producer
      • copyHeaders

        default HttpEndpointBuilderFactory.HttpEndpointBuilder copyHeaders​(String copyHeaders)
        If this option is true then IN exchange headers will be copied to OUT exchange headers according to copy strategy. Setting this to false, allows to only include the headers from the HTTP response (not propagating IN headers). The option will be converted to a boolean type. Default: true Group: producer
      • customHostHeader

        default HttpEndpointBuilderFactory.HttpEndpointBuilder customHostHeader​(String customHostHeader)
        To use custom host header for producer. When not set in query will be ignored. When set will override host header derived from url. The option is a: java.lang.String type. Group: producer
      • httpMethod

        default HttpEndpointBuilderFactory.HttpEndpointBuilder httpMethod​(String httpMethod)
        Configure the HTTP method to use. The HttpMethod header cannot override this option if set. The option will be converted to a org.apache.camel.http.common.HttpMethods type. Group: producer
      • ignoreResponseBody

        default HttpEndpointBuilderFactory.HttpEndpointBuilder ignoreResponseBody​(boolean ignoreResponseBody)
        If this option is true, The http producer won't read response body and cache the input stream. The option is a: boolean type. Default: false Group: producer
      • ignoreResponseBody

        default HttpEndpointBuilderFactory.HttpEndpointBuilder ignoreResponseBody​(String ignoreResponseBody)
        If this option is true, The http producer won't read response body and cache the input stream. The option will be converted to a boolean type. Default: false Group: producer
      • lazyStartProducer

        default HttpEndpointBuilderFactory.HttpEndpointBuilder 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 HttpEndpointBuilderFactory.HttpEndpointBuilder 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 boolean type. Default: false Group: producer
      • preserveHostHeader

        default HttpEndpointBuilderFactory.HttpEndpointBuilder preserveHostHeader​(boolean preserveHostHeader)
        If the option is true, HttpProducer will set the Host header to the value contained in the current exchange Host header, useful in reverse proxy applications where you want the Host header received by the downstream server to reflect the URL called by the upstream client, this allows applications which use the Host header to generate accurate URL's for a proxied service. The option is a: boolean type. Default: false Group: producer
      • preserveHostHeader

        default HttpEndpointBuilderFactory.HttpEndpointBuilder preserveHostHeader​(String preserveHostHeader)
        If the option is true, HttpProducer will set the Host header to the value contained in the current exchange Host header, useful in reverse proxy applications where you want the Host header received by the downstream server to reflect the URL called by the upstream client, this allows applications which use the Host header to generate accurate URL's for a proxied service. The option will be converted to a boolean type. Default: false Group: producer
      • throwExceptionOnFailure

        default HttpEndpointBuilderFactory.HttpEndpointBuilder throwExceptionOnFailure​(boolean throwExceptionOnFailure)
        Option to disable throwing the HttpOperationFailedException in case of failed responses from the remote server. This allows you to get all responses regardless of the HTTP status code. The option is a: boolean type. Default: true Group: producer
      • throwExceptionOnFailure

        default HttpEndpointBuilderFactory.HttpEndpointBuilder throwExceptionOnFailure​(String throwExceptionOnFailure)
        Option to disable throwing the HttpOperationFailedException in case of failed responses from the remote server. This allows you to get all responses regardless of the HTTP status code. The option will be converted to a boolean type. Default: true Group: producer
      • transferException

        default HttpEndpointBuilderFactory.HttpEndpointBuilder transferException​(boolean transferException)
        If enabled and an Exchange failed processing on the consumer side, and if the caused Exception was send back serialized in the response as a application/x-java-serialized-object content type. On the producer side the exception will be deserialized and thrown as is, instead of the HttpOperationFailedException. The caused exception is required to be serialized. This is by default turned off. If you enable this then be aware that Java will deserialize the incoming data from the request to Java and that can be a potential security risk. The option is a: boolean type. Default: false Group: producer
      • transferException

        default HttpEndpointBuilderFactory.HttpEndpointBuilder transferException​(String transferException)
        If enabled and an Exchange failed processing on the consumer side, and if the caused Exception was send back serialized in the response as a application/x-java-serialized-object content type. On the producer side the exception will be deserialized and thrown as is, instead of the HttpOperationFailedException. The caused exception is required to be serialized. This is by default turned off. If you enable this then be aware that Java will deserialize the incoming data from the request to Java and that can be a potential security risk. The option will be converted to a boolean type. Default: false Group: producer
      • authenticationPreemptive

        default HttpEndpointBuilderFactory.HttpEndpointBuilder authenticationPreemptive​(boolean authenticationPreemptive)
        If this option is true, camel-http sends preemptive basic authentication to the server. The option is a: boolean type. Default: false Group: security
      • authenticationPreemptive

        default HttpEndpointBuilderFactory.HttpEndpointBuilder authenticationPreemptive​(String authenticationPreemptive)
        If this option is true, camel-http sends preemptive basic authentication to the server. The option will be converted to a boolean type. Default: false Group: security
      • authMethodPriority

        default HttpEndpointBuilderFactory.HttpEndpointBuilder authMethodPriority​(String authMethodPriority)
        Which authentication method to prioritize to use, either as Basic, Digest or NTLM. The option is a: java.lang.String type. Group: security
      • sslContextParameters

        default HttpEndpointBuilderFactory.HttpEndpointBuilder sslContextParameters​(Object sslContextParameters)
        To configure security using SSLContextParameters. Important: Only one instance of org.apache.camel.util.jsse.SSLContextParameters is supported per HttpComponent. If you need to use 2 or more different instances, you need to define a new HttpComponent per instance you need. The option is a: org.apache.camel.support.jsse.SSLContextParameters type. Group: security
      • sslContextParameters

        default HttpEndpointBuilderFactory.HttpEndpointBuilder sslContextParameters​(String sslContextParameters)
        To configure security using SSLContextParameters. Important: Only one instance of org.apache.camel.util.jsse.SSLContextParameters is supported per HttpComponent. If you need to use 2 or more different instances, you need to define a new HttpComponent per instance you need. The option will be converted to a org.apache.camel.support.jsse.SSLContextParameters type. Group: security
      • x509HostnameVerifier

        default HttpEndpointBuilderFactory.HttpEndpointBuilder x509HostnameVerifier​(Object x509HostnameVerifier)
        To use a custom X509HostnameVerifier such as DefaultHostnameVerifier or NoopHostnameVerifier. The option is a: javax.net.ssl.HostnameVerifier type. Group: security
      • x509HostnameVerifier

        default HttpEndpointBuilderFactory.HttpEndpointBuilder x509HostnameVerifier​(String x509HostnameVerifier)
        To use a custom X509HostnameVerifier such as DefaultHostnameVerifier or NoopHostnameVerifier. The option will be converted to a javax.net.ssl.HostnameVerifier type. Group: security