View Javadoc

1   /****************************************************************
2    * Licensed to the Apache Software Foundation (ASF) under one   *
3    * or more contributor license agreements.  See the NOTICE file *
4    * distributed with this work for additional information        *
5    * regarding copyright ownership.  The ASF licenses this file   *
6    * to you under the Apache License, Version 2.0 (the            *
7    * "License"); you may not use this file except in compliance   *
8    * with the License.  You may obtain a copy of the License at   *
9    *                                                              *
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  
21  package org.apache.james;
22  
23  /**
24   * Assorted Constants for use in all James blocks
25   * The Software Version, Software Name and Build Date are set by ant during
26   * the build process.
27   *
28   *
29   * @version This is $Revision: 521427 $
30   */
31  public class Constants {
32  
33      /**
34       * The version of James.
35       */
36      public static final String SOFTWARE_VERSION = "@@VERSION@@";
37  
38      /**
39       * The name of the software (i.e. James).
40       */
41      public static final String SOFTWARE_NAME = "@@NAME@@";
42  
43      /**
44       * Context key used to store the default domain name
45       * serviced by this James instance in the context.
46       */
47      public static final String DEFAULT_DOMAIN = "DEFAULT_DOMAIN";
48  
49      /**
50       * Context key used to store the Mailet/SMTP "hello name" for this
51       * James instance in the context.
52       */
53      public static final String HELLO_NAME = "HELLO_NAME";
54  
55      /**
56       * Key used to store the component manager for
57       * this James instance in a way accessible by
58       * Avalon aware Mailets.
59       */
60      public static final String AVALON_COMPONENT_MANAGER = "AVALON_COMP_MGR";
61      
62      /**
63       * Key used to store the hostaddress of the localhost
64       */
65      public static final String HOSTADDRESS = "LOCAL_HOSTADDRESS";
66      
67      /**
68       * Key used to store the hostname of localhost
69       */
70      public static final String HOSTNAME = "LOCAL_HOSTNAME";
71  
72  }