StandardWrapper container implementation.
| Modifier and Type | Field and Description |
|---|---|
| private final AtomicInteger | |
| private volatile long | |
| private volatile long | |
| private final LongAdder | |
| private final AtomicInteger | |
| private static final StringManager |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | exception(Request
The request being processed request, Response The response being generated response, Throwable The exception that occurred (which possibly wraps a root cause exception exception)Handle the specified ServletException encountered while processing the specified Request to produce the specified Response. |
| private void | |
| public int | Returns: the number of requests processed by the associated wrapper that resulted in an error.
Deprecated
The return type will change to long in Tomcat 11 onwards. Callers of this method should switch to
storing the result of calls to this method in a long value rather than an int.
Returns the number of requests processed by the associated wrapper that resulted in an error. |
| public long | |
| public long | |
| public long | |
| public int | Returns: the number of requests processed by the associated wrapper.
Deprecated
The return type will change to long in Tomcat 11 onwards. Callers of this method should switch to
storing the result of calls to this method in a long value rather than an int.
Returns the number of requests processed by the associated wrapper. |
| public void | |
| protected void | initInternal()
Overrides org. Sub-classes wishing to perform additional initialization should override this method, ensuring that super.initInternal() is the first call in the overriding method. |
| public void | invoke(Request
Request to be processed request, Response Response to be produced response)Implements org. Invoke the servlet we are managing, respecting the rules regarding servlet lifecycle support. |
| errorCount | back to summary |
|---|---|
| private final AtomicInteger errorCount | |
| maxTime | back to summary |
|---|---|
| private volatile long maxTime | |
| minTime | back to summary |
|---|---|
| private volatile long minTime | |
| processingTime | back to summary |
|---|---|
| private final LongAdder processingTime | |
| requestCount | back to summary |
|---|---|
| private final AtomicInteger requestCount | |
| sm | back to summary |
|---|---|
| private static final StringManager sm | |
| StandardWrapperValve | back to summary |
|---|---|
| pack-priv StandardWrapperValve() | |
| checkWrapperAvailable | back to summary |
|---|---|
| private void checkWrapperAvailable(Response response, StandardWrapper wrapper) throws IOException | |
| exception | back to summary |
|---|---|
| private void exception(Request request, Response response, Throwable exception) Handle the specified ServletException encountered while processing the specified Request to produce the specified Response. Any exceptions that occur during generation of the exception report are logged and swallowed. | |
| exception | back to summary |
|---|---|
private void exception(Request request, Response response, Throwable exception, int errorCode)
| |
| getErrorCount | back to summary |
|---|---|
| public int getErrorCount()
Deprecated The return type will change to long in Tomcat 11 onwards. Callers of this method should switch to storing the result of calls to this method in a long value rather than an int. Returns the number of requests processed by the associated wrapper that resulted in an error.
| |
| getMaxTime | back to summary |
|---|---|
| public long getMaxTime() | |
| getMinTime | back to summary |
|---|---|
| public long getMinTime() | |
| getProcessingTime | back to summary |
|---|---|
| public long getProcessingTime() | |
| getRequestCount | back to summary |
|---|---|
| public int getRequestCount()
Deprecated The return type will change to long in Tomcat 11 onwards. Callers of this method should switch to storing the result of calls to this method in a long value rather than an int. Returns the number of requests processed by the associated wrapper.
| |
| incrementErrorCount | back to summary |
|---|---|
| public void incrementErrorCount() | |
| initInternal | back to summary |
|---|---|
| protected void initInternal() throws LifecycleException Overrides org. Doc from org. Sub-classes wishing to perform additional initialization should override this method, ensuring that super.initInternal() is the first call in the overriding method.
| |
| invoke | back to summary |
|---|---|
| public void invoke(Request request, Response response) throws IOException, ServletException Implements org. Invoke the servlet we are managing, respecting the rules regarding servlet lifecycle support.
| |