public static interface Registration.Dynamic extends Registration
Servlet
or Filter
registered via one of the addServlet or
addFilter methods, respectively, on ServletContext
may be further configured.Registration.Dynamic
Modifier and Type | Method and Description |
---|---|
void |
setAsyncSupported(boolean isAsyncSupported)
Configures the Servlet or Filter represented by this dynamic Registration as supporting asynchronous operations or
not.
|
getClassName, getInitParameter, getInitParameters, getName, setInitParameter, setInitParameters
void setAsyncSupported(boolean isAsyncSupported)
By default, servlet and filters do not support asynchronous operations.
A call to this method overrides any previous setting.
isAsyncSupported
- true if the Servlet or Filter represented by this dynamic Registration supports asynchronous
operations, false otherwisejava.lang.IllegalStateException
- if the ServletContext from which this dynamic Registration was obtained has already
been initialized