public class DevSocketFilter
extends java.lang.Object
Socket and
DatagramSocket between native and
App Engine sockets.
The dev server makes extensive use of Socket,
however the App Engine environment does not allow all the capabilities
of native sockets. This filter will perform the toggle between using
App Engine sockets using the DevSocketImplFactory which maintains
a thread local flag for this purpose. This filter should be configured in
filter chain (here:
//java/com/google/appengine/tools/development/webdefault.xml) just before
user code is entered into.
| Constructor and Description |
|---|
DevSocketFilter() |
public void init(FilterConfig filterConfig)
throws ServletException
ServletExceptionpublic void doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
throws java.io.IOException,
ServletException
java.io.IOExceptionServletExceptionjavax.servlet.Filter#doFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse,
javax.servlet.FilterChain)public void destroy()