|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.spray.connector.chain.DefaultRequestDispatcher
public class DefaultRequestDispatcher
A default implementation of RequestDispatcher.
Note that we do hide almost everything of the original request, including request attributes, from dispatched request. Otherwise the filtering of the dispatched request would most certainly fail because of state information of the original request maintained in the request attributes by the filters.
The include method implementation uses the writer of the original response to write the included data. If the stream is already in use, it will be applied instead. The filtering of the included request may not set any header value, status codes or other response attributes including the character encoding. The included response has its own output buffer, though, which may be reset independently on the output buffer of the original response.
| Constructor Summary | |
|---|---|
DefaultRequestDispatcher(String path)
Constructs a new dispatcher for the encoded path. |
|
DefaultRequestDispatcher(String path,
MBeanServer server)
Constructs a new dispatcher for the encoded path with an MBean server. |
|
| Method Summary | |
|---|---|
void |
forward(ServletRequest request,
ServletResponse response)
|
void |
include(ServletRequest request,
ServletResponse response)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultRequestDispatcher(String path)
path - the dispatch path.
public DefaultRequestDispatcher(String path,
MBeanServer server)
path - the dispatch path.server - the MBean server.| Method Detail |
|---|
public void forward(ServletRequest request,
ServletResponse response)
throws ServletException,
IOException
forward in interface RequestDispatcherServletException
IOException
public void include(ServletRequest request,
ServletResponse response)
throws ServletException,
IOException
include in interface RequestDispatcherServletException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||