MCPcopy Create free account
hub / github.com/apache/tomcat / StandardPipeline

Class StandardPipeline

java/org/apache/catalina/core/StandardPipeline.java:47–409  ·  view source on GitHub ↗

Standard implementation of a processing Pipeline that will invoke a series of Valves that have been configured to be called in order. This implementation can be used for any type of Container. IMPLEMENTATION WARNING - This implementation assumes that no calls to addValve()

Source from the content-addressed store, hash-verified

45 * be modified.
46 */
47public class StandardPipeline extends LifecycleBase implements Pipeline {
48
49 private static final Log log = LogFactory.getLog(StandardPipeline.class);
50 private static final StringManager sm = StringManager.getManager(StandardPipeline.class);
51
52 // ----------------------------------------------------------- Constructors
53
54
55 /**
56 * Construct a new StandardPipeline instance with no associated Container.
57 */
58 public StandardPipeline() {
59
60 this(null);
61
62 }
63
64
65 /**
66 * Construct a new StandardPipeline instance that is associated with the specified Container.
67 *
68 * @param container The container we should be associated with
69 */
70 public StandardPipeline(Container container) {
71
72 super();
73 setContainer(container);
74
75 }
76
77
78 // ----------------------------------------------------- Instance Variables
79
80
81 /**
82 * The basic Valve (if any) associated with this Pipeline.
83 */
84 protected Valve basic = null;
85
86
87 /**
88 * The Container with which this Pipeline is associated.
89 */
90 protected Container container = null;
91
92
93 /**
94 * The first valve associated with this Pipeline.
95 */
96 protected Valve first = null;
97
98
99 // --------------------------------------------------------- Public Methods
100
101 @Override
102 public boolean isAsyncSupported() {
103 Valve valve = (first != null) ? first : basic;
104 boolean supported = true;

Callers

nothing calls this directly

Calls 2

getLogMethod · 0.95
getManagerMethod · 0.95

Tested by

no test coverage detected