##### Coverage Report - org.apache.turbine.modules.actions.DefaultAction

Classes in this File | Line Coverage | Branch Coverage | Complexity
DefaultAction |
0% | 0/6
N/A | N/A
| 1.0;1

1 |  |
     package org.apache.turbine.modules.actions;
2 |  |
3 |  |
     /*
4 |  |
      * Licensed to the Apache Software Foundation (ASF) under one
5 |  |
      * or more contributor license agreements.  See the NOTICE file
6 |  |
      * distributed with this work for additional information
7 |  |
      * regarding copyright ownership.  The ASF licenses this file
8 |  |
      * to you under the Apache License, Version 2.0 (the
9 |  |
      * "License"); you may not use this file except in compliance
10 |  |
      * with the License.  You may obtain a copy of the License at
11 |  |
      *
12 |  |
      *   http://www.apache.org/licenses/LICENSE-2.0
13 |  |
      *
14 |  |
      * Unless required by applicable law or agreed to in writing,
15 |  |
      * software distributed under the License is distributed on an
16 |  |
      * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 |  |
      * KIND, either express or implied.  See the License for the
18 |  |
      * specific language governing permissions and limitations
19 |  |
      * under the License.
20 |  |
      */
21 |  |
22 |  |
23 |  |
     // Turbine Modules
24 |  |
25 |  |
     import org.apache.turbine.modules.Action;
26 |  |
     import org.apache.turbine.pipeline.PipelineData;
27 |  |
     import org.apache.turbine.util.RunData;
28 |  |
29 |  |
     /**
30 |  |
      * This is a Default Action module that doesn't do much.
31 |  |
      *
32 |  |
      * @author <a href="mailto:mbryson@mont.mindspring.com">Dave Bryson</a>
33 |  |
      * @author <a href="mailto:peter@courcoux.biz">Peter Courcoux</a>
34 |  |
      * @version $Id: DefaultAction.java 1066529 2011-02-02 17:01:46Z ludwig $
35 |  |
      */
36 | 0 |
     public class DefaultAction extends Action
37 |  |
     {
38 |  |
         /**
39 |  |
          * Execute the action.
40 |  |
          *
41 |  |
          * @deprecated Use PipelineData version instead.
42 |  |
          * @param data Turbine information.
43 |  |
          * @throws Exception a generic exception.
44 |  |
          */
45 |  |
         @Deprecated
46 |  |
         @Override
47 |  |
         public void doPerform(RunData data)
48 |  |
                 throws Exception
49 |  |
         {
50 | 0 |
             data.setMessage(data.getScreen() + " has been executed!");
51 | 0 |
         }
52 |  |
53 |  |
         /**
54 |  |
          * Execute the action.
55 |  |
          *
56 |  |
          * @param data Turbine information.
57 |  |
          * @throws Exception a generic exception.
58 |  |
          */
59 |  |
         @Override
60 |  |
         public void doPerform(PipelineData pipelineData)
61 |  |
                 throws Exception
62 |  |
         {
63 | 0 |
             RunData data = getRunData(pipelineData);
64 | 0 |
             doPerform(data);
65 | 0 |
         }
66 |  |
67 |  |
     }