blob: 70e0d09a7bc4edfd46138d69ab6d734abe04a1d3 [file] [log] [blame]
{"component":{"kind":"component","name":"websocket","title":"Jetty Websocket","description":"Expose websocket endpoints using Jetty.","deprecated":false,"firstVersion":"2.10.0","label":"websocket","javaType":"org.apache.camel.component.websocket.WebsocketComponent","supportLevel":"Stable","groupId":"org.apache.camel","artifactId":"camel-websocket","version":"3.18.1","scheme":"websocket","extendsScheme":"","syntax":"websocket:host:port/resourceUri","async":false,"api":false,"consumerOnly":false,"producerOnly":false,"lenientProperties":false},"headers":{"websocket.connectionKey":{"kind":"header","displayName":"","group":"common","label":"","required":false,"javaType":"String","deprecated":false,"deprecationNote":"","autowired":false,"secret":false,"description":"Producer: Sends the message to all clients which are currently connected. You can use the sendToAll option on the endpoint instead of using this header. Consumer: Connection key identifying an individual client connection. You can save this and specify it again when routing to a producer endpoing in order to direct messages to a specific connected client.","constantName":"org.apache.camel.component.websocket.WebsocketConstants#CONNECTION_KEY"},"websocket.sendToAll":{"kind":"header","displayName":"","group":"producer","label":"producer","required":false,"javaType":"Boolean","deprecated":false,"deprecationNote":"","autowired":false,"secret":false,"description":"Sends the message to all clients which are currently connected. You can use the sendToAll option on the endpoint instead of using this header.","constantName":"org.apache.camel.component.websocket.WebsocketConstants#SEND_TO_ALL"},"websocket.remoteAddress":{"kind":"header","displayName":"","group":"consumer","label":"consumer","required":false,"javaType":"java.net.InetSocketAddress","deprecated":false,"deprecationNote":"","autowired":false,"secret":false,"description":"Remote address of the websocket session.","constantName":"org.apache.camel.component.websocket.WebsocketConstants#REMOTE_ADDRESS"},"websocket.subprotocol":{"kind":"header","displayName":"","group":"consumer","label":"consumer","required":false,"javaType":"String","deprecated":false,"deprecationNote":"","autowired":false,"secret":false,"description":"If a specific subprotocol was negotiated, it will be specfied in this header. Note that if you specify the any subprotocol to be supported, and a client requests a specific subprotocol, the connection will be accepted without a specific subprotocol being used. You need to specifically support a given protocol by name if you want it returned to the client and to show up in the message header.","constantName":"org.apache.camel.component.websocket.WebsocketConstants#SUBPROTOCOL"},"websocket.relativePath":{"kind":"header","displayName":"","group":"consumer","label":"consumer","required":false,"javaType":"String","deprecated":false,"deprecationNote":"","autowired":false,"secret":false,"description":"If you specify a wildcard URI path for an endpoint, and a websocket client connects to that websocket endpoing, the relative path that the client specified will be provided in this header. For example, if you specified websocket://0.0.0.0:80/api/ as your endpoint URI, and a client connects to the server at ws://host.com/api/specialized/apipath then specialized/apipath is provided in the relative path header of all messages from that client.","constantName":"org.apache.camel.component.websocket.WebsocketConstants#RELATIVE_PATH"}},"properties":{"host":{"kind":"path","displayName":"Host","group":"common","label":"","required":false,"type":"string","javaType":"java.lang.String","deprecated":false,"autowired":false,"secret":false,"defaultValue":"0.0.0.0","description":"The hostname. The default value is 0.0.0.0. Setting this option on the component will use the component configured value as default."},"port":{"kind":"path","displayName":"Port","group":"common","label":"","required":false,"type":"integer","javaType":"java.lang.Integer","deprecated":false,"autowired":false,"secret":false,"defaultValue":"9292","description":"The port number. The default value is 9292. Setting this option on the component will use the component configured value as default."},"resourceUri":{"kind":"path","displayName":"Resource Uri","group":"common","label":"","required":true,"type":"string","javaType":"java.lang.String","deprecated":false,"deprecationNote":"","autowired":false,"secret":false,"description":"Name of the websocket channel to use"},"maxBinaryMessageSize":{"kind":"parameter","displayName":"Max Binary Message Size","group":"common","label":"","required":false,"type":"integer","javaType":"java.lang.Integer","deprecated":false,"autowired":false,"secret":false,"defaultValue":"-1","description":"Can be used to set the size in bytes that the websocket created by the websocketServlet may be accept before closing. (Default is -1 - or unlimited)"},"sessionSupport":{"kind":"parameter","displayName":"Session Support","group":"consumer","label":"consumer","required":false,"type":"boolean","javaType":"boolean","deprecated":false,"autowired":false,"secret":false,"defaultValue":false,"description":"Whether to enable session support which enables HttpSession for each http request."},"staticResources":{"kind":"parameter","displayName":"Static Resources","group":"consumer","label":"consumer","required":false,"type":"string","javaType":"java.lang.String","deprecated":false,"autowired":false,"secret":false,"description":"Set a resource path for static resources (such as .html files etc). The resources can be loaded from classpath, if you prefix with classpath:, otherwise the resources is loaded from file system or from JAR files. For example to load from root classpath use classpath:., or classpath:WEB-INF/static If not configured (eg null) then no static resource is in use."},"subprotocol":{"kind":"parameter","displayName":"Subprotocol","group":"consumer","label":"consumer","required":false,"type":"string","javaType":"java.lang.String","deprecated":false,"autowired":false,"secret":false,"defaultValue":"any","description":"This is a comma-separated list of subprotocols that are supported by the application. The list is in priority order. The first subprotocol on this list that is proposed by the client is the one that will be accepted. If no subprotocol on this list is proposed by the client, then the websocket connection is refused. The special value 'any' means that any subprotocol is acceptable. 'any' can be used on its own, or as a failsafe at the end of a list of more specific protocols. 'any' will also match the case where no subprotocol is proposed by the client."},"bridgeErrorHandler":{"kind":"parameter","displayName":"Bridge Error Handler","group":"consumer (advanced)","label":"consumer,advanced","required":false,"type":"boolean","javaType":"boolean","deprecated":false,"autowired":false,"secret":false,"defaultValue":false,"description":"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."},"exceptionHandler":{"kind":"parameter","displayName":"Exception Handler","group":"consumer (advanced)","label":"consumer,advanced","required":false,"type":"object","javaType":"org.apache.camel.spi.ExceptionHandler","optionalPrefix":"consumer.","deprecated":false,"autowired":false,"secret":false,"description":"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."},"exchangePattern":{"kind":"parameter","displayName":"Exchange Pattern","group":"consumer (advanced)","label":"consumer,advanced","required":false,"type":"object","javaType":"org.apache.camel.ExchangePattern","enum":["InOnly","InOut","InOptionalOut"],"deprecated":false,"autowired":false,"secret":false,"description":"Sets the exchange pattern when the consumer creates an exchange."},"sendTimeout":{"kind":"parameter","displayName":"Send Timeout","group":"producer","label":"producer","required":false,"type":"integer","javaType":"java.lang.Integer","deprecated":false,"autowired":false,"secret":false,"defaultValue":"30000","description":"Timeout in millis when sending to a websocket channel. The default timeout is 30000 (30 seconds)."},"sendToAll":{"kind":"parameter","displayName":"Send To All","group":"producer","label":"producer","required":false,"type":"boolean","javaType":"java.lang.Boolean","deprecated":false,"autowired":false,"secret":false,"description":"To send to all websocket subscribers. Can be used to configure on endpoint level, instead of having to use the WebsocketConstants.SEND_TO_ALL header on the message."},"lazyStartProducer":{"kind":"parameter","displayName":"Lazy Start Producer","group":"producer (advanced)","label":"producer,advanced","required":false,"type":"boolean","javaType":"boolean","deprecated":false,"autowired":false,"secret":false,"defaultValue":false,"description":"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."},"bufferSize":{"kind":"parameter","displayName":"Buffer Size","group":"advanced","label":"advanced","required":false,"type":"integer","javaType":"java.lang.Integer","deprecated":false,"autowired":false,"secret":false,"defaultValue":"8192","description":"Set the buffer size of the websocketServlet, which is also the max frame byte size (default 8192)"},"maxIdleTime":{"kind":"parameter","displayName":"Max Idle Time","group":"advanced","label":"advanced","required":false,"type":"integer","javaType":"java.lang.Integer","deprecated":false,"autowired":false,"secret":false,"defaultValue":"300000","description":"Set the time in ms that the websocket created by the websocketServlet may be idle before closing. (default is 300000)"},"maxTextMessageSize":{"kind":"parameter","displayName":"Max Text Message Size","group":"advanced","label":"advanced","required":false,"type":"integer","javaType":"java.lang.Integer","deprecated":false,"autowired":false,"secret":false,"description":"Can be used to set the size in characters that the websocket created by the websocketServlet may be accept before closing."},"minVersion":{"kind":"parameter","displayName":"Min Version","group":"advanced","label":"advanced","required":false,"type":"integer","javaType":"java.lang.Integer","deprecated":false,"autowired":false,"secret":false,"defaultValue":"13","description":"Can be used to set the minimum protocol version accepted for the websocketServlet. (Default 13 - the RFC6455 version)"},"allowedOrigins":{"kind":"parameter","displayName":"Allowed Origins","group":"cors","label":"cors","required":false,"type":"string","javaType":"java.lang.String","deprecated":false,"autowired":false,"secret":false,"description":"The CORS allowed origins. Use to allow all."},"crossOriginFilterOn":{"kind":"parameter","displayName":"Cross Origin Filter On","group":"cors","label":"cors","required":false,"type":"boolean","javaType":"boolean","deprecated":false,"autowired":false,"secret":false,"defaultValue":false,"description":"Whether to enable CORS"},"filterPath":{"kind":"parameter","displayName":"Filter Path","group":"cors","label":"cors","required":false,"type":"string","javaType":"java.lang.String","deprecated":false,"autowired":false,"secret":false,"description":"Context path for filtering CORS"},"enableJmx":{"kind":"parameter","displayName":"Enable Jmx","group":"monitoring","label":"monitoring","required":false,"type":"boolean","javaType":"boolean","deprecated":false,"autowired":false,"secret":false,"defaultValue":false,"description":"If this option is true, Jetty JMX support will be enabled for this endpoint. See Jetty JMX support for more details."},"sslContextParameters":{"kind":"parameter","displayName":"Ssl Context Parameters","group":"security","label":"security","required":false,"type":"object","javaType":"org.apache.camel.support.jsse.SSLContextParameters","deprecated":false,"autowired":false,"secret":false,"description":"To configure security using SSLContextParameters"}}}