01: /*
02: * ChainBuilder ESB
03: * Visual Enterprise Integration
04: *
05: * Copyright (C) 2007 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: HttpConfigExtension.java 11318 2008-01-10 20:23:21Z mpreston $
23: */
24: package com.bostechcorp.cbesb.runtime.component.http.wsdl;
25:
26: import javax.wsdl.extensions.ExtensionRegistry;
27: import javax.xml.namespace.QName;
28:
29: public class HttpConfigExtension {
30:
31: public static final String NS_URI_CBHTTP = "http://cbesb.bostechcorp.com/wsdl/http/1.0";
32:
33: public static final String ELEM_ENDPOINT = "config";
34:
35: public static final QName Q_ELEM_CBHTTP_ENDPOINT = new QName(
36: NS_URI_CBHTTP, ELEM_ENDPOINT);
37:
38: public static final String ROLE = "role";
39: public static final String ROLE_CONSUMER = "consumer";
40: public static final String ROLE_PROVIDER = "provider";
41:
42: public static final String DEFAULT_MEP = "defaultMep";
43: public static final String DEFAULT_MEP_IN_ONLY = "in-only";
44: public static final String DEFAULT_MEP_ROBUST_IN_ONLY = "robust-in-only";
45: public static final String DEFAULT_MEP_IN_OUT = "in-out";
46:
47: public static final String DEFAULT_OPERATION = "defaultOperation";
48:
49: public static final String WSDL_RESOURCE = "wsdlResource";
50:
51: public static final String AUTH_MODE = "authMode";
52: public static final String AUTH_USER = "authUser";
53: public static final String AUTH_PASSWORD = "authPassword";
54:
55: public static final String SSL_PROTOCOL = "sslProtocol";
56: public static final String USE_PRIVATE_KEY = "usePrivateKey";
57: public static final String KEY_STORE_FILE = "keyStoreFile";
58: public static final String KEY_STORE_PASSWORD = "keyStorePassword";
59: public static final String USE_DEFAULT_TRUST_STORE = "useDefaultTrustStore";
60: public static final String TRUST_STORE_FILE = "trustStoreFile";
61: public static final String TRUST_STORE_PASSWORD = "trustStorePassword";
62: public static final String AUTHENTICATE_CLIENT = "authenticateClient";
63: public static final String AUTHENTICATE_SERVER = "authenticateServer";
64: public static final String ALLOW_ANONYMOUS = "allowAnonymous";
65:
66: public static final String MARSHALLER = "marshaller";
67: public static final String TIMEOUT = "timeout";
68: public static final String ATTACHMENT_MODE = "attachmentMode";
69:
70: public static final String TARGET_SERVICE = "service";
71: public static final String TARGET_PORT = "port";
72: public static final String TARGET_OPERATION = "operation";
73:
74: public static final String PROXY_HOST = "proxyHost";
75: public static final String PROXY_PORT = "proxyPort";
76: public static final String PROXY_USER = "proxyUser";
77: public static final String PROXY_PASSWORD = "proxyPassword";
78:
79: public static final String WSDL2_NS = "http://www.w3.org/2004/08/wsdl/";
80:
81: public static void register(ExtensionRegistry registry) {
82: registry.registerSerializer(javax.wsdl.Port.class,
83: Q_ELEM_CBHTTP_ENDPOINT, new HttpConfigSerializer());
84: registry.registerDeserializer(javax.wsdl.Port.class,
85: Q_ELEM_CBHTTP_ENDPOINT, new HttpConfigDeserializer());
86: registry.mapExtensionTypes(javax.wsdl.Port.class,
87: Q_ELEM_CBHTTP_ENDPOINT, HttpConfig.class);
88: }
89:
90: }
|