/platforms/spring-boot/components-starter/camel-docker-starter/src/main/java/org/apache/camel/component/docker/springboot/DockerComponentConfiguration.java

https://gitlab.com/matticala/apache-camel · Java · 285 lines · 157 code · 44 blank · 84 comment · 0 complexity · faa8505d735d2b943076d4b35e045bc7 MD5 · raw file

  1. /**
  2. * Licensed to the Apache Software Foundation (ASF) under one or more
  3. * contributor license agreements. See the NOTICE file distributed with
  4. * this work for additional information regarding copyright ownership.
  5. * The ASF licenses this file to You under the Apache License, Version 2.0
  6. * (the "License"); you may not use this file except in compliance with
  7. * the License. You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. */
  17. package org.apache.camel.component.docker.springboot;
  18. import java.util.Map;
  19. import javax.annotation.Generated;
  20. import org.apache.camel.component.docker.DockerOperation;
  21. import org.apache.camel.spring.boot.ComponentConfigurationPropertiesCommon;
  22. import org.springframework.boot.context.properties.ConfigurationProperties;
  23. /**
  24. * The docker component is used for managing Docker containers.
  25. *
  26. * Generated by camel-package-maven-plugin - do not edit this file!
  27. */
  28. @Generated("org.apache.camel.maven.packaging.SpringBootAutoConfigurationMojo")
  29. @ConfigurationProperties(prefix = "camel.component.docker")
  30. public class DockerComponentConfiguration
  31. extends
  32. ComponentConfigurationPropertiesCommon {
  33. /**
  34. * To use the shared docker configuration
  35. */
  36. private DockerConfigurationNestedConfiguration configuration;
  37. /**
  38. * Whether the component should resolve property placeholders on itself when
  39. * starting. Only properties which are of String type can use property
  40. * placeholders.
  41. */
  42. private Boolean resolvePropertyPlaceholders = true;
  43. public DockerConfigurationNestedConfiguration getConfiguration() {
  44. return configuration;
  45. }
  46. public void setConfiguration(
  47. DockerConfigurationNestedConfiguration configuration) {
  48. this.configuration = configuration;
  49. }
  50. public Boolean getResolvePropertyPlaceholders() {
  51. return resolvePropertyPlaceholders;
  52. }
  53. public void setResolvePropertyPlaceholders(
  54. Boolean resolvePropertyPlaceholders) {
  55. this.resolvePropertyPlaceholders = resolvePropertyPlaceholders;
  56. }
  57. public static class DockerConfigurationNestedConfiguration {
  58. public static final Class CAMEL_NESTED_CLASS = org.apache.camel.component.docker.DockerConfiguration.class;
  59. /**
  60. * Docker host
  61. */
  62. private String host = "localhost";
  63. /**
  64. * Docker port
  65. */
  66. private Integer port = 2375;
  67. /**
  68. * User name to authenticate with
  69. */
  70. private String username;
  71. /**
  72. * Password to authenticate with
  73. */
  74. private String password;
  75. /**
  76. * Email address associated with the user
  77. */
  78. private String email;
  79. /**
  80. * Server address for docker registry.
  81. */
  82. private String serverAddress = "https://index.docker.io/v1/";
  83. /**
  84. * Request timeout for response (in seconds)
  85. */
  86. private Integer requestTimeout;
  87. /**
  88. * Use HTTPS communication
  89. */
  90. private Boolean secure = false;
  91. /**
  92. * Location containing the SSL certificate chain
  93. */
  94. private String certPath;
  95. /**
  96. * Maximum total connections
  97. */
  98. private Integer maxTotalConnections = 100;
  99. /**
  100. * Maximum route connections
  101. */
  102. private Integer maxPerRouteConnections = 100;
  103. /**
  104. * Whether to use logging filter
  105. */
  106. private Boolean loggingFilter = false;
  107. /**
  108. * Whether to follow redirect filter
  109. */
  110. private Boolean followRedirectFilter = false;
  111. /**
  112. * Additional configuration parameters as key/value pairs
  113. */
  114. private Map parameters;
  115. /**
  116. * Which operation to use
  117. */
  118. private DockerOperation operation;
  119. /**
  120. * Check TLS
  121. */
  122. private Boolean tlsVerify = false;
  123. /**
  124. * Socket connection mode
  125. */
  126. private Boolean socket = true;
  127. /**
  128. * The fully qualified class name of the DockerCmdExecFactory
  129. * implementation to use
  130. */
  131. private String cmdExecFactory = "com.github.dockerjava.netty.NettyDockerCmdExecFactory";
  132. public String getHost() {
  133. return host;
  134. }
  135. public void setHost(String host) {
  136. this.host = host;
  137. }
  138. public Integer getPort() {
  139. return port;
  140. }
  141. public void setPort(Integer port) {
  142. this.port = port;
  143. }
  144. public String getUsername() {
  145. return username;
  146. }
  147. public void setUsername(String username) {
  148. this.username = username;
  149. }
  150. public String getPassword() {
  151. return password;
  152. }
  153. public void setPassword(String password) {
  154. this.password = password;
  155. }
  156. public String getEmail() {
  157. return email;
  158. }
  159. public void setEmail(String email) {
  160. this.email = email;
  161. }
  162. public String getServerAddress() {
  163. return serverAddress;
  164. }
  165. public void setServerAddress(String serverAddress) {
  166. this.serverAddress = serverAddress;
  167. }
  168. public Integer getRequestTimeout() {
  169. return requestTimeout;
  170. }
  171. public void setRequestTimeout(Integer requestTimeout) {
  172. this.requestTimeout = requestTimeout;
  173. }
  174. public Boolean getSecure() {
  175. return secure;
  176. }
  177. public void setSecure(Boolean secure) {
  178. this.secure = secure;
  179. }
  180. public String getCertPath() {
  181. return certPath;
  182. }
  183. public void setCertPath(String certPath) {
  184. this.certPath = certPath;
  185. }
  186. public Integer getMaxTotalConnections() {
  187. return maxTotalConnections;
  188. }
  189. public void setMaxTotalConnections(Integer maxTotalConnections) {
  190. this.maxTotalConnections = maxTotalConnections;
  191. }
  192. public Integer getMaxPerRouteConnections() {
  193. return maxPerRouteConnections;
  194. }
  195. public void setMaxPerRouteConnections(Integer maxPerRouteConnections) {
  196. this.maxPerRouteConnections = maxPerRouteConnections;
  197. }
  198. public Boolean getLoggingFilter() {
  199. return loggingFilter;
  200. }
  201. public void setLoggingFilter(Boolean loggingFilter) {
  202. this.loggingFilter = loggingFilter;
  203. }
  204. public Boolean getFollowRedirectFilter() {
  205. return followRedirectFilter;
  206. }
  207. public void setFollowRedirectFilter(Boolean followRedirectFilter) {
  208. this.followRedirectFilter = followRedirectFilter;
  209. }
  210. public Map getParameters() {
  211. return parameters;
  212. }
  213. public void setParameters(Map parameters) {
  214. this.parameters = parameters;
  215. }
  216. public DockerOperation getOperation() {
  217. return operation;
  218. }
  219. public void setOperation(DockerOperation operation) {
  220. this.operation = operation;
  221. }
  222. public Boolean getTlsVerify() {
  223. return tlsVerify;
  224. }
  225. public void setTlsVerify(Boolean tlsVerify) {
  226. this.tlsVerify = tlsVerify;
  227. }
  228. public Boolean getSocket() {
  229. return socket;
  230. }
  231. public void setSocket(Boolean socket) {
  232. this.socket = socket;
  233. }
  234. public String getCmdExecFactory() {
  235. return cmdExecFactory;
  236. }
  237. public void setCmdExecFactory(String cmdExecFactory) {
  238. this.cmdExecFactory = cmdExecFactory;
  239. }
  240. }
  241. }