View Javadoc

1   //
2   //  ========================================================================
3   //  Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd.
4   //  ------------------------------------------------------------------------
5   //  All rights reserved. This program and the accompanying materials
6   //  are made available under the terms of the Eclipse Public License v1.0
7   //  and Apache License v2.0 which accompanies this distribution.
8   //
9   //      The Eclipse Public License is available at
10  //      http://www.eclipse.org/legal/epl-v10.html
11  //
12  //      The Apache License v2.0 is available at
13  //      http://www.opensource.org/licenses/apache2.0.php
14  //
15  //  You may elect to redistribute this code under either of these licenses.
16  //  ========================================================================
17  //
18  
19  package org.eclipse.jetty.server;
20  
21  import javax.servlet.ServletContext;
22  import javax.servlet.ServletRequest;
23  import javax.servlet.ServletResponse;
24  
25  import org.eclipse.jetty.continuation.ContinuationListener;
26  
27  /* temporary interface in anticipation of servlet 3.0 */
28  public interface AsyncContext 
29  {
30      static final String ASYNC_REQUEST_URI = "javax.servlet.async.request_uri";
31      static final String ASYNC_CONTEXT_PATH = "javax.servlet.async.context_path";
32      static final String ASYNC_PATH_INFO = "javax.servlet.async.path_info";
33      static final String ASYNC_SERVLET_PATH = "javax.servlet.async.servlet_path";
34      static final String ASYNC_QUERY_STRING = "javax.servlet.async.query_string";
35  
36      public ServletRequest getRequest();
37      public ServletResponse getResponse();
38      public boolean hasOriginalRequestAndResponse();
39      public void dispatch();
40      public void dispatch(String path);
41      public void dispatch(ServletContext context, String path);
42      public void complete();
43      public void start(Runnable run);
44      public void setTimeout(long ms);
45      public void addContinuationListener(ContinuationListener listener);
46  }
47  
48