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: FileInputExtension.java 9127 2007-09-19 01:53:59Z lzheng $
23: */
24: package com.bostechcorp.cbesb.runtime.component.file.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 FileInputExtension {
32:
33: public static final String NS_URI_FILE = "http://cbesb.bostechcorp.com/wsdl/file/1.0";
34:
35: public static final String ELEM_INPUT = "input";
36:
37: public static final QName Q_ELEM_FILE_INPUT = new QName(
38: NS_URI_FILE, ELEM_INPUT);
39: public static final QName Q_ELEM_FILE_BINDING = new QName(
40: NS_URI_FILE, Constants.ELEM_BINDING);
41:
42: public static final String SOURCE_DIR = "sourceDir";
43: public static final String STAGE_DIR = "stageDir";
44: public static final String ARCHIVE_DIR = "archiveDir";
45: public static final String HOLD_DIR = "holdDir";
46: public static final String SCAN_INTERVAL = "scanInterval";
47: public static final String SCHEDULE = "schedule";
48: public static final String SCHEDULER_SERVICE = "schedulerService";
49: public static final String SCHEDULER_ENDPOINT = "schedulerEndpoint";
50: public static final String HOLD = "hold";
51: public static final String FILE_PATTERN = "filePattern";
52: public static final String MATCH_MODE = "matchMode";
53: public static final String TWO_PASS = "twoPass";
54: public static final String TWO_PASS_INTERVAL = "twoPassInterval";
55: public static final String FILE_COMPLETE_ACTION = "fileCompleteAction";
56: public static final String RECORDS_PER_MESSAGE = "recordsPerMessage";
57: public static final String READ_STYLE = "readStyle";
58: public static final String RECORD_TYPE = "recordType";
59: public static final String CHARSET = "charset";
60: public static final String ARCHIVE_FILE_PATTERN = "archiveFilePattern";
61:
62: /*
63: * related to reply parameter
64: */
65: public static final String REPLY_DIR = "replyDir";
66: public static final String REPLY_CHARSET = "replyCharset";
67: public static final String REPLY_WRITE_STYLE = "replyWriteStyle";
68: public static final String REPLY_FILE_PATTERN = "replyFilePattern";
69:
70: public static final String WSDL2_NS = "http://www.w3.org/2004/08/wsdl/";
71:
72: public static void register(ExtensionRegistry registry) {
73: registry.registerDeserializer(javax.wsdl.Port.class,
74: Q_ELEM_FILE_INPUT, new FileInputDeserializer());
75: registry.mapExtensionTypes(javax.wsdl.Port.class,
76: Q_ELEM_FILE_INPUT, FileInput.class);
77: registry.registerDeserializer(javax.wsdl.Binding.class,
78: Q_ELEM_FILE_BINDING, new FileBindingDeserializer());
79: registry.mapExtensionTypes(javax.wsdl.Binding.class,
80: Q_ELEM_FILE_BINDING, FileBinding.class);
81: }
82:
83: }
|