String determineBasePath(final Swagger swagger) { if (isNotEmpty(basePath)) { return basePath; } final String componentBasePath = component().getBasePath(); if (isNotEmpty(componentBasePath)) { return componentBasePath; } final String specificationBasePath = swagger.getBasePath(); if (isNotEmpty(specificationBasePath)) { return specificationBasePath; } final CamelContext camelContext = getCamelContext(); final RestConfiguration specificConfiguration = camelContext.getRestConfiguration(assignedComponentName, false); if (specificConfiguration != null && isNotEmpty(specificConfiguration.getContextPath())) { return specificConfiguration.getContextPath(); } final RestConfiguration restConfiguration = camelContext.getRestConfiguration("rest-swagger", true); final String restConfigurationBasePath = restConfiguration.getContextPath(); if (isNotEmpty(restConfigurationBasePath)) { return restConfigurationBasePath; } return RestSwaggerComponent.DEFAULT_BASE_PATH; }
final RestConfiguration specificRestConfiguration = camelContext.getRestConfiguration(assignedComponentName, false); final String specificConfigurationHost = hostFrom(specificRestConfiguration); final RestConfiguration componentRestConfiguration = camelContext.getRestConfiguration("rest-swagger", false); final String componentConfigurationHost = hostFrom(componentRestConfiguration); if (componentConfigurationHost != null) { final RestConfiguration globalRestConfiguration = camelContext.getRestConfiguration(); final String globalConfigurationHost = hostFrom(globalRestConfiguration); if (globalConfigurationHost != null) {
@Override protected void doStart() throws Exception { super.doStart(); RestConfiguration config = getCamelContext().getRestConfiguration("servlet", true); // configure additional options on jetty configuration if (config.getComponentProperties() != null && !config.getComponentProperties().isEmpty()) { setProperties(this, config.getComponentProperties()); } } }
@Override protected void doStart() throws Exception { super.doStart(); RestConfiguration config = getCamelContext().getRestConfiguration("netty-http", true); // configure additional options on netty-http configuration if (config.getComponentProperties() != null && !config.getComponentProperties().isEmpty()) { setProperties(this, config.getComponentProperties()); } }
@Override protected void doStart() throws Exception { super.doStart(); RestConfiguration config = getCamelContext().getRestConfiguration(getComponentName(), true); // configure additional options on undertow configuration if (config.getComponentProperties() != null && !config.getComponentProperties().isEmpty()) { setProperties(this, config.getComponentProperties()); } }
config = camelContext.getRestConfiguration("http", true);
config = camelContext.getRestConfiguration("servlet", true);
config = camelContext.getRestConfiguration(getComponentName(), true);
config = camelContext.getRestConfiguration(getComponentName(), true);
config = getCamelContext().getRestConfiguration("coap", true);
config = camelContext.getRestConfiguration("netty-http", true);