| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.mortbay.jetty.servlet.Dispatcher
Servlet RequestDispatcher. If the request attribute "org.mortbay.jetty.servlet.Dispatcher.shared_session" is set, then sessions are shared in cross context dispatch. Watch out for class loading issues!
| Field Summary | |
| static java.lang.String | __CONTEXT_PATH | 
| static StringMap | __managedAttributes | 
| static java.lang.String | __PATH_INFO | 
| static java.lang.String | __QUERY_STRING | 
| static java.lang.String | __REQUEST_URI | 
| static java.lang.String | __SERVLET_PATH | 
| Method Summary | |
|  void | forward(ServletRequest servletRequest,
        ServletResponse servletResponse)Forwards a request from a servlet to another resource (servlet, JSP file, or HTML file) on the server. | 
|  void | include(ServletRequest servletRequest,
        ServletResponse servletResponse)Includes the content of a resource (servlet, JSP page, HTML file) in the response. | 
|  boolean | isNamed() | 
|  java.lang.String | toString() | 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
public static final java.lang.String __REQUEST_URI
public static final java.lang.String __CONTEXT_PATH
public static final java.lang.String __SERVLET_PATH
public static final java.lang.String __PATH_INFO
public static final java.lang.String __QUERY_STRING
public static final StringMap __managedAttributes
| Method Detail | 
public boolean isNamed()
public void include(ServletRequest servletRequest,
                    ServletResponse servletResponse)
             throws ServletException,
                    java.io.IOException
RequestDispatcherThe ServletResponse object has its path elements
 and parameters remain unchanged from the caller's. The included
 servlet cannot change the response status code or set headers;
 any attempt to make a change is ignored.
 
The request and response parameters must be either the same
 objects as were passed to the calling servlet's service method or be
 subclasses of the ServletRequestWrapper or ServletResponseWrapper classes
 that wrap them.
include in interface RequestDispatcherservletRequest - a ServletRequest object 
					that contains the client's requestservletResponse - a ServletResponse object 
 					that contains the servlet's response
java.io.IOException - if the included resource throws this exception
ServletException - if the included resource throws this exception
public void forward(ServletRequest servletRequest,
                    ServletResponse servletResponse)
             throws ServletException,
                    java.io.IOException
RequestDispatcherFor a RequestDispatcher obtained via 
 getRequestDispatcher(), the ServletRequest 
 object has its path elements and parameters adjusted to match
 the path of the target resource.
 
forward should be called before the response has been 
 committed to the client (before response body output has been flushed).  
 If the response already has been committed, this method throws
 an IllegalStateException.
 Uncommitted output in the response buffer is automatically cleared 
 before the forward.
 
The request and response parameters must be either the same
 objects as were passed to the calling servlet's service method or be
 subclasses of the ServletRequestWrapper or ServletResponseWrapper classes
 that wrap them.
forward in interface RequestDispatcherservletRequest - a ServletRequest object
				that represents the request the client
 				makes of the servletservletResponse - a ServletResponse object
				that represents the response the servlet
				returns to the client
java.io.IOException - if the target resource throws this exception
ServletException - if the target resource throws this exceptionpublic java.lang.String toString()
toString in class java.lang.Object| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||