comparison src/org/eclipse/jetty/server/Request.java @ 935:aa7dc1802d29

remove ContinuationListener
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 09 Oct 2016 21:15:24 -0600
parents 3268ddf919d4
children 0541b6034003
comparison
equal deleted inserted replaced
934:fe461f7cfc8e 935:aa7dc1802d29
61 import javax.servlet.http.HttpServletResponse; 61 import javax.servlet.http.HttpServletResponse;
62 import javax.servlet.http.HttpSession; 62 import javax.servlet.http.HttpSession;
63 import javax.servlet.http.Part; 63 import javax.servlet.http.Part;
64 64
65 import org.eclipse.jetty.continuation.Continuation; 65 import org.eclipse.jetty.continuation.Continuation;
66 import org.eclipse.jetty.continuation.ContinuationListener;
67 import org.eclipse.jetty.http.HttpCookie; 66 import org.eclipse.jetty.http.HttpCookie;
68 import org.eclipse.jetty.http.HttpFields; 67 import org.eclipse.jetty.http.HttpFields;
69 import org.eclipse.jetty.http.HttpHeaders; 68 import org.eclipse.jetty.http.HttpHeaders;
70 import org.eclipse.jetty.http.HttpMethods; 69 import org.eclipse.jetty.http.HttpMethods;
71 import org.eclipse.jetty.http.HttpParser; 70 import org.eclipse.jetty.http.HttpParser;
195 /* ------------------------------------------------------------ */ 194 /* ------------------------------------------------------------ */
196 public void addEventListener(final EventListener listener) 195 public void addEventListener(final EventListener listener)
197 { 196 {
198 if (listener instanceof ServletRequestAttributeListener) 197 if (listener instanceof ServletRequestAttributeListener)
199 _requestAttributeListeners = LazyList.add(_requestAttributeListeners,listener); 198 _requestAttributeListeners = LazyList.add(_requestAttributeListeners,listener);
200 if (listener instanceof ContinuationListener)
201 throw new IllegalArgumentException(listener.getClass().toString());
202 if (listener instanceof AsyncListener) 199 if (listener instanceof AsyncListener)
203 throw new IllegalArgumentException(listener.getClass().toString()); 200 throw new IllegalArgumentException(listener.getClass().toString());
204 } 201 }
205 202
206 /* ------------------------------------------------------------ */ 203 /* ------------------------------------------------------------ */