Interface WsEndpointBuilderFactory.WsEndpointBuilder
-
- All Superinterfaces:
org.apache.camel.builder.EndpointConsumerBuilder,org.apache.camel.EndpointConsumerResolver,org.apache.camel.builder.EndpointProducerBuilder,org.apache.camel.EndpointProducerResolver,WsEndpointBuilderFactory.WsEndpointConsumerBuilder,WsEndpointBuilderFactory.WsEndpointProducerBuilder
- Enclosing interface:
- WsEndpointBuilderFactory
public static interface WsEndpointBuilderFactory.WsEndpointBuilder extends WsEndpointBuilderFactory.WsEndpointConsumerBuilder, WsEndpointBuilderFactory.WsEndpointProducerBuilder
Builder for endpoint for the Async HTTP Client (AHC) Websocket component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default WsEndpointBuilderFactory.AdvancedWsEndpointBuilderadvanced()default WsEndpointBuilderFactory.WsEndpointBuilderbridgeEndpoint(boolean bridgeEndpoint)If the option is true, then the Exchange.HTTP_URI header is ignored, and use the endpoint's URI for request.default WsEndpointBuilderFactory.WsEndpointBuilderbridgeEndpoint(String bridgeEndpoint)If the option is true, then the Exchange.HTTP_URI header is ignored, and use the endpoint's URI for request.default WsEndpointBuilderFactory.WsEndpointBuilderbufferSize(int bufferSize)The initial in-memory buffer size used when transferring data between Camel and AHC Client.default WsEndpointBuilderFactory.WsEndpointBuilderbufferSize(String bufferSize)The initial in-memory buffer size used when transferring data between Camel and AHC Client.default WsEndpointBuilderFactory.WsEndpointBuilderheaderFilterStrategy(String headerFilterStrategy)To use a custom HeaderFilterStrategy to filter header to and from Camel message.default WsEndpointBuilderFactory.WsEndpointBuilderheaderFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy)To use a custom HeaderFilterStrategy to filter header to and from Camel message.default WsEndpointBuilderFactory.WsEndpointBuildersslContextParameters(Object sslContextParameters)Reference to a org.apache.camel.support.jsse.SSLContextParameters in the Registry.default WsEndpointBuilderFactory.WsEndpointBuildersslContextParameters(String sslContextParameters)Reference to a org.apache.camel.support.jsse.SSLContextParameters in the Registry.default WsEndpointBuilderFactory.WsEndpointBuilderthrowExceptionOnFailure(boolean throwExceptionOnFailure)Option to disable throwing the AhcOperationFailedException in case of failed responses from the remote server.default WsEndpointBuilderFactory.WsEndpointBuilderthrowExceptionOnFailure(String throwExceptionOnFailure)Option to disable throwing the AhcOperationFailedException in case of failed responses from the remote server.default WsEndpointBuilderFactory.WsEndpointBuildertransferException(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 (for example using Jetty or Servlet Camel components).default WsEndpointBuilderFactory.WsEndpointBuildertransferException(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 (for example using Jetty or Servlet Camel components).-
Methods inherited from interface org.apache.camel.builder.EndpointConsumerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getUri
-
Methods inherited from interface org.apache.camel.builder.EndpointProducerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getUri
-
Methods inherited from interface org.apache.camel.builder.endpoint.dsl.WsEndpointBuilderFactory.WsEndpointConsumerBuilder
bridgeErrorHandler, bridgeErrorHandler, sendMessageOnError, sendMessageOnError
-
Methods inherited from interface org.apache.camel.builder.endpoint.dsl.WsEndpointBuilderFactory.WsEndpointProducerBuilder
connectionClose, connectionClose, cookieHandler, cookieHandler, lazyStartProducer, lazyStartProducer, useStreaming, useStreaming
-
-
-
-
Method Detail
-
advanced
default WsEndpointBuilderFactory.AdvancedWsEndpointBuilder advanced()
- Specified by:
advancedin interfaceWsEndpointBuilderFactory.WsEndpointConsumerBuilder- Specified by:
advancedin interfaceWsEndpointBuilderFactory.WsEndpointProducerBuilder
-
bridgeEndpoint
default WsEndpointBuilderFactory.WsEndpointBuilder bridgeEndpoint(boolean bridgeEndpoint)
If the option is true, then the Exchange.HTTP_URI header is ignored, and use the endpoint's URI for request. You may also set the throwExceptionOnFailure to be false to let the AhcProducer send all the fault response back. The option is a: <code>boolean</code> type. Default: false Group: common- Specified by:
bridgeEndpointin interfaceWsEndpointBuilderFactory.WsEndpointConsumerBuilder- Specified by:
bridgeEndpointin interfaceWsEndpointBuilderFactory.WsEndpointProducerBuilder- Parameters:
bridgeEndpoint- the value to set- Returns:
- the dsl builder
-
bridgeEndpoint
default WsEndpointBuilderFactory.WsEndpointBuilder bridgeEndpoint(String bridgeEndpoint)
If the option is true, then the Exchange.HTTP_URI header is ignored, and use the endpoint's URI for request. You may also set the throwExceptionOnFailure to be false to let the AhcProducer send all the fault response back. The option will be converted to a <code>boolean</code> type. Default: false Group: common- Specified by:
bridgeEndpointin interfaceWsEndpointBuilderFactory.WsEndpointConsumerBuilder- Specified by:
bridgeEndpointin interfaceWsEndpointBuilderFactory.WsEndpointProducerBuilder- Parameters:
bridgeEndpoint- the value to set- Returns:
- the dsl builder
-
bufferSize
default WsEndpointBuilderFactory.WsEndpointBuilder bufferSize(int bufferSize)
The initial in-memory buffer size used when transferring data between Camel and AHC Client. The option is a: <code>int</code> type. Default: 4096 Group: common- Specified by:
bufferSizein interfaceWsEndpointBuilderFactory.WsEndpointConsumerBuilder- Specified by:
bufferSizein interfaceWsEndpointBuilderFactory.WsEndpointProducerBuilder- Parameters:
bufferSize- the value to set- Returns:
- the dsl builder
-
bufferSize
default WsEndpointBuilderFactory.WsEndpointBuilder bufferSize(String bufferSize)
The initial in-memory buffer size used when transferring data between Camel and AHC Client. The option will be converted to a <code>int</code> type. Default: 4096 Group: common- Specified by:
bufferSizein interfaceWsEndpointBuilderFactory.WsEndpointConsumerBuilder- Specified by:
bufferSizein interfaceWsEndpointBuilderFactory.WsEndpointProducerBuilder- Parameters:
bufferSize- the value to set- Returns:
- the dsl builder
-
headerFilterStrategy
default WsEndpointBuilderFactory.WsEndpointBuilder headerFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy)
To use a custom HeaderFilterStrategy to filter header to and from Camel message. The option is a: <code>org.apache.camel.spi.HeaderFilterStrategy</code> type. Group: common- Specified by:
headerFilterStrategyin interfaceWsEndpointBuilderFactory.WsEndpointConsumerBuilder- Specified by:
headerFilterStrategyin interfaceWsEndpointBuilderFactory.WsEndpointProducerBuilder- Parameters:
headerFilterStrategy- the value to set- Returns:
- the dsl builder
-
headerFilterStrategy
default WsEndpointBuilderFactory.WsEndpointBuilder headerFilterStrategy(String headerFilterStrategy)
To use a custom HeaderFilterStrategy to filter header to and from Camel message. The option will be converted to a <code>org.apache.camel.spi.HeaderFilterStrategy</code> type. Group: common- Specified by:
headerFilterStrategyin interfaceWsEndpointBuilderFactory.WsEndpointConsumerBuilder- Specified by:
headerFilterStrategyin interfaceWsEndpointBuilderFactory.WsEndpointProducerBuilder- Parameters:
headerFilterStrategy- the value to set- Returns:
- the dsl builder
-
throwExceptionOnFailure
default WsEndpointBuilderFactory.WsEndpointBuilder throwExceptionOnFailure(boolean throwExceptionOnFailure)
Option to disable throwing the AhcOperationFailedException 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: <code>boolean</code> type. Default: true Group: common- Specified by:
throwExceptionOnFailurein interfaceWsEndpointBuilderFactory.WsEndpointConsumerBuilder- Specified by:
throwExceptionOnFailurein interfaceWsEndpointBuilderFactory.WsEndpointProducerBuilder- Parameters:
throwExceptionOnFailure- the value to set- Returns:
- the dsl builder
-
throwExceptionOnFailure
default WsEndpointBuilderFactory.WsEndpointBuilder throwExceptionOnFailure(String throwExceptionOnFailure)
Option to disable throwing the AhcOperationFailedException 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 <code>boolean</code> type. Default: true Group: common- Specified by:
throwExceptionOnFailurein interfaceWsEndpointBuilderFactory.WsEndpointConsumerBuilder- Specified by:
throwExceptionOnFailurein interfaceWsEndpointBuilderFactory.WsEndpointProducerBuilder- Parameters:
throwExceptionOnFailure- the value to set- Returns:
- the dsl builder
-
transferException
default WsEndpointBuilderFactory.WsEndpointBuilder 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 (for example using Jetty or Servlet Camel components). On the producer side the exception will be deserialized and thrown as is, instead of the AhcOperationFailedException. 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: <code>boolean</code> type. Default: false Group: common- Specified by:
transferExceptionin interfaceWsEndpointBuilderFactory.WsEndpointConsumerBuilder- Specified by:
transferExceptionin interfaceWsEndpointBuilderFactory.WsEndpointProducerBuilder- Parameters:
transferException- the value to set- Returns:
- the dsl builder
-
transferException
default WsEndpointBuilderFactory.WsEndpointBuilder 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 (for example using Jetty or Servlet Camel components). On the producer side the exception will be deserialized and thrown as is, instead of the AhcOperationFailedException. 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 <code>boolean</code> type. Default: false Group: common- Specified by:
transferExceptionin interfaceWsEndpointBuilderFactory.WsEndpointConsumerBuilder- Specified by:
transferExceptionin interfaceWsEndpointBuilderFactory.WsEndpointProducerBuilder- Parameters:
transferException- the value to set- Returns:
- the dsl builder
-
sslContextParameters
default WsEndpointBuilderFactory.WsEndpointBuilder sslContextParameters(Object sslContextParameters)
Reference to a org.apache.camel.support.jsse.SSLContextParameters in the Registry. This reference overrides any configured SSLContextParameters at the component level. See Using the JSSE Configuration Utility. Note that configuring this option will override any SSL/TLS configuration options provided through the clientConfig option at the endpoint or component level. The option is a: <code>org.apache.camel.support.jsse.SSLContextParameters</code> type. Group: security- Specified by:
sslContextParametersin interfaceWsEndpointBuilderFactory.WsEndpointConsumerBuilder- Specified by:
sslContextParametersin interfaceWsEndpointBuilderFactory.WsEndpointProducerBuilder- Parameters:
sslContextParameters- the value to set- Returns:
- the dsl builder
-
sslContextParameters
default WsEndpointBuilderFactory.WsEndpointBuilder sslContextParameters(String sslContextParameters)
Reference to a org.apache.camel.support.jsse.SSLContextParameters in the Registry. This reference overrides any configured SSLContextParameters at the component level. See Using the JSSE Configuration Utility. Note that configuring this option will override any SSL/TLS configuration options provided through the clientConfig option at the endpoint or component level. The option will be converted to a <code>org.apache.camel.support.jsse.SSLContextParameters</code> type. Group: security- Specified by:
sslContextParametersin interfaceWsEndpointBuilderFactory.WsEndpointConsumerBuilder- Specified by:
sslContextParametersin interfaceWsEndpointBuilderFactory.WsEndpointProducerBuilder- Parameters:
sslContextParameters- the value to set- Returns:
- the dsl builder
-
-