001: /*
002: * ChainBuilder ESB
003: * Visual Enterprise Integration
004: *
005: * Copyright (C) 2006 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: TcpipConfig.java 6901 2007-04-18 18:54:24Z tvolle $
023: */
024: package com.bostechcorp.cbesb.runtime.component.tcpip.wsdl;
025:
026: import com.bostechcorp.cbesb.runtime.component.util.wsdl.BaseCommonAttribute;
027:
028: /**
029: * A JMS extensibily element used to specify the parameters needed to retrieve
030: * the JMS ConnectionFactory and Destination to use.
031: *
032: */
033: public class TcpipConfig extends BaseCommonAttribute /*implements ExtensibilityElement, Serializable*/{
034: public static short CONNECTION_MODE_SERVER = 0;
035: public static short CONNECTION_MODE_CLIENT = 1;
036:
037: /**
038: * Generated serial version UID
039: */
040: private static final long serialVersionUID = 1L;
041:
042: public String protocolHandler;
043: public short connectionMode;
044:
045: public String host;
046: public int port;
047: public String localBindHost;
048: public boolean useSsl;
049:
050: public String sslProtocol;
051: public boolean allowAnonymous;
052: public boolean usePrivateKey;
053: public String keyStoreFile;
054: public String keyStorePassword;
055: public boolean authenticateServer;
056: public boolean useDefaultTrustStore;
057: public String trustStoreFile;
058: public int listenPort;
059: public int maxClients;
060: public boolean authenticateClient;
061: public String recordType;
062: public String charset;
063:
064: public boolean isAllowAnonymous() {
065: return allowAnonymous;
066: }
067:
068: public void setAllowAnonymous(boolean allowAnonymous) {
069: this .allowAnonymous = allowAnonymous;
070: }
071:
072: public boolean isAuthenticateClient() {
073: return authenticateClient;
074: }
075:
076: public void setAuthenticateClient(boolean authenticateClient) {
077: this .authenticateClient = authenticateClient;
078: }
079:
080: public boolean isAuthenticateServer() {
081: return authenticateServer;
082: }
083:
084: public void setAuthenticateServer(boolean authenticateServer) {
085: this .authenticateServer = authenticateServer;
086: }
087:
088: public String getCharset() {
089: return charset;
090: }
091:
092: public void setCharset(String charset) {
093: this .charset = charset;
094: }
095:
096: public short getConnectionMode() {
097: return connectionMode;
098: }
099:
100: public void setConnectionMode(short connectionMode) {
101: this .connectionMode = connectionMode;
102: }
103:
104: public String getHost() {
105: return host;
106: }
107:
108: public void setHost(String host) {
109: this .host = host;
110: }
111:
112: public String getKeyStoreFile() {
113: return keyStoreFile;
114: }
115:
116: public void setKeyStoreFile(String keyStoreFile) {
117: this .keyStoreFile = keyStoreFile;
118: }
119:
120: public String getKeyStorePassword() {
121: return keyStorePassword;
122: }
123:
124: public void setKeyStorePassword(String keyStorePassword) {
125: this .keyStorePassword = keyStorePassword;
126: }
127:
128: public int getListenPort() {
129: return listenPort;
130: }
131:
132: public void setListenPort(int listenPort) {
133: this .listenPort = listenPort;
134: }
135:
136: public String getLocalBindHost() {
137: return localBindHost;
138: }
139:
140: public void setLocalBindHost(String localBindHost) {
141: this .localBindHost = localBindHost;
142: }
143:
144: public int getMaxClients() {
145: return maxClients;
146: }
147:
148: public void setMaxClients(int maxClients) {
149: this .maxClients = maxClients;
150: }
151:
152: public int getPort() {
153: return port;
154: }
155:
156: public void setPort(int port) {
157: this .port = port;
158: }
159:
160: public String getProtocolHandler() {
161: return protocolHandler;
162: }
163:
164: public void setProtocolHandler(String protocolHandler) {
165: this .protocolHandler = protocolHandler;
166: }
167:
168: public String getRecordType() {
169: return recordType;
170: }
171:
172: public void setRecordType(String recordType) {
173: this .recordType = recordType;
174: }
175:
176: public String getSslProtocol() {
177: return sslProtocol;
178: }
179:
180: public void setSslProtocol(String sslProtocol) {
181: this .sslProtocol = sslProtocol;
182: }
183:
184: public String getTrustStoreFile() {
185: return trustStoreFile;
186: }
187:
188: public void setTrustStoreFile(String trustStoreFile) {
189: this .trustStoreFile = trustStoreFile;
190: }
191:
192: public boolean isUseDefaultTrustStore() {
193: return useDefaultTrustStore;
194: }
195:
196: public void setUseDefaultTrustStore(boolean useDefaultTrustStore) {
197: this .useDefaultTrustStore = useDefaultTrustStore;
198: }
199:
200: public boolean isUsePrivateKey() {
201: return usePrivateKey;
202: }
203:
204: public void setUsePrivateKey(boolean usePrivateKey) {
205: this .usePrivateKey = usePrivateKey;
206: }
207:
208: public boolean isUseSsl() {
209: return useSsl;
210: }
211:
212: public void setUseSsl(boolean useSsl) {
213: this .useSsl = useSsl;
214: }
215:
216: public String toString() {
217: return "TcpipConfig[" + super .toString() + ", "
218: + "protocolHandler=" + protocolHandler + ", "
219: + "connectionMode=" + connectionMode + ", " + "host="
220: + host + ", " + "port=" + port + ", "
221: + "localBindHost=" + localBindHost + ", "
222: + "listenPort=" + listenPort + ", " + "maxClients="
223: + maxClients + ", " + "useSsl=" + useSsl + ", "
224: + "sslProtocol=" + sslProtocol + ", "
225: + "allowAnonymous=" + allowAnonymous + ","
226: + "usePrivateKey=" + usePrivateKey + ", "
227: + "keyStoreFile=" + keyStoreFile + ", "
228: + "keyStorePassword=" + keyStorePassword + ", "
229: + "authenticateServer=" + authenticateServer + ", "
230: + "authenticateClient=" + authenticateClient + ", "
231: + "useDefaultTrustStore=" + useDefaultTrustStore + ", "
232: + "trustStoreFile=" + trustStoreFile + ", "
233: + "recordType=" + recordType + ", " + "charset="
234: + charset + "]";
235: }
236: }
|