1 /**
2 * Waffle (https://github.com/dblock/waffle)
3 *
4 * Copyright (c) 2010 - 2015 Application Security, Inc.
5 *
6 * All rights reserved. This program and the accompanying materials
7 * are made available under the terms of the Eclipse Public License v1.0
8 * which accompanies this distribution, and is available at
9 * http://www.eclipse.org/legal/epl-v10.html
10 *
11 * Contributors:
12 * Application Security, Inc.
13 */
14 package waffle.apache.catalina;
15
16 import org.apache.catalina.Container;
17 import org.apache.catalina.Engine;
18 import org.apache.catalina.Pipeline;
19
20 /**
21 * Simple Engine.
22 *
23 * @author dblock[at]dblock[dot]org
24 */
25 public abstract class SimpleEngine implements Engine {
26
27 private Pipeline pipeline;
28
29 /**
30 * Return Name For Waffle Tests.
31 */
32 @Override
33 public String getName() {
34 return "simpleEngine";
35 }
36
37 /**
38 * Return Null Parent for Waffle Tests.
39 */
40 @Override
41 public Container getParent() {
42 return null;
43 }
44
45 /**
46 * Get Pipeline Used By Waffle.
47 */
48 @Override
49 public Pipeline getPipeline() {
50 return this.pipeline;
51 }
52
53 /**
54 * Set Pipeline Used By Waffle.
55 *
56 * @param value
57 */
58 public void setPipeline(final Pipeline value) {
59 this.pipeline = value;
60 }
61
62 }