001: /*
002: * BEGIN_HEADER - DO NOT EDIT
003: *
004: * The contents of this file are subject to the terms
005: * of the Common Development and Distribution License
006: * (the "License"). You may not use this file except
007: * in compliance with the License.
008: *
009: * You can obtain a copy of the license at
010: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
011: * See the License for the specific language governing
012: * permissions and limitations under the License.
013: *
014: * When distributing Covered Code, include this CDDL
015: * HEADER in each file and include the License file at
016: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
017: * If applicable add the following below this CDDL HEADER,
018: * with the fields enclosed by brackets "[]" replaced with
019: * your own identifying information: Portions Copyright
020: * [year] [name of copyright owner]
021: */
022:
023: /*
024: * @(#)ConfigData.java
025: * Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
026: *
027: * END_HEADER - DO NOT EDIT
028: */
029: package com.sun.jbi.binding.file.util;
030:
031: /**
032: * This class holds the static data used in configuration file.
033: *
034: * @author Sun Microsystems, Inc.
035: */
036: public class ConfigData {
037: /**
038: * The name of the schema file.
039: */
040: public static final String SCHEMA_FILE = "endpoints.xsd";
041:
042: /**
043: * The name of the jbi schema file for jbi.xml in an SU.
044: */
045: public static final String JBI_SCHEMA_FILE = "jbi.xsd";
046:
047: /**
048: * The element name for endpoint in the XML config file.
049: */
050: public static final String ENDPOINT = "endpoint";
051:
052: /**
053: * The element name for endpoint name in the XML config file.
054: */
055: public static final String ENDPOINTNAME = "endpoint-name";
056:
057: /**
058: * The element name for service name in the XML config file.
059: */
060: public static final String SERVICENAME = "service-qname";
061:
062: /**
063: * The element name for input folder in the XML config file.
064: */
065: public static final String INPUTDIR = "input-dir";
066:
067: /**
068: * The element name for output folder in the XML config file.
069: */
070: public static final String OUTPUTDIR = "output-dir";
071:
072: /**
073: * The element name for processed folder in the XML config file.
074: */
075: public static final String PROCESSEDDIR = "processed-dir";
076:
077: /**
078: * The element name for output file name prefix in the XML config file.
079: */
080: public static final String OUTPUTPREFIX = "output-file-prefix";
081:
082: /**
083: * The element name for output file extension in the XML config file.
084: */
085: public static final String OUTPUTEXTENSION = "output-file-extension";
086:
087: /**
088: * The element name for input file pattern in the XML config file.
089: */
090: public static final String INPUTPATTERN = "input-pattern";
091:
092: /**
093: * The element name for endpoint type in the XML config file.
094: */
095: public static final String ENDPOINT_TYPE = "endpoint-role";
096:
097: /**
098: * The element name which identifies the input-message-type.
099: */
100: public static final String INPUT_MESSAGE_TYPE = "input-message-type";
101:
102: /**
103: * The element name which identifies the output-message-type.
104: */
105: public static final String OUTPUT_MESSAGE_TYPE = "output-message-type";
106:
107: /**
108: * Denotes an attachment message type.
109: */
110: public static final String ATTACHEMENT_TYPE = "attachment";
111:
112: /**
113: * Denotes an XML message type.
114: */
115: public static final String XML_TYPE = "xml";
116:
117: /**
118: * The element name for operastion in the XML config file.
119: */
120: public static final String OPERATION = "operation";
121:
122: /**
123: * Role of endpoint.
124: */
125: public static final int CONSUMER = 0;
126:
127: /**
128: * Role of endpoint.
129: */
130: public static final int PROVIDER = 1;
131:
132: /**
133: * The element name for MEP in the XML config file.
134: */
135: public static final String MEP = "mep";
136:
137: /**
138: * Namespace URI corresponding to a QName.
139: */
140: public static final String NAMESPACE_URI = "namespace-uri";
141:
142: /**
143: * Token for storing the local name corresponding to QName.s.
144: */
145: public static final String LOCAL_PART = "local-part";
146:
147: /**
148: * Namespace of the service.
149: */
150: public static final String SERVICE_NAMESPACE = "service-namespace";
151:
152: /**
153: * Tag name for service.
154: */
155: public static final String SERVICE = "service";
156:
157: /**
158: * Default message type for file binding messages.
159: */
160: public static final String DEFAULT_MESSAGE_TYPE = "xml";
161:
162: /**
163: * Namespace for operation.
164: */
165: public static final String OPERATION_NAMESPACE = "operation-namespace";
166:
167: /**
168: * Local name of the service.
169: */
170: public static final String SERVICE_LOCALNAME = "service-local-name";
171:
172: /**
173: * Token denoting string name.
174: */
175: public static final String NAME = "name";
176:
177: /**
178: * Namespace for file binding.
179: */
180: public static final String FILENAMESPACE = "http://sun.com/jbi/wsdl/file10";
181:
182: /**
183: * Binding name.
184: */
185: public static final String BINDING_NAME = "binding-name";
186:
187: /**
188: * Extension of done file.
189: */
190: public static final String DONE_EXTENSION = "done";
191:
192: /**
193: * Extension of error file.
194: */
195: public static final String ERROR_EXTENSION = "err";
196:
197: /**
198: * Separator char for the file name.
199: */
200: public static final String SEPARATOR = "_";
201:
202: /**
203: * Tracking id property.
204: */
205: public static final String TRACKINGID_PROPERTY = "TRACKINGID";
206:
207: /**
208: * targetNamespace attribute in XML.
209: */
210: public static final String TARGET_NAMESPACE = "targetNamespace";
211:
212: /**
213: * String for provider role.
214: */
215: public static final String PROVIDER_STRING = "provider";
216:
217: /**
218: * String for consumer role.
219: */
220: public static final String CONSUMER_STRING = "consumer";
221:
222: /**
223: * Type attribute for binding in WSDL.
224: */
225: public static final String WSDL_BINDING_TYPE = "type";
226:
227: /**
228: * WSDL input folder location.
229: */
230: public static final String WSDL_INPUT_LOCATION = "input-location";
231:
232: /**
233: * WSDL processed folder location.
234: */
235: public static final String WSDL_PROCESSED_LOCATION = "processed-location";
236:
237: /**
238: * WSDL output folder location.
239: */
240: public static final String WSDL_OUTPUT_LOCATION = "output-location";
241:
242: /**
243: * Denotes the number of files that will be picked up per folder.
244: */
245: public static final int BATCH_SIZE = 3;
246:
247: /**
248: * File extension set in message exchange.
249: */
250: public static final String EXTENSION_PROPERTY = "FILEEXTENSION";
251:
252: /**
253: * Filename property set in message exchage.
254: */
255: public static final String FILENAME_PROPERTY = "FILENAME";
256:
257: /**
258: * Interface name in the XML file.
259: */
260: public static final String INTERFACE = "interface";
261:
262: /**
263: * Namespace URI for the interface name.
264: */
265: public static final String INTERFACE_NAMESPACE = "interface_namespace";
266:
267: /**
268: * Interface local name.
269: */
270: public static final String INTERFACE_LOCALNAME = "interface_localname";
271:
272: /**
273: * Deployment descriptor file
274: */
275: public static final String DEPLOY_DESCRIPTOR = "jbi.xml";
276: }
|