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
|
|
* Filter Redirector.
|
6
|
|
*
|
7
|
|
* @author <a href="mailto:vmassol@apache.org">Vincent Massol</a>
|
8
|
|
*
|
9
|
|
* @version $Id: FilterConfiguration.html,v 1.1 2003/04/14 12:27:33 sinisa Exp $
|
10
|
|
*
|
11
|
|
* @see Configuration
|
12
|
|
*/
|
13
|
|
public class FilterConfiguration 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_FILTER_REDIRECTOR_NAME_PROPERTY =
|
19
|
|
"cactus.filterRedirectorName";
|
20
|
|
/**
|
21
|
|
* Read the Filter redirector name from a System property first and then
|
22
|
|
* if it fails from the Cactus configuration file and then use the default
|
23
|
|
* "FilterRedirector" name if it fails.
|
24
|
|
*
|
25
|
|
* @return the Filter redirector URL
|
26
|
|
*/
|
27
|
50
|
public static String getFilterRedirectorURL() {
|
28
|
50
|
String filterRedirectorName = System.getProperty("cactus.filterRedirectorName");
|
29
|
50
|
if (filterRedirectorName == null) {
|
30
|
0
|
filterRedirectorName = "FilterRedirector";
|
31
|
|
}
|
32
|
50
|
return FilterConfiguration.getContextURL() + "/" + filterRedirectorName;
|
33
|
|
}
|
34
|
|
|
35
|
|
/**
|
36
|
|
* Provides access to the Cactus configuration parameters related to the
|
37
|
|
* Filter Redirector.
|
38
|
|
*
|
39
|
|
* @author <a href="mailto:vmassol@apache.org">Vincent Massol</a>
|
40
|
|
*
|
41
|
|
* @version $Id: FilterConfiguration.html,v 1.1 2003/04/14 12:27:33 sinisa Exp $
|
42
|
|
*
|
43
|
|
* @see Configuration
|
44
|
|
*/
|
45
|
0
|
public FilterConfiguration() {
|
46
|
0
|
super();
|
47
|
|
}
|
48
|
|
}
|