|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PortletRequestDispatcher
The PortletRequestDispatcher interface defines an object that receives requests from the client and sends them to the specified resources (such as a servlet, HTML file, or JSP file) on the server. The portlet container creates the PortletRequestDispatcher object, which is used as a wrapper around a server resource located at a particular path or given by a particular name.
Method Summary | |
---|---|
void | forward(PortletRequest request,
PortletResponse response)
Forwards a portlet request from a portlet to another resource (servlet, JSP file, or HTML file) on the server. |
void | include(PortletRequest request,
PortletResponse response)
Includes the content of a resource (servlet, JSP page, HTML file) in the response. |
void | include(RenderRequest request,
RenderResponse response)
Includes the content of a resource (servlet, JSP page, HTML file) in the response. |
Method Detail |
---|
void include(RenderRequest request, RenderResponse response) throws PortletException, java.io.IOException
The included servlet cannot set or change the response status code or set headers; any attempt to make a change is ignored.
This method is kept in order to provide backward compatibility with version 1.0. Please use include(PortletRequest, PortletResponse) instead of this method.
void include(PortletRequest request, PortletResponse response) throws PortletException, java.io.IOException
The included servlet cannot set or change the response status code or set headers; any attempt to make a change is ignored.
void forward(PortletRequest request, PortletResponse response) throws PortletException, java.io.IOException
The forward method should be called before the response has been committed to the portlet container (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 portlet or be wrapped versions of these.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |