1 package org.apache.turbine.pipeline;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 import java.io.IOException;
22
23 import org.apache.turbine.Turbine;
24 import org.apache.turbine.TurbineConstants;
25 import org.apache.turbine.modules.ActionLoader;
26 import org.apache.turbine.modules.actions.AccessController;
27 import org.apache.turbine.util.RunData;
28 import org.apache.turbine.util.TurbineException;
29
30 /***
31 * Implements the action portion of the "Turbine classic" processing
32 * pipeline (from the Turbine 2.x series).
33 *
34 * @author <a href="mailto:jvanzyl@apache.org">Jason van Zyl</a>
35 * @author <a href="mailto:peter@courcoux.biz">Peter Courcoux</a>
36 * @version $Id: DefaultACLCreationValve.java 222043 2004-12-06 17:47:33Z painter $
37 */
38 public class DefaultACLCreationValve
39 extends AbstractValve
40 implements TurbineConstants
41 {
42 protected AccessController accessController = null;
43
44 /***
45 * Here we can setup objects that are thread safe and can be
46 * reused. We setup the session validator and the access
47 * controller.
48 */
49 public DefaultACLCreationValve()
50 throws Exception
51 {
52
53 }
54
55 /***
56 * @see org.apache.turbine.Valve#invoke(RunData, ValveContext)
57 */
58 public void invoke(PipelineData pipelineData, ValveContext context)
59 throws IOException, TurbineException
60 {
61 try
62 {
63
64
65
66
67
68 ActionLoader.getInstance().exec(
69 pipelineData, Turbine.getConfiguration().getString(ACTION_ACCESS_CONTROLLER_KEY,
70 ACTION_ACCESS_CONTROLLER_DEFAULT));
71 }
72 catch (Exception e)
73 {
74 throw new TurbineException(e);
75 }
76
77
78 context.invokeNext(pipelineData);
79 }
80 }