当前页面:
在线文档首页 >
JBOSS Portal 2.4 API 英文版文档
PortletRequestDispatcherImpl - JBOSS Portal 2.4 API 英文版文档
org.jboss.portal.portlet.impl.jsr168
Class PortletRequestDispatcherImpl
java.lang.Object
org.jboss.portal.portlet.impl.jsr168.PortletRequestDispatcherImpl
- All Implemented Interfaces:
- FilterCommand, PortletRequestDispatcher
- public class PortletRequestDispatcherImpl
- extends java.lang.Object
- implements PortletRequestDispatcher, FilterCommand
Method Summary |
void |
execute(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
javax.servlet.FilterChain chain)
|
void |
include(RenderRequest req,
RenderResponse resp)
Includes the content of a resource (servlet, JSP page,
HTML file) in the response. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PortletRequestDispatcherImpl
public PortletRequestDispatcherImpl(javax.servlet.RequestDispatcher dispatcher)
PortletRequestDispatcherImpl
public PortletRequestDispatcherImpl(javax.servlet.RequestDispatcher dispatcher,
java.lang.String path)
execute
public void execute(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
javax.servlet.FilterChain chain)
throws javax.servlet.ServletException,
java.io.IOException
- Specified by:
execute
in interface FilterCommand
- Throws:
javax.servlet.ServletException
java.io.IOException
include
public void include(RenderRequest req,
RenderResponse resp)
throws PortletException,
java.io.IOException
- Description copied from interface:
PortletRequestDispatcher
- Includes the content of a resource (servlet, JSP page,
HTML file) in the response. In essence, this method enables
programmatic server-side includes.
The included servlet cannot set or change the response status code
or set headers; any attempt to make a change is ignored.
- Specified by:
include
in interface PortletRequestDispatcher
- Parameters:
req
- a RenderRequest
object
that contains the client requestresp
- a RenderResponse
object
that contains the render response
- Throws:
PortletException
- if the included resource throws a ServletException,
or other exceptions that are not Runtime-
or IOExceptions.
java.io.IOException
- if the included resource throws this exception