01: /**
02: * JOnAS: Java(TM) Open Application Server
03: * Copyright (C) 1999 Bull S.A.
04: * Contact: jonas-team@objectweb.org
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * version 2.1 of the License, or 1any later version.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: *
16: * You should have received a copy of the GNU Lesser General Public
17: * License along with this library; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19: * USA
20: *
21: * Initial developer: Florent BENOIT
22: * --------------------------------------------------------------------------
23: * $Id: JonasWebAppDTDs.java 7531 2005-10-19 13:11:05Z benoitf $
24: * --------------------------------------------------------------------------
25: */package org.objectweb.jonas_web.deployment.api;
26:
27: import org.objectweb.jonas_lib.deployment.api.CommonsDTDs;
28:
29: /**
30: * This class defines the declarations of DTDs for jonas-web.xml
31: * @author Florent Benoit
32: */
33: public class JonasWebAppDTDs extends CommonsDTDs {
34:
35: /**
36: * List of jonas-web-app dtds
37: */
38: private static final String[] JONAS_WEBAPP_DTDS = new String[] {
39: "jonas-web-app_2_6.dtd", "jonas-web-app_3_1.dtd",
40: "jonas-web-app_3_3.dtd" };
41:
42: /**
43: * List of jonas-web-app publicId
44: */
45: private static final String[] JONAS_WEBAPP_DTDS_PUBLIC_ID = new String[] {
46: "-//ObjectWeb//DTD JOnAS Web App 2.6//EN",
47: "-//ObjectWeb//DTD JOnAS Web App 3.1//EN",
48: "-//ObjectWeb//DTD JOnAS Web App 3.3//EN" };
49:
50: /**
51: * DTDs of jetty (used by WS for security)
52: */
53: private static final String[] JETTY_DTDS = new String[] {
54: "configure_1_1.dtd", "configure_1_2.dtd" };
55:
56: /**
57: * List of Public ID of jetty (used by WS for security)
58: */
59: private static final String[] JETTY_DTDS_PUBLIC_ID = new String[] {
60: "-//Mort Bay Consulting//DTD Configure 1.1//EN",
61: "-//Mort Bay Consulting//DTD Configure 1.2//EN" };
62:
63: /**
64: * Build a new object for jonas-web.xml DTDs handling
65: */
66: public JonasWebAppDTDs() {
67: super();
68: addMapping(JONAS_WEBAPP_DTDS, JONAS_WEBAPP_DTDS_PUBLIC_ID);
69: addMapping(JETTY_DTDS, JETTY_DTDS_PUBLIC_ID);
70: }
71:
72: }
|