001: /*
002: * ChainBuilder ESB
003: * Visual Enterprise Integration
004: *
005: * Copyright (C) 2006 Bostech Corporation
006: *
007: * This program is free software; you can redistribute it and/or modify
008: * it under the terms of the GNU General Public License as published by
009: * the Free Software Foundation; either version 2 of the License, or
010: * (at your option) any later version.
011: *
012: * This program is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of
014: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015: * General Public License for more details.
016: *
017: * You should have received a copy of the GNU General Public License
018: * along with this program; if not, write to the Free Software
019: * Foundation, Inc.,59 Temple Place, Suite 330, Boston, MA 02111-1307
020: * USA
021: *
022: * $Id: MetadataConstants.java 11527 2008-01-23 15:33:48Z mpreston $
023: *
024: */
025: package com.bostechcorp.cbesb.common.constant;
026:
027: /**
028: *
029: */
030: public class MetadataConstants {
031:
032: // File Component
033: public static final String FILE_INPUT_FILENAME = "File.Input.Filename";
034: public static final String FILE_INPUT_CHARSET = "File.Input.Charset";
035: public static final String FILE_INPUT_READSTYLE = "File.Input.ReadStyle";
036: public static final String FILE_OUTPUT_FILENAME = "File.Output.Filename";
037: public static final String FILE_OUTPUT_DESTDIR = "File.Output.DestDir";
038: public static final String FILE_OUTPUT_CHARSET = "File.Output.Charset";
039: public static final String FILE_OUTPUT_WRITESTYLE = "File.Output.WriteStyle";
040:
041: // FTP Component
042: public static final String FTP_INPUT_HOST = "Ftp.Input.Host";
043: public static final String FTP_INPUT_FILENAME = "Ftp.Input.Filename";
044: public static final String FTP_INPUT_CONNECTMODE = "Ftp.Input.ConnectMode";
045: public static final String FTP_INPUT_TRANSFERMODE = "Ftp.Input.TransferMode";
046: public static final String FTP_INPUT_CHARSET = "Ftp.Input.Charset";
047: public static final String FTP_INPUT_READSTYLE = "Ftp.Input.ReadStyle";
048: public static final String FTP_OUTPUT_HOST = "Ftp.Output.Host";
049: public static final String FTP_OUTPUT_USER = "Ftp.Output.User";
050: public static final String FTP_OUTPUT_PASSWORD = "Ftp.Output.Password";
051: public static final String FTP_OUTPUT_CONNECTMODE = "Ftp.Output.ConnectMode";
052: public static final String FTP_OUTPUT_TRANSFERMODE = "Ftp.Output.TransferMode";
053: public static final String FTP_OUTPUT_FILENAME = "Ftp.Output.Filename";
054: public static final String FTP_OUTPUT_DESTDIR = "Ftp.Output.DestDir";
055: public static final String FTP_OUTPUT_CHARSET = "Ftp.Output.Charset";
056: public static final String FTP_OUTPUT_WRITESTYLE = "Ftp.Output.WriteStyle";
057:
058: // JMS Component
059: public static final String JMS_CONSUMER_TARGETDESTINATIONNAME = "Jms.Consumer.TargetDestinationName";
060: public static final String JMS_CONSUMER_REPLYDESTINATIONNAME = "Jms.Consumer.ReplyDestinationName";
061: public static final String JMS_CONSUMER_READSTYLE = "Jms.Consumer.ReadStyle";
062: public static final String JMS_CONSUMER_CHARSET = "Jms.Consumer.Charset";
063: public static final String JMS_CONSUMER_WRITESTYLE = "Jms.Consumer.WriteStyle";
064: public static final String JMS_PROVIDER_REPLYDESTINATIONNAME = "Jms.Provider.ReplyDestinationName";
065: public static final String JMS_PROVIDER_TARGETDESTINATIONNAME = "Jms.Provider.TargetDestinationName";
066: public static final String JMS_PROVIDER_READSTYLE = "Jms.Provider.ReadStyle";
067: public static final String JMS_PROVIDER_CHARSET = "Jms.Provider.Charset";
068: public static final String JMS_PROVIDER_WRITESTYLE = "Jms.Provider.WriteStyle";
069:
070: // Transformer Component
071: public static final String TRANSFORMER_CONFIG_TRNFILE = "Transformer.Config.TrnFile";
072:
073: // Parser Component
074: public static final String PARSER_CONFIG_PARSERTYPE = "Parser.Config.ParserType";
075: public static final String PARSER_CONFIG_MSGDEF = "Parser.Config.MsgDef";
076: public static final String PARSER_X12_SEGMENTTERMINATOR = "Parser.X12.SegmentTerminator";
077: public static final String PARSER_X12_FIELDSEPARATOR = "Parser.X12.FieldSeparator";
078: public static final String PARSER_X12_COMPOSITESEPARATOR = "Parser.X12.CompositeSeparator";
079:
080: // XSLT Component
081: public static final String XSLT_CONFIG_XSLLOCATION = "Xslt.Config.XslLocation";
082:
083: // Script Component
084: public static final String SCRIPT_CONFIG_TYPE = "Script.Config.Type";
085: public static final String SCRIPT_CONFIG_CLASS = "Script.Config.Class";
086:
087: // Email Component
088: /**
089: * The sending email address
090: */
091: public static final String EMAIL_FROM = "Email.From";
092: /**
093: * The recipient email address(es). If multiple email addresses were specified in the
094: * email, this will be a comma separated list.
095: */
096: public static final String EMAIL_TO = "Email.To";
097: /**
098: * The Carbon Copy Recipient email address(es). If multiple email addresses were
099: * specified in the email, this will be a comma separated list.
100: */
101: public static final String EMAIL_CC = "Email.Cc";
102: /**
103: * The Blind Carbon Copy Recipient email address(es). If multiple email addresses were
104: * specified in the email, this will be a comma separated list.
105: */
106: public static final String EMAIL_BCC = "Email.Bcc";
107: /**
108: * The Timestamp when the email was sent. Populated only if the information exists in
109: * the email. Only used for POP3
110: */
111: public static final String EMAIL_SENT = "Email.Sent";
112: /**
113: * The Timestamp when the email was received. Populated only if the information
114: * exists in the email. Only used for POP3
115: */
116: public static final String EMAIL_RECEIVED = "Email.Received";
117: /**
118: * The subject line of the email.
119: */
120: public static final String EMAIL_SUBJECT = "Email.Subject";
121: /**
122: * <p>Absolute path to the local copy of a downloaded attachment. If multiple
123: * attachments were downloaded, then this will be a comma separated list. If
124: * attachmentDir property setting is not specified, then this metadata will not be
125: * populated.</p>
126: * <p>The attachment file name will be prefixed by the consumer (POP3) endpoint name.
127: * If the same attachment file exists in the attachment directory, it will be
128: * overwritten.</p>
129: */
130: public static final String EMAIL_ATTACHMENT = "Email.Attachment";
131:
132: // SenderEndpoint; this is used for Upoc
133: public static final String SENDER_ENDPOINT_PROPERTY = "org.apache.servicemix.senderEndpoint";
134:
135: // HTTP Component
136: public static final String HTTP_PROVIDER_ADDRESS = "Http.Provider.Address";
137: public static final String HTTP_PROVIDER_SOAPACTION = "Http.Provider.SoapAction";
138: public static final String HTTP_PROVIDER_OPERATION = "Http.Provider.Operation";
139: public static final String HTTP_PROVIDER_CONTENT_TYPE = "Http.Provider.ContentType";
140: public static final String HTTP_PROVIDER_METHOD_NAME = "Http.Provider.MethodName";
141: public static final String HTTP_PROVIDER_CHARSET = "Http.Provider.Charset";
142: public static final String HTTP_CONSUMER_CONTENT_TYPE = "Http.Consumer.ContentType";
143: public static final String HTTP_CONSUMER_CHARSET = "Http.Consumer.Charset";
144:
145: // ETL Component
146: public static final String ETL_CONSUMER_STARTSELECT = "Etl.Consumer.StartSelect";
147: public static final String ETL_CONSUMER_ENDSELECT = "Etl.Consumer.EndSelect";
148: public static final String ETL_CONSUMER_DBERROR = "Etl.Consumer.DbError";
149: public static final String ETL_CONSUMER_RECNUM = "Etl.Consumer.RecNum";
150: public static final String ETL_CONSUMER_TOTALNUMRECS = "Etl.Consumer.TotalNumRecs";
151: public static final String ETL_PROVIDER_STARTTRANSACTION = "Etl.Provider.StartTransaction";
152: public static final String ETL_PROVIDER_ENDTRANSACTION = "Etl.Provider.EndTransaction";
153: public static final String ETL_PROVIDER_COMMITTRANSACTION = "Etl.Provider.CommitTransaction";
154: public static final String ETL_PROVIDER_ROLLBACKTRANSACTION = "Etl.Provider.RollbackTransaction";
155:
156: /**
157: * This is a list for metedate's name.
158: * Meta data are used in component and transformer
159: */
160: public static final String[] metadataList = { FILE_INPUT_FILENAME,
161: FILE_INPUT_CHARSET, FILE_INPUT_READSTYLE,
162: FILE_OUTPUT_FILENAME, FILE_OUTPUT_DESTDIR,
163: FILE_OUTPUT_CHARSET, FILE_OUTPUT_WRITESTYLE,
164:
165: FTP_INPUT_HOST, FTP_INPUT_FILENAME, FTP_INPUT_CONNECTMODE,
166: FTP_INPUT_TRANSFERMODE, FTP_INPUT_CHARSET,
167: FTP_INPUT_READSTYLE, FTP_OUTPUT_HOST, FTP_OUTPUT_USER,
168: FTP_OUTPUT_PASSWORD, FTP_OUTPUT_CONNECTMODE,
169: FTP_OUTPUT_TRANSFERMODE, FTP_OUTPUT_FILENAME,
170: FTP_OUTPUT_DESTDIR, FTP_OUTPUT_CHARSET,
171: FTP_OUTPUT_WRITESTYLE,
172:
173: JMS_CONSUMER_TARGETDESTINATIONNAME,
174: JMS_CONSUMER_REPLYDESTINATIONNAME, JMS_CONSUMER_READSTYLE,
175: JMS_CONSUMER_CHARSET, JMS_CONSUMER_WRITESTYLE,
176: JMS_PROVIDER_REPLYDESTINATIONNAME,
177: JMS_PROVIDER_TARGETDESTINATIONNAME, JMS_PROVIDER_READSTYLE,
178: JMS_PROVIDER_CHARSET, JMS_PROVIDER_WRITESTYLE,
179:
180: TRANSFORMER_CONFIG_TRNFILE,
181:
182: PARSER_CONFIG_PARSERTYPE, PARSER_CONFIG_MSGDEF,
183:
184: XSLT_CONFIG_XSLLOCATION,
185:
186: SCRIPT_CONFIG_TYPE, SCRIPT_CONFIG_CLASS,
187:
188: EMAIL_FROM, EMAIL_TO, EMAIL_CC, EMAIL_SENT, EMAIL_RECEIVED,
189: EMAIL_SUBJECT, EMAIL_ATTACHMENT,
190:
191: HTTP_PROVIDER_ADDRESS, HTTP_PROVIDER_SOAPACTION,
192: HTTP_PROVIDER_OPERATION, HTTP_PROVIDER_CONTENT_TYPE,
193: HTTP_PROVIDER_METHOD_NAME, HTTP_PROVIDER_CHARSET,
194: HTTP_CONSUMER_CONTENT_TYPE, HTTP_CONSUMER_CHARSET,
195:
196: SENDER_ENDPOINT_PROPERTY };
197: }
|