org.apache.camel.component.atmosphere.websocket.WebsocketEndpointConfigurer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of camel-atmosphere-websocket Show documentation
Show all versions of camel-atmosphere-websocket Show documentation
Camel Atmosphere WebSocket Servlet
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.atmosphere.websocket;
import java.util.Map;
import org.apache.camel.CamelContext;
import org.apache.camel.spi.GeneratedPropertyConfigurer;
import org.apache.camel.spi.PropertyConfigurerGetter;
import org.apache.camel.util.CaseInsensitiveMap;
import org.apache.camel.component.servlet.ServletEndpointConfigurer;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@SuppressWarnings("unchecked")
public class WebsocketEndpointConfigurer extends ServletEndpointConfigurer implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
@Override
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 "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);
}
}
@Override
public Map getAllOptions(Object target) {
Map 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("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;
}
@Override
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 "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);
}
}
}