1
|
|
/* Generated by AspectJ version 1.0.5 */
|
2
|
|
package org.apache.cactus.util;
|
3
|
|
/**
|
4
|
|
* Provides access to the Cactus configuration parameters related to the
|
5
|
|
* JSP Redirector.
|
6
|
|
*
|
7
|
|
* @author <a href="mailto:vmassol@apache.org">Vincent Massol</a>
|
8
|
|
*
|
9
|
|
* @version $Id: JspConfiguration.java,v 1.3 2002/05/20 21:49:25 vmassol Exp $
|
10
|
|
*
|
11
|
|
* @see Configuration
|
12
|
|
*/
|
13
|
|
public class JspConfiguration extends Configuration {
|
14
|
|
/**
|
15
|
|
* Name of the cactus property that specifies the name of the JSP
|
16
|
|
* redirector.
|
17
|
|
*/
|
18
|
|
public static final String CACTUS_JSP_REDIRECTOR_NAME_PROPERTY = "cactus.jspRedirectorName";
|
19
|
|
/**
|
20
|
|
* Read the JSP redirector name from a System property first and then
|
21
|
|
* if it fails from the Cactus configuration file and then use the default
|
22
|
|
* "JspRedirector" name if it fails.
|
23
|
|
*
|
24
|
|
* @return the JSP redirector URL
|
25
|
|
*/
|
26
|
0
|
public static String getJspRedirectorURL() {
|
27
|
0
|
JspConfiguration.initialize();
|
28
|
0
|
String jspRedirectorName = System.getProperty("cactus.jspRedirectorName");
|
29
|
0
|
if (jspRedirectorName == null) {
|
30
|
0
|
jspRedirectorName = "JspRedirector";
|
31
|
|
}
|
32
|
0
|
return JspConfiguration.getContextURL() + "/" + jspRedirectorName;
|
33
|
|
}
|
34
|
|
|
35
|
|
/**
|
36
|
|
* Provides access to the Cactus configuration parameters related to the
|
37
|
|
* JSP Redirector.
|
38
|
|
*
|
39
|
|
* @author <a href="mailto:vmassol@apache.org">Vincent Massol</a>
|
40
|
|
*
|
41
|
|
* @version $Id: JspConfiguration.java,v 1.3 2002/05/20 21:49:25 vmassol Exp $
|
42
|
|
*
|
43
|
|
* @see Configuration
|
44
|
|
*/
|
45
|
0
|
public JspConfiguration() {
|
46
|
0
|
super();
|
47
|
|
}
|
48
|
|
}
|