001: /*
002: * ChainBuilder ESB
003: * Visual Enterprise Integration
004: *
005: * Copyright (C) 2007 Bostech Corporation
006: *
007: * This program is free software; you can redistribute it and/or modify it
008: * under the terms of the GNU General Public License as published by the
009: * Free Software Foundation; either version 2 of the License, or (at your option)
010: * any later version.
011: *
012: * This program is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
014: * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
015: * for more details.
016: *
017: * You should have received a copy of the GNU General Public License along with
018: * this program; if not, write to the Free Software Foundation, Inc.,
019: * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
020: *
021: *
022: * $Id: HttpConfig.java 11318 2008-01-10 20:23:21Z mpreston $
023: */
024: package com.bostechcorp.cbesb.runtime.component.http.wsdl;
025:
026: import com.bostechcorp.cbesb.runtime.component.util.wsdl.BaseCommonAttribute;
027:
028: public class HttpConfig extends BaseCommonAttribute {
029:
030: private static final long serialVersionUID = 5018606898496724555L;
031:
032: protected String wsdlResource = null;
033:
034: public String sslProtocol = "TLS";
035: public boolean usePrivateKey = false;
036: public String keyStoreFile = null;
037: public String keyStorePassword = null;
038: public boolean authenticateServer = false;
039: public boolean useDefaultTrustStore = true;
040: public String trustStoreFile = null;
041: public String trustStorePassword = null;
042: public boolean authenticateClient = false;
043: public boolean allowAnonymous = false;
044:
045: public String marshaller = null;
046: public int timeout = -1;
047: public String attachmentMode = "none";
048:
049: public String targetService = null;
050: public String targetPort = null;
051: public String targetOperation = null;
052:
053: protected String authMode = null;
054: protected String authUser = null;
055: protected String authPassword = null;
056:
057: public String proxyHost;
058: public String proxyPort;
059: public String proxyUser;
060: public String proxyPassword;
061:
062: /**
063: * @return the wsdlResource
064: */
065: public String getWsdlResource() {
066: return wsdlResource;
067: }
068:
069: /**
070: * @param wsdlResource the wsdlResource to set
071: */
072: public void setWsdlResource(String wsdlResource) {
073: this .wsdlResource = wsdlResource;
074: }
075:
076: /**
077: * @return the authenticateServer
078: */
079: public boolean isAuthenticateServer() {
080: return authenticateServer;
081: }
082:
083: /**
084: * @param authenticateServer the authenticateServer to set
085: */
086: public void setAuthenticateServer(boolean authenticateServer) {
087: this .authenticateServer = authenticateServer;
088: }
089:
090: /**
091: * @return the keyStoreFile
092: */
093: public String getKeyStoreFile() {
094: return keyStoreFile;
095: }
096:
097: /**
098: * @param keyStoreFile the keyStoreFile to set
099: */
100: public void setKeyStoreFile(String keyStoreFile) {
101: this .keyStoreFile = keyStoreFile;
102: }
103:
104: /**
105: * @return the keyStorePassword
106: */
107: public String getKeyStorePassword() {
108: return keyStorePassword;
109: }
110:
111: /**
112: * @param keyStorePassword the keyStorePassword to set
113: */
114: public void setKeyStorePassword(String keyStorePassword) {
115: this .keyStorePassword = keyStorePassword;
116: }
117:
118: /**
119: * @return the sslProtocol
120: */
121: public String getSslProtocol() {
122: return sslProtocol;
123: }
124:
125: /**
126: * @param sslProtocol the sslProtocol to set
127: */
128: public void setSslProtocol(String sslProtocol) {
129: this .sslProtocol = sslProtocol;
130: }
131:
132: /**
133: * @return the trustStoreFile
134: */
135: public String getTrustStoreFile() {
136: return trustStoreFile;
137: }
138:
139: /**
140: * @param trustStoreFile the trustStoreFile to set
141: */
142: public void setTrustStoreFile(String trustStoreFile) {
143: this .trustStoreFile = trustStoreFile;
144: }
145:
146: /**
147: * @return the useDefaultTrustStore
148: */
149: public boolean isUseDefaultTrustStore() {
150: return useDefaultTrustStore;
151: }
152:
153: /**
154: * @param useDefaultTrustStore the useDefaultTrustStore to set
155: */
156: public void setUseDefaultTrustStore(boolean useDefaultTrustStore) {
157: this .useDefaultTrustStore = useDefaultTrustStore;
158: }
159:
160: /**
161: * @return the trustStorePassword
162: */
163: public String getTrustStorePassword() {
164: return trustStorePassword;
165: }
166:
167: /**
168: * @param trustStorePassword the trustStorePassword to set
169: */
170: public void setTrustStorePassword(String trustStorePassword) {
171: this .trustStorePassword = trustStorePassword;
172: }
173:
174: /**
175: * @return the authenticateClient
176: */
177: public boolean isAuthenticateClient() {
178: return authenticateClient;
179: }
180:
181: /**
182: * @param authenticateClient the authenticateClient to set
183: */
184: public void setAuthenticateClient(boolean authenticateClient) {
185: this .authenticateClient = authenticateClient;
186: }
187:
188: /**
189: * @return the attachmentMode
190: */
191: public String getAttachmentMode() {
192: return attachmentMode;
193: }
194:
195: /**
196: * @param attachmentMode the attachmentMode to set
197: */
198: public void setAttachmentMode(String attachmentMode) {
199: this .attachmentMode = attachmentMode;
200: }
201:
202: /**
203: * @return the marshaller
204: */
205: public String getMarshaller() {
206: return marshaller;
207: }
208:
209: /**
210: * @param marshaller the marshaller to set
211: */
212: public void setMarshaller(String marshaller) {
213: this .marshaller = marshaller;
214: }
215:
216: /**
217: * @return the proxyHost
218: */
219: public String getProxyHost() {
220: return proxyHost;
221: }
222:
223: /**
224: * @param proxyHost the proxyHost to set
225: */
226: public void setProxyHost(String proxyHost) {
227: this .proxyHost = proxyHost;
228: }
229:
230: /**
231: * @return the proxyPassword
232: */
233: public String getProxyPassword() {
234: return proxyPassword;
235: }
236:
237: /**
238: * @param proxyPassword the proxyPassword to set
239: */
240: public void setProxyPassword(String proxyPassword) {
241: this .proxyPassword = proxyPassword;
242: }
243:
244: /**
245: * @return the proxyPort
246: */
247: public String getProxyPort() {
248: return proxyPort;
249: }
250:
251: /**
252: * @param proxyPort the proxyPort to set
253: */
254: public void setProxyPort(String proxyPort) {
255: this .proxyPort = proxyPort;
256: }
257:
258: /**
259: * @return the proxyUser
260: */
261: public String getProxyUser() {
262: return proxyUser;
263: }
264:
265: /**
266: * @param proxyUser the proxyUser to set
267: */
268: public void setProxyUser(String proxyUser) {
269: this .proxyUser = proxyUser;
270: }
271:
272: /**
273: * @return the timeout
274: */
275: public int getTimeout() {
276: return timeout;
277: }
278:
279: /**
280: * @param timeout the timeout to set
281: */
282: public void setTimeout(int timeout) {
283: this .timeout = timeout;
284: }
285:
286: /**
287: * @return the allowAnonymous
288: */
289: public boolean isAllowAnonymous() {
290: return allowAnonymous;
291: }
292:
293: /**
294: * @param allowAnonymous the allowAnonymous to set
295: */
296: public void setAllowAnonymous(boolean allowAnonymous) {
297: this .allowAnonymous = allowAnonymous;
298: }
299:
300: /**
301: * @return the authMode
302: */
303: public String getAuthMode() {
304: return authMode;
305: }
306:
307: /**
308: * @param authMode the authMode to set
309: */
310: public void setAuthMode(String authMode) {
311: this .authMode = authMode;
312: }
313:
314: /**
315: * @return the authPassword
316: */
317: public String getAuthPassword() {
318: return authPassword;
319: }
320:
321: /**
322: * @param authPassword the authPassword to set
323: */
324: public void setAuthPassword(String authPassword) {
325: this .authPassword = authPassword;
326: }
327:
328: /**
329: * @return the authUser
330: */
331: public String getAuthUser() {
332: return authUser;
333: }
334:
335: /**
336: * @param authUser the authUser to set
337: */
338: public void setAuthUser(String authUser) {
339: this .authUser = authUser;
340: }
341:
342: /**
343: * @return the targetOperation
344: */
345: public String getTargetOperation() {
346: return targetOperation;
347: }
348:
349: /**
350: * @param targetOperation the targetOperation to set
351: */
352: public void setTargetOperation(String targetOperation) {
353: this .targetOperation = targetOperation;
354: }
355:
356: /**
357: * @return the targetPort
358: */
359: public String getTargetPort() {
360: return targetPort;
361: }
362:
363: /**
364: * @param targetPort the targetPort to set
365: */
366: public void setTargetPort(String targetPort) {
367: this .targetPort = targetPort;
368: }
369:
370: /**
371: * @return the targetService
372: */
373: public String getTargetService() {
374: return targetService;
375: }
376:
377: /**
378: * @param targetService the targetService to set
379: */
380: public void setTargetService(String targetService) {
381: this .targetService = targetService;
382: }
383:
384: public boolean isUsePrivateKey() {
385: return usePrivateKey;
386: }
387:
388: public void setUsePrivateKey(boolean usePrivateKey) {
389: this.usePrivateKey = usePrivateKey;
390: }
391:
392: }
|