01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one
03: * or more contributor license agreements. See the NOTICE file
04: * distributed with this work for additional information
05: * regarding copyright ownership. The ASF licenses this file
06: * to you under the Apache License, Version 2.0 (the
07: * "License"); you may not use this file except in compliance
08: * with the License. You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing,
13: * software distributed under the License is distributed on an
14: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15: * KIND, either express or implied. See the License for the
16: * specific language governing permissions and limitations
17: * under the License.
18: */
19:
20: package org.apache.axis2.transport.mail;
21:
22: public class Constants {
23:
24: public final static String HEADER_SOAP_ACTION = "mail.soapaction";
25:
26: public final static String FROM_ADDRESS = "mail.smtp.from";
27: public final static String SMTP_USER = "mail.smtp.user";
28: public final static String SMTP_PORT = "mail.smtp.port";
29: public final static String SMTP_HOST = "mail.smtp.host";
30: public final static String SMTP_USER_PASSWORD = "transport.mail.smtp.password";
31:
32: public final static String POP3_USER = "mail.pop3.user";
33: public final static String POP3_PORT = "mail.pop3.port";
34: public final static String POP3_PASSWORD = "transport.mail.pop3.password";
35: public final static String POP3_HOST = "mail.pop3.host";
36: public final static String STORE_PROTOCOL = "mail.store.protocol";
37:
38: public final static String REPLY_TO = "transport.mail.replyToAddress";
39:
40: public final static String LISTENER_INTERVAL = "transport.listener.interval";
41:
42: public final static int SMTP_SERVER_PORT = (1024 + 25);
43:
44: public final static String SERVER_DOMAIN = "localhost";
45: public final static String RCPT_OK = "250 OK performed command RCPT";
46: public final static String RCPT_ERROR = "550 Unknown recipient";
47:
48: public final static int POP_SERVER_PORT = (1024 + 110);
49:
50: public final static String OK = "+OK ";
51: public final static String MAIL_OK = "250 OK performed command MAIL";
52: public final static String MAIL_ERROR = "550 Error processign MAIL command";
53: public final static String HELO_REPLY = "250 OK";
54:
55: public final static String ERR = "-ERR ";
56: public final static String DEFAULT_CONTENT_TYPE = "text/xml";
57: public final static String DEFAULT_CHAR_SET_ENCODING = "7bit";
58: public final static String DEFAULT_CHAR_SET = "us-ascii";
59: public final static String DATA_START_SUCCESS = "354 OK Ready for data";
60: public final static String DATA_END_SUCCESS = "250 OK finished adding data";
61: public final static String CONTENT_TYPE = "mail.contenttype";
62: public final static String CONTENT_LOCAION = "mail.contentlocation";
63: public final static String COMMAND_UNKNOWN = "550 Unknown command";
64: public final static String COMMAND_TRANSMISSION_END = "221 Closing SMTP service.";
65: public final static String COMMAND_EXIT = "EXIT";
66: public final static String USER = "USER";
67: public final static String STAT = "STAT";
68: public final static String RSET = "RSET";
69: public final static String RETR = "RETR";
70: public final static String QUIT = "QUIT";
71: public final static String PASS = "PASS";
72: public final static String NOOP = "NOOP";
73: public final static String LIST = "LIST";
74: public final static String DELE = "DELE";
75:
76: public static final String MAIL_SMTP = "_MAIL_SMTP_";
77:
78: public static final String MAIL_POP3 = "_MAIL_POP3_";
79:
80: public static final String X_SERVICE_PATH = "X-Service-Path";
81: public static final String MAIL_SYNC = "_MAIL_SYNC_";
82: public static final String IN_REPLY_TO = "In-Reply-To";
83: public static final String MAILTO = "mailto";
84: public static final String MAPPING_TABLE = "mappingTable";
85: public static final String CALLBACK_TABLE = "callbackTable";
86: }
|