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: * $Id: EmailOutputExtension.java 7178 2007-04-29 05:43:08Z jzhang $
23: *
24: */
25: package com.bostechcorp.cbesb.runtime.component.email.wsdl;
26:
27: import javax.wsdl.extensions.ExtensionRegistry;
28: import javax.xml.namespace.QName;
29:
30: import com.bostechcorp.cbesb.runtime.component.email.wsdl.EmailBinding;
31: import com.bostechcorp.cbesb.runtime.component.email.wsdl.EmailBindingDeserializer;
32: import com.bostechcorp.cbesb.runtime.component.email.wsdl.EmailOutput;
33: import com.bostechcorp.cbesb.runtime.component.email.wsdl.EmailOutputDeserializer;
34: import com.ibm.wsdl.Constants;
35:
36: /**
37: *
38: */
39: public class EmailOutputExtension {
40:
41: public static final String NS_URI_EMAIL = "http://cbesb.bostechcorp.com/wsdl/email/1.0";
42:
43: public static final String ELEM_OUTPUT = "provider";
44:
45: public static final QName Q_ELEM_EMAIL_OUTPUT = new QName(
46: NS_URI_EMAIL, ELEM_OUTPUT);
47: public static final QName Q_ELEM_EMAIL_BINDING = new QName(
48: NS_URI_EMAIL, Constants.ELEM_BINDING);
49:
50: public static final String CHARSET = "charset";
51: public static final String HOST = "host";
52: public static final String PORT = "port";
53: public static final String USER = "user";
54: public static final String PASSWORD = "password";
55: public static final String FROM = "from";
56: public static final String TO = "to";
57: public static final String CC = "cc";
58: public static final String BCC = "bcc";
59: public static final String SUBJECT = "subject";
60: public static final String USE_SSL = "useSSL";
61:
62: public static final String WSDL2_NS = "http://www.w3.org/2004/08/wsdl/";
63:
64: public static void register(ExtensionRegistry registry) {
65: registry.registerDeserializer(javax.wsdl.Port.class,
66: Q_ELEM_EMAIL_OUTPUT, new EmailOutputDeserializer());
67: registry.mapExtensionTypes(javax.wsdl.Port.class,
68: Q_ELEM_EMAIL_OUTPUT, EmailOutput.class);
69: registry.registerDeserializer(javax.wsdl.Binding.class,
70: Q_ELEM_EMAIL_BINDING, new EmailBindingDeserializer());
71: registry.mapExtensionTypes(javax.wsdl.Binding.class,
72: Q_ELEM_EMAIL_BINDING, EmailBinding.class);
73: }
74: }
|