@UriEndpoint(scheme="ahc-ws,ahc-wss",
title="AHC Websocket,AHC Secure Websocket",
syntax="ahc-ws:httpUri",
consumerClass=WsConsumer.class,
label="http,websocket")
public class WsEndpoint
extends org.apache.camel.component.ahc.AhcEndpoint
| Constructor and Description |
|---|
WsEndpoint(String endpointUri,
WsComponent component) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect() |
protected com.ning.http.client.AsyncHttpClient |
createClient(com.ning.http.client.AsyncHttpClientConfig config) |
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
org.apache.camel.Producer |
createProducer() |
protected void |
doStop() |
protected com.ning.http.client.AsyncHttpProvider |
getAsyncHttpProvider(com.ning.http.client.AsyncHttpClientConfig config) |
WsComponent |
getComponent() |
boolean |
isUseStreaming() |
void |
setUseStreaming(boolean useStreaming)
To enable streaming to send data as multiple text fragments.
|
doStart, getBinding, getBufferSize, getClient, getClientConfig, getHeaderFilterStrategy, getHttpUri, getSslContextParameters, isBridgeEndpoint, isLenientProperties, isSingleton, isThrowExceptionOnFailure, isTransferException, setBinding, setBridgeEndpoint, setBufferSize, setClient, setClientConfig, setHeaderFilterStrategy, setHttpUri, setSslContextParameters, setThrowExceptionOnFailure, setTransferExceptionconfigureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, equals, getCamelContext, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, getPollingConsumerQueueSize, hashCode, isPollingConsumerBlockWhenFull, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic WsEndpoint(String endpointUri, WsComponent component)
public WsComponent getComponent()
getComponent in class org.apache.camel.component.ahc.AhcEndpointpublic org.apache.camel.Producer createProducer()
throws Exception
createProducer in interface org.apache.camel.EndpointcreateProducer in class org.apache.camel.component.ahc.AhcEndpointExceptionpublic org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
createConsumer in interface org.apache.camel.EndpointcreateConsumer in class org.apache.camel.component.ahc.AhcEndpointExceptionpublic boolean isUseStreaming()
public void setUseStreaming(boolean useStreaming)
protected com.ning.http.client.AsyncHttpClient createClient(com.ning.http.client.AsyncHttpClientConfig config)
createClient in class org.apache.camel.component.ahc.AhcEndpointpublic void connect()
throws InterruptedException,
ExecutionException,
IOException
protected void doStop()
throws Exception
doStop in class org.apache.camel.component.ahc.AhcEndpointExceptionprotected com.ning.http.client.AsyncHttpProvider getAsyncHttpProvider(com.ning.http.client.AsyncHttpClientConfig config)
Apache Camel