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