View Javadoc

1   /*
2    * Copyright 2003,2004 The Apache Software Foundation.
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  /* 
17  
18   */
19  
20  package org.apache.pluto.portalImpl.xml;
21  
22  /***
23   ** This class defines a bunch of constants, especially those needed to
24   ** identify attributes for xml-creation and validation.
25   **
26   **/
27  
28  public class Constants
29  {
30  
31      // attributes for the entity resolver and xml validation
32      public final static String RES_PORTLET_PUBLIC_ID     = "-//Sun Microsystems, Inc.//DTD PortletApplication 1.0//EN";
33      public final static String[] RES_PORTLET_DTDS        = {"/org/apache/pluto/portalImpl/xml/portlet-app_1_0.xsd", 
34                                                              "/org/apache/pluto/portalImpl/xml/xml.xsd",
35                                                              "/org/apache/pluto/portalImpl/xml/XMLSchema.dtd",
36                                                              "/org/apache/pluto/portalImpl/xml/datatypes.dtd"};
37      public final static String[] RES_PORTLET_DTD_NAMES   = {"portlet-app_1_0.xsd", "xml.xsd", "XMLSchema.dtd", "datatypes.dtd"};
38  
39      public final static String RES_WEB_PUBLIC_ID     = "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN";
40      public final static String RES_WEB_DTD           = "/org/apache/pluto/portalImpl/xml/web-app_2_3.dtd";
41      public final static String RES_WEB_DTD_NAME      = "web-app_2_3.dtd";
42  
43      //attributes for the web.xml creation for portlets
44      public final static String WEB_PORTLET_PUBLIC_ID = "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN";
45      public final static String WEB_PORTLET_DTD = "http://java.sun.com/dtd/web-app_2_3.dtd";
46  
47  }