MCPcopy Index your code
hub / github.com/apache/tomcat / StandardContext

Class StandardContext

java/org/apache/catalina/core/StandardContext.java:142–5995  ·  view source on GitHub ↗

Standard implementation of the Context interface. Each child container must be a Wrapper implementation to process the requests directed to a particular servlet.

Source from the content-addressed store, hash-verified

140 * process the requests directed to a particular servlet.
141 */
142public class StandardContext extends ContainerBase implements Context, NotificationEmitter {
143
144 private static final Log log = LogFactory.getLog(StandardContext.class);
145
146
147 // ----------------------------------------------------------- Constructors
148
149
150 /**
151 * Create a new StandardContext component with the default basic Valve.
152 */
153 public StandardContext() {
154
155 super();
156 pipeline.setBasic(new StandardContextValve());
157 broadcaster = new NotificationBroadcasterSupport();
158 // Set defaults
159 if (!Globals.STRICT_SERVLET_COMPLIANCE) {
160 // Strict servlet compliance requires all extension mapped servlets
161 // to be checked against welcome files
162 resourceOnlyServlets.add("jsp");
163 }
164 }
165
166
167 // ----------------------------------------------------- Instance Variables
168
169 /**
170 * Allow multipart/form-data requests to be parsed even when the target servlet doesn't specify @MultipartConfig or
171 * have a <multipart-config> element.
172 */
173 protected boolean allowCasualMultipartParsing = false;
174
175 /**
176 * Control whether remaining request data will be read (swallowed) even if the request violates a data size
177 * constraint.
178 */
179 private boolean swallowAbortedUploads = true;
180
181 /**
182 * The alternate deployment descriptor name.
183 */
184 private String altDDName = null;
185
186
187 /**
188 * Lifecycle provider.
189 */
190 private InstanceManager instanceManager = null;
191
192
193 /**
194 * The antiResourceLocking flag for this Context.
195 */
196 private boolean antiResourceLocking = false;
197
198
199 /**

Callers

nothing calls this directly

Calls 3

getLogMethod · 0.95
isGraalAvailableMethod · 0.95
getNameMethod · 0.65

Tested by

no test coverage detected