javax.servlet
接口 Registration.Dynamic

所有超级接口:
Registration
所有已知子接口:
FilterRegistration.Dynamic, ServletRegistration.Dynamic
所有已知实现类:
FilterHolder.Registration, Holder.HolderRegistration, ServletHolder.Registration
正在封闭接口:
Registration

public static interface Registration.Dynamic
extends Registration

Interface through which a Servlet or Filter registered via one of the addServlet or addFilter methods, respectively, on ServletContext may be further configured.


嵌套类摘要
 
从接口 javax.servlet.Registration 继承的嵌套类/接口
Registration.Dynamic
 
方法摘要
 void setAsyncSupported(boolean isAsyncSupported)
          Configures the Servlet or Filter represented by this dynamic Registration as supporting asynchronous operations or not.
 
从接口 javax.servlet.Registration 继承的方法
getClassName, getInitParameter, getInitParameters, getName, setInitParameter, setInitParameters
 

方法详细信息

setAsyncSupported

void setAsyncSupported(boolean isAsyncSupported)
Configures the Servlet or Filter represented by this dynamic Registration as supporting asynchronous operations or not.

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 otherwise
抛出:
IllegalStateException - if the ServletContext from which this dynamic Registration was obtained has already been initialized


Copyright © 2013. All Rights Reserved.