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
08: * it under the terms of the GNU General Public License as published by
09: * the Free Software Foundation; either version 2 of the License, or
10: * (at your option) 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
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15: * General Public License for more details.
16: *
17: * You should have received a copy of the GNU General Public License
18: * along with this program; if not, write to the Free Software
19: * Foundation, Inc.,59 Temple Place, Suite 330, Boston, MA 02111-1307
20: * USA
21: *
22: *
23: * $Id: XsltExtension.java 3547 2006-12-09 06:54:29Z lzheng $
24: */
25: package com.bostechcorp.cbesb.runtime.component.xslt.wsdl;
26:
27: import javax.wsdl.extensions.ExtensionRegistry;
28: import javax.xml.namespace.QName;
29:
30: import com.ibm.wsdl.Constants;
31:
32: /**
33: * @author j.zhang
34: * @version 1.0.0
35: */
36: public class XsltExtension {
37:
38: public static final String NS_URI_XSLT = "http://cbesb.bostechcorp.com/wsdl/xslt/1.0";
39:
40: public static final String ELEM_XSLT = "config";
41:
42: public static final QName Q_ELEM_XSLT = new QName(NS_URI_XSLT,
43: ELEM_XSLT);
44: public static final QName Q_ELEM_XSLT_BINDING = new QName(
45: NS_URI_XSLT, Constants.ELEM_BINDING);
46:
47: public static final String XSL_LOCATION = "xslLocation";
48:
49: public static final String WSDL2_NS = "http://www.w3.org/2004/08/wsdl/";
50:
51: public static void register(ExtensionRegistry registry) {
52: registry.registerDeserializer(javax.wsdl.Port.class,
53: Q_ELEM_XSLT, new XsltConfigDeserializer());
54: registry.mapExtensionTypes(javax.wsdl.Port.class, Q_ELEM_XSLT,
55: XsltConfig.class);
56:
57: registry.registerDeserializer(javax.wsdl.Binding.class,
58: Q_ELEM_XSLT_BINDING, new XsltBindingDeserializer());
59: registry.mapExtensionTypes(javax.wsdl.Binding.class,
60: Q_ELEM_XSLT_BINDING, XsltBinding.class);
61: }
62: }
|