01: /*
02: * ChainBuilder ESB
03: * Visual Enterprise Integration
04: *
05: * Copyright (C) 2006 Bostech Corporation
06: *
07: * This program is free software; you can redistribute it and/or modify it
08: * under the terms of the GNU General Public License as published by the
09: * Free Software Foundation; either version 2 of the License, or (at your option)
10: * any later version.
11: *
12: * This program is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14: * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15: * for more details.
16: *
17: * You should have received a copy of the GNU General Public License along with
18: * this program; if not, write to the Free Software Foundation, Inc.,
19: * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20: *
21: *
22: * $Id: TcpipExtension.java 6393 2007-03-27 17:28:47Z tvolle $
23: */
24: package com.bostechcorp.cbesb.runtime.component.tcpip.wsdl;
25:
26: import javax.wsdl.extensions.ExtensionRegistry;
27: import javax.xml.namespace.QName;
28:
29: import com.ibm.wsdl.Constants;
30:
31: public class TcpipExtension {
32:
33: public static final String NS_URI_TCPIP = "http://cbesb.bostechcorp.com/wsdl/tcpip/1.0";
34:
35: public static final String ELEM_CONFIG = "config";
36:
37: public static final QName Q_ELEM_TCPIP_ADDRESS = new QName(
38: NS_URI_TCPIP, ELEM_CONFIG);
39:
40: public static final QName Q_ELEM_TCPIP_BINDING = new QName(
41: NS_URI_TCPIP, Constants.ELEM_BINDING);
42:
43: public static final String PROTOCOL_HANDLER = "protocolHandler";
44: public static final String CONNECTION_MODE = "connectionMode";
45:
46: public static final String HOST = "host";
47: public static final String PORT = "port";
48: public static final String LOCAL_BIND_HOST = "localBindHost";
49: public static final String USE_SSL = "useSSL";
50:
51: public static final String SSL_PROTOCOL = "sslProtocol";
52: public static final String ALLOW_ANONYMOUS = "allowAnonymous";
53: public static final String USE_PRIVATE_KEY = "usePrivateKey";
54: public static final String KEY_STORE_FILE = "keyStoreFile";
55: public static final String KEY_STORE_PASSWORD = "keyStorePassword";
56: public static final String AUTHENTICATE_SERVER = "authenticateServer";
57: public static final String USE_DEFAULT_TRUST_STORE = "useDefaultTrustStore";
58: public static final String TRUST_STORE_FILE = "trustStoreFile";
59: public static final String LISTEN_PORT = "listenPort";
60: public static final String MAX_CLIENTS = "maxClients";
61: public static final String AUTHENTICATE_CLIENT = "authenticateClient";
62: public static final String RECORD_TYPE = "recordType";
63: public static final String CHARSET = "charset";
64:
65: public static void register(ExtensionRegistry registry) {
66:
67: registry.registerDeserializer(javax.wsdl.Port.class,
68: Q_ELEM_TCPIP_ADDRESS, new TcpipConfigDeserializer());
69: registry.mapExtensionTypes(javax.wsdl.Port.class,
70: Q_ELEM_TCPIP_ADDRESS, TcpipConfig.class);
71: registry.registerDeserializer(javax.wsdl.Binding.class,
72: Q_ELEM_TCPIP_BINDING, new TcpipBindingDeserializer());
73: registry.mapExtensionTypes(javax.wsdl.Binding.class,
74: Q_ELEM_TCPIP_BINDING, TcpipBinding.class);
75: }
76: }
|