This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
commit 9a2dc8128fae86040f76d78da8ec046a5b7a767c Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Tue Aug 11 07:31:54 2020 +0200 camel-atmosphere-websocket - Exclude options that are not in use --- .../websocket/WebsocketEndpointConfigurer.java | 65 ----- .../atmosphere/websocket/atmosphere-websocket.json | 15 +- .../main/docs/atmosphere-websocket-component.adoc | 15 +- .../atmosphere/websocket/WebsocketEndpoint.java | 6 +- .../AtmosphereWebsocketEndpointBuilderFactory.java | 311 --------------------- 5 files changed, 6 insertions(+), 406 deletions(-) diff --git a/components/camel-atmosphere-websocket/src/generated/java/org/apache/camel/component/atmosphere/websocket/WebsocketEndpointConfigurer.java b/components/camel-atmosphere-websocket/src/generated/java/org/apache/camel/component/atmosphere/websocket/WebsocketEndpointConfigurer.java index 32358aa..6ec52dc 100644 --- a/components/camel-atmosphere-websocket/src/generated/java/org/apache/camel/component/atmosphere/websocket/WebsocketEndpointConfigurer.java +++ b/components/camel-atmosphere-websocket/src/generated/java/org/apache/camel/component/atmosphere/websocket/WebsocketEndpointConfigurer.java @@ -19,38 +19,12 @@ public class WebsocketEndpointConfigurer extends ServletEndpointConfigurer imple public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) { WebsocketEndpoint target = (WebsocketEndpoint) obj; switch (ignoreCase ? name.toLowerCase() : name) { - case "authhost": - case "authHost": target.setAuthHost(property(camelContext, java.lang.String.class, value)); return true; case "bridgeendpoint": case "bridgeEndpoint": target.setBridgeEndpoint(property(camelContext, boolean.class, value)); return true; - case "connectionclose": - case "connectionClose": target.setConnectionClose(property(camelContext, boolean.class, value)); return true; - case "cookiehandler": - case "cookieHandler": target.setCookieHandler(property(camelContext, org.apache.camel.http.base.cookie.CookieHandler.class, value)); return true; - case "copyheaders": - case "copyHeaders": target.setCopyHeaders(property(camelContext, boolean.class, value)); return true; - case "httpmethod": - case "httpMethod": target.setHttpMethod(property(camelContext, org.apache.camel.http.common.HttpMethods.class, value)); return true; - case "ignoreresponsebody": - case "ignoreResponseBody": target.setIgnoreResponseBody(property(camelContext, boolean.class, value)); return true; case "lazystartproducer": case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true; - case "okstatuscoderange": - case "okStatusCodeRange": target.setOkStatusCodeRange(property(camelContext, java.lang.String.class, value)); return true; - case "preservehostheader": - case "preserveHostHeader": target.setPreserveHostHeader(property(camelContext, boolean.class, value)); return true; - case "proxyauthnthost": - case "proxyAuthNtHost": target.setProxyAuthNtHost(property(camelContext, java.lang.String.class, value)); return true; - case "proxyauthscheme": - case "proxyAuthScheme": target.setProxyAuthScheme(property(camelContext, java.lang.String.class, value)); return true; - case "proxyhost": - case "proxyHost": target.setProxyHost(property(camelContext, java.lang.String.class, value)); return true; - case "proxyport": - case "proxyPort": target.setProxyPort(property(camelContext, int.class, value)); return true; case "sendtoall": case "sendToAll": target.setSendToAll(property(camelContext, boolean.class, value)); return true; - case "throwexceptiononfailure": - case "throwExceptionOnFailure": target.setThrowExceptionOnFailure(property(camelContext, boolean.class, value)); return true; case "usestreaming": case "useStreaming": target.setUseStreaming(property(camelContext, boolean.class, value)); return true; default: return super.configure(camelContext, obj, name, value, ignoreCase); @@ -60,22 +34,9 @@ public class WebsocketEndpointConfigurer extends ServletEndpointConfigurer imple @Override public Map<String, Object> getAllOptions(Object target) { Map<String, Object> answer = super.getAllOptions(target); - answer.put("authHost", java.lang.String.class); answer.put("bridgeEndpoint", boolean.class); - answer.put("connectionClose", boolean.class); - answer.put("cookieHandler", org.apache.camel.http.base.cookie.CookieHandler.class); - answer.put("copyHeaders", boolean.class); - answer.put("httpMethod", org.apache.camel.http.common.HttpMethods.class); - answer.put("ignoreResponseBody", boolean.class); answer.put("lazyStartProducer", boolean.class); - answer.put("okStatusCodeRange", java.lang.String.class); - answer.put("preserveHostHeader", boolean.class); - answer.put("proxyAuthNtHost", java.lang.String.class); - answer.put("proxyAuthScheme", java.lang.String.class); - answer.put("proxyHost", java.lang.String.class); - answer.put("proxyPort", int.class); answer.put("sendToAll", boolean.class); - answer.put("throwExceptionOnFailure", boolean.class); answer.put("useStreaming", boolean.class); return answer; } @@ -84,38 +45,12 @@ public class WebsocketEndpointConfigurer extends ServletEndpointConfigurer imple public Object getOptionValue(Object obj, String name, boolean ignoreCase) { WebsocketEndpoint target = (WebsocketEndpoint) obj; switch (ignoreCase ? name.toLowerCase() : name) { - case "authhost": - case "authHost": return target.getAuthHost(); case "bridgeendpoint": case "bridgeEndpoint": return target.isBridgeEndpoint(); - case "connectionclose": - case "connectionClose": return target.isConnectionClose(); - case "cookiehandler": - case "cookieHandler": return target.getCookieHandler(); - case "copyheaders": - case "copyHeaders": return target.isCopyHeaders(); - case "httpmethod": - case "httpMethod": return target.getHttpMethod(); - case "ignoreresponsebody": - case "ignoreResponseBody": return target.isIgnoreResponseBody(); case "lazystartproducer": case "lazyStartProducer": return target.isLazyStartProducer(); - case "okstatuscoderange": - case "okStatusCodeRange": return target.getOkStatusCodeRange(); - case "preservehostheader": - case "preserveHostHeader": return target.isPreserveHostHeader(); - case "proxyauthnthost": - case "proxyAuthNtHost": return target.getProxyAuthNtHost(); - case "proxyauthscheme": - case "proxyAuthScheme": return target.getProxyAuthScheme(); - case "proxyhost": - case "proxyHost": return target.getProxyHost(); - case "proxyport": - case "proxyPort": return target.getProxyPort(); case "sendtoall": case "sendToAll": return target.isSendToAll(); - case "throwexceptiononfailure": - case "throwExceptionOnFailure": return target.isThrowExceptionOnFailure(); case "usestreaming": case "useStreaming": return target.isUseStreaming(); default: return super.getOptionValue(obj, name, ignoreCase); diff --git a/components/camel-atmosphere-websocket/src/generated/resources/org/apache/camel/component/atmosphere/websocket/atmosphere-websocket.json b/components/camel-atmosphere-websocket/src/generated/resources/org/apache/camel/component/atmosphere/websocket/atmosphere-websocket.json index 831bca8..8072c9d 100644 --- a/components/camel-atmosphere-websocket/src/generated/resources/org/apache/camel/component/atmosphere/websocket/atmosphere-websocket.json +++ b/components/camel-atmosphere-websocket/src/generated/resources/org/apache/camel/component/atmosphere/websocket/atmosphere-websocket.json @@ -58,24 +58,11 @@ "optionsEnabled": { "kind": "parameter", "displayName": "Options Enabled", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Specifies whether to enable HTTP OPTIONS for this Servlet consumer. By default OPTIONS is turned off." }, "traceEnabled": { "kind": "parameter", "displayName": "Trace Enabled", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Specifies whether to enable HTTP TRACE for this Servlet consumer. By default TRACE is turned off." }, "bridgeEndpoint": { "kind": "parameter", "displayName": "Bridge Endpoint", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "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 [...] - "connectionClose": { "kind": "parameter", "displayName": "Connection Close", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": "false", "description": "Specifies whether a Connection Close header must be added to HTTP Request. By default connectionClose is false." }, - "copyHeaders": { "kind": "parameter", "displayName": "Copy Headers", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": "true", "description": "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)." }, - "httpMethod": { "kind": "parameter", "displayName": "Http Method", "group": "producer", "label": "producer", "required": false, "type": "object", "javaType": "org.apache.camel.http.common.HttpMethods", "enum": [ "GET", "POST", "PUT", "DELETE", "HEAD", "OPTIONS", "TRACE", "PATCH" ], "deprecated": false, "secret": false, "description": "Configure the HTTP method to use. The HttpMethod header cannot override this option if set." }, - "ignoreResponseBody": { "kind": "parameter", "displayName": "Ignore Response Body", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "If this option is true, The http producer won't read response body and cache the input stream" }, "lazyStartProducer": { "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": 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 [...] - "preserveHostHeader": { "kind": "parameter", "displayName": "Preserve Host Header", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "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 t [...] - "throwExceptionOnFailure": { "kind": "parameter", "displayName": "Throw Exception On Failure", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": "true", "description": "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." }, - "cookieHandler": { "kind": "parameter", "displayName": "Cookie Handler", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "object", "javaType": "org.apache.camel.http.base.cookie.CookieHandler", "deprecated": false, "secret": false, "description": "Configure a cookie handler to maintain a HTTP session" }, - "okStatusCodeRange": { "kind": "parameter", "displayName": "Ok Status Code Range", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "defaultValue": "200-299", "description": "The status codes which are considered a success response. The values are inclusive. Multiple ranges can be defined, separated by comma, e.g. 200-204,209,301-304. Each range must be a single num [...] "basicPropertyBinding": { "kind": "parameter", "displayName": "Basic Property Binding", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Whether the endpoint should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities" }, "mapHttpMessageBody": { "kind": "parameter", "displayName": "Map Http Message Body", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": "true", "description": "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." }, "mapHttpMessageFormUrlEncodedBody": { "kind": "parameter", "displayName": "Map Http Message Form Url Encoded Body", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": "true", "description": "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." }, "mapHttpMessageHeaders": { "kind": "parameter", "displayName": "Map Http Message Headers", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": "true", "description": "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." }, - "synchronous": { "kind": "parameter", "displayName": "Synchronous", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": "false", "description": "Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported)." }, - "proxyAuthNtHost": { "kind": "parameter", "displayName": "Proxy Auth Nt Host", "group": "proxy", "label": "producer,proxy", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "Proxy authentication domain (workstation name) to use with NTML" }, - "proxyAuthScheme": { "kind": "parameter", "displayName": "Proxy Auth Scheme", "group": "proxy", "label": "producer,proxy", "required": false, "type": "string", "javaType": "java.lang.String", "enum": [ "http", "https" ], "deprecated": false, "secret": false, "description": "Proxy authentication scheme to use" }, - "proxyHost": { "kind": "parameter", "displayName": "Proxy Host", "group": "proxy", "label": "producer,proxy", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "Proxy hostname to use" }, - "proxyPort": { "kind": "parameter", "displayName": "Proxy Port", "group": "proxy", "label": "producer,proxy", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "secret": false, "description": "Proxy port to use" }, - "authHost": { "kind": "parameter", "displayName": "Auth Host", "group": "security", "label": "producer,security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "Authentication host to use with NTML" } + "synchronous": { "kind": "parameter", "displayName": "Synchronous", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": "false", "description": "Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported)." } } } diff --git a/components/camel-atmosphere-websocket/src/main/docs/atmosphere-websocket-component.adoc b/components/camel-atmosphere-websocket/src/main/docs/atmosphere-websocket-component.adoc index b44d4c6..bfe092c 100644 --- a/components/camel-atmosphere-websocket/src/main/docs/atmosphere-websocket-component.adoc +++ b/components/camel-atmosphere-websocket/src/main/docs/atmosphere-websocket-component.adoc @@ -86,7 +86,7 @@ with the following path and query parameters: |=== -=== Query Parameters (41 parameters): +=== Query Parameters (28 parameters): [width="100%",cols="2,5,^1,2",options="header"] @@ -114,25 +114,12 @@ with the following path and query parameters: | *optionsEnabled* (consumer) | Specifies whether to enable HTTP OPTIONS for this Servlet consumer. By default OPTIONS is turned off. | false | boolean | *traceEnabled* (consumer) | Specifies whether to enable HTTP TRACE for this Servlet consumer. By default TRACE is turned off. | false | boolean | *bridgeEndpoint* (producer) | 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. | false | boolean -| *connectionClose* (producer) | Specifies whether a Connection Close header must be added to HTTP Request. By default connectionClose is false. | false | boolean -| *copyHeaders* (producer) | 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). | true | boolean -| *httpMethod* (producer) | Configure the HTTP method to use. The HttpMethod header cannot override this option if set. The value can be one of: GET, POST, PUT, DELETE, HEAD, OPTIONS, TRACE, PATCH | | HttpMethods -| *ignoreResponseBody* (producer) | If this option is true, The http producer won't read response body and cache the input stream | false | boolean | *lazyStartProducer* (producer) | 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 [...] -| *preserveHostHeader* (producer) | 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 | false | boolean -| *throwExceptionOnFailure* (producer) | 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. | true | boolean -| *cookieHandler* (producer) | Configure a cookie handler to maintain a HTTP session | | CookieHandler -| *okStatusCodeRange* (producer) | The status codes which are considered a success response. The values are inclusive. Multiple ranges can be defined, separated by comma, e.g. 200-204,209,301-304. Each range must be a single number or from-to with the dash included. | 200-299 | String | *basicPropertyBinding* (advanced) | Whether the endpoint should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities | false | boolean | *mapHttpMessageBody* (advanced) | 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. | true | boolean | *mapHttpMessageFormUrlEncoded Body* (advanced) | 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. | true | boolean | *mapHttpMessageHeaders* (advanced) | 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. | true | boolean | *synchronous* (advanced) | Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). | false | boolean -| *proxyAuthNtHost* (proxy) | Proxy authentication domain (workstation name) to use with NTML | | String -| *proxyAuthScheme* (proxy) | Proxy authentication scheme to use. The value can be one of: http, https | | String -| *proxyHost* (proxy) | Proxy hostname to use | | String -| *proxyPort* (proxy) | Proxy port to use | | int -| *authHost* (security) | Authentication host to use with NTML | | String |=== // endpoint options: END diff --git a/components/camel-atmosphere-websocket/src/main/java/org/apache/camel/component/atmosphere/websocket/WebsocketEndpoint.java b/components/camel-atmosphere-websocket/src/main/java/org/apache/camel/component/atmosphere/websocket/WebsocketEndpoint.java index 8ca3ebc..100f07f 100644 --- a/components/camel-atmosphere-websocket/src/main/java/org/apache/camel/component/atmosphere/websocket/WebsocketEndpoint.java +++ b/components/camel-atmosphere-websocket/src/main/java/org/apache/camel/component/atmosphere/websocket/WebsocketEndpoint.java @@ -34,8 +34,10 @@ import org.apache.camel.spi.UriPath; */ @UriEndpoint(firstVersion = "2.14.0", scheme = "atmosphere-websocket", extendsScheme = "servlet", title = "Atmosphere Websocket", syntax = "atmosphere-websocket:servicePath", category = {Category.WEBSOCKET}) -@Metadata(excludeProperties = "httpUri,contextPath,authMethod,authMethodPriority,authUsername,authPassword,authDomain,authHost" - + "proxyAuthScheme,proxyAuthMethod,proxyAuthUsername,proxyAuthPassword,proxyAuthHost,proxyAuthPort,proxyAuthDomain") +@Metadata(excludeProperties = "httpUri,contextPath,cookieHandler,connectionClose,authMethod,authMethodPriority,authUsername,authPassword,authDomain,authHost," + + "copyHeaders,httpMethod,ignoreResponseBody,preserveHostHeader,throwExceptionOnFailure,okStatusCodeRange," + + "proxyAuthScheme,proxyAuthMethod,proxyAuthUsername,proxyAuthPassword,proxyAuthHost,proxyAuthPort,proxyAuthDomain," + + "proxyAuthNtHost,proxyAuthScheme,proxyHost,proxyPort") public class WebsocketEndpoint extends ServletEndpoint { private WebSocketStore store; diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AtmosphereWebsocketEndpointBuilderFactory.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AtmosphereWebsocketEndpointBuilderFactory.java index c7d9c2c..9548b0e 100644 --- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AtmosphereWebsocketEndpointBuilderFactory.java +++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AtmosphereWebsocketEndpointBuilderFactory.java @@ -1047,122 +1047,6 @@ public interface AtmosphereWebsocketEndpointBuilderFactory { return this; } /** - * Specifies whether a Connection Close header must be added to HTTP - * Request. By default connectionClose is false. - * - * The option is a: <code>boolean</code> type. - * - * Default: false - * Group: producer - */ - default AtmosphereWebsocketEndpointProducerBuilder connectionClose( - boolean connectionClose) { - doSetProperty("connectionClose", connectionClose); - return this; - } - /** - * Specifies whether a Connection Close header must be added to HTTP - * Request. By default connectionClose is false. - * - * The option will be converted to a <code>boolean</code> type. - * - * Default: false - * Group: producer - */ - default AtmosphereWebsocketEndpointProducerBuilder connectionClose( - String connectionClose) { - doSetProperty("connectionClose", connectionClose); - return this; - } - /** - * 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: <code>boolean</code> type. - * - * Default: true - * Group: producer - */ - default AtmosphereWebsocketEndpointProducerBuilder copyHeaders( - boolean copyHeaders) { - doSetProperty("copyHeaders", copyHeaders); - return this; - } - /** - * 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 <code>boolean</code> type. - * - * Default: true - * Group: producer - */ - default AtmosphereWebsocketEndpointProducerBuilder copyHeaders( - String copyHeaders) { - doSetProperty("copyHeaders", copyHeaders); - return this; - } - /** - * Configure the HTTP method to use. The HttpMethod header cannot - * override this option if set. - * - * The option is a: - * <code>org.apache.camel.http.common.HttpMethods</code> type. - * - * Group: producer - */ - default AtmosphereWebsocketEndpointProducerBuilder httpMethod( - HttpMethods httpMethod) { - doSetProperty("httpMethod", httpMethod); - return this; - } - /** - * Configure the HTTP method to use. The HttpMethod header cannot - * override this option if set. - * - * The option will be converted to a - * <code>org.apache.camel.http.common.HttpMethods</code> type. - * - * Group: producer - */ - default AtmosphereWebsocketEndpointProducerBuilder httpMethod( - String httpMethod) { - doSetProperty("httpMethod", httpMethod); - return this; - } - /** - * If this option is true, The http producer won't read response body - * and cache the input stream. - * - * The option is a: <code>boolean</code> type. - * - * Default: false - * Group: producer - */ - default AtmosphereWebsocketEndpointProducerBuilder ignoreResponseBody( - boolean ignoreResponseBody) { - doSetProperty("ignoreResponseBody", ignoreResponseBody); - return this; - } - /** - * 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 <code>boolean</code> type. - * - * Default: false - * Group: producer - */ - default AtmosphereWebsocketEndpointProducerBuilder ignoreResponseBody( - String ignoreResponseBody) { - doSetProperty("ignoreResponseBody", ignoreResponseBody); - return this; - } - /** * 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 @@ -1204,144 +1088,6 @@ public interface AtmosphereWebsocketEndpointBuilderFactory { doSetProperty("lazyStartProducer", lazyStartProducer); return this; } - /** - * 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: <code>boolean</code> type. - * - * Default: false - * Group: producer - */ - default AtmosphereWebsocketEndpointProducerBuilder preserveHostHeader( - boolean preserveHostHeader) { - doSetProperty("preserveHostHeader", preserveHostHeader); - return this; - } - /** - * 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 <code>boolean</code> type. - * - * Default: false - * Group: producer - */ - default AtmosphereWebsocketEndpointProducerBuilder preserveHostHeader( - String preserveHostHeader) { - doSetProperty("preserveHostHeader", preserveHostHeader); - return this; - } - /** - * 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: <code>boolean</code> type. - * - * Default: true - * Group: producer - */ - default AtmosphereWebsocketEndpointProducerBuilder throwExceptionOnFailure( - boolean throwExceptionOnFailure) { - doSetProperty("throwExceptionOnFailure", throwExceptionOnFailure); - return this; - } - /** - * 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 <code>boolean</code> type. - * - * Default: true - * Group: producer - */ - default AtmosphereWebsocketEndpointProducerBuilder throwExceptionOnFailure( - String throwExceptionOnFailure) { - doSetProperty("throwExceptionOnFailure", throwExceptionOnFailure); - return this; - } - /** - * Proxy authentication domain (workstation name) to use with NTML. - * - * The option is a: <code>java.lang.String</code> type. - * - * Group: proxy - */ - default AtmosphereWebsocketEndpointProducerBuilder proxyAuthNtHost( - String proxyAuthNtHost) { - doSetProperty("proxyAuthNtHost", proxyAuthNtHost); - return this; - } - /** - * Proxy authentication scheme to use. - * - * The option is a: <code>java.lang.String</code> type. - * - * Group: proxy - */ - default AtmosphereWebsocketEndpointProducerBuilder proxyAuthScheme( - String proxyAuthScheme) { - doSetProperty("proxyAuthScheme", proxyAuthScheme); - return this; - } - /** - * Proxy hostname to use. - * - * The option is a: <code>java.lang.String</code> type. - * - * Group: proxy - */ - default AtmosphereWebsocketEndpointProducerBuilder proxyHost( - String proxyHost) { - doSetProperty("proxyHost", proxyHost); - return this; - } - /** - * Proxy port to use. - * - * The option is a: <code>int</code> type. - * - * Group: proxy - */ - default AtmosphereWebsocketEndpointProducerBuilder proxyPort( - int proxyPort) { - doSetProperty("proxyPort", proxyPort); - return this; - } - /** - * Proxy port to use. - * - * The option will be converted to a <code>int</code> type. - * - * Group: proxy - */ - default AtmosphereWebsocketEndpointProducerBuilder proxyPort( - String proxyPort) { - doSetProperty("proxyPort", proxyPort); - return this; - } - /** - * Authentication host to use with NTML. - * - * The option is a: <code>java.lang.String</code> type. - * - * Group: security - */ - default AtmosphereWebsocketEndpointProducerBuilder authHost( - String authHost) { - doSetProperty("authHost", authHost); - return this; - } } /** @@ -1383,48 +1129,6 @@ public interface AtmosphereWebsocketEndpointBuilderFactory { return this; } /** - * Configure a cookie handler to maintain a HTTP session. - * - * The option is a: - * <code>org.apache.camel.http.base.cookie.CookieHandler</code> type. - * - * Group: producer (advanced) - */ - default AdvancedAtmosphereWebsocketEndpointProducerBuilder cookieHandler( - Object cookieHandler) { - doSetProperty("cookieHandler", cookieHandler); - return this; - } - /** - * Configure a cookie handler to maintain a HTTP session. - * - * The option will be converted to a - * <code>org.apache.camel.http.base.cookie.CookieHandler</code> type. - * - * Group: producer (advanced) - */ - default AdvancedAtmosphereWebsocketEndpointProducerBuilder cookieHandler( - String cookieHandler) { - doSetProperty("cookieHandler", cookieHandler); - return this; - } - /** - * The status codes which are considered a success response. The values - * are inclusive. Multiple ranges can be defined, separated by comma, - * e.g. 200-204,209,301-304. Each range must be a single number or - * from-to with the dash included. - * - * The option is a: <code>java.lang.String</code> type. - * - * Default: 200-299 - * Group: producer (advanced) - */ - default AdvancedAtmosphereWebsocketEndpointProducerBuilder okStatusCodeRange( - String okStatusCodeRange) { - doSetProperty("okStatusCodeRange", okStatusCodeRange); - return this; - } - /** * Whether the endpoint should use basic property binding (Camel 2.x) or * the newer property binding with additional capabilities. * @@ -1972,21 +1676,6 @@ public interface AtmosphereWebsocketEndpointBuilderFactory { } } - /** - * Proxy enum for <code>org.apache.camel.http.common.HttpMethods</code> - * enum. - */ - enum HttpMethods { - GET, - POST, - PUT, - DELETE, - HEAD, - OPTIONS, - TRACE, - PATCH; - } - public interface AtmosphereWebsocketBuilders { /** * Atmosphere Websocket (camel-atmosphere-websocket)