org.jboss.portal.portlet.impl
Class PortletRequestDispatcherImpl

java.lang.Object
  extended by org.jboss.portal.portlet.impl.PortletRequestDispatcherImpl
All Implemented Interfaces:
PortletRequestDispatcher, FilterCommand

public class PortletRequestDispatcherImpl
extends java.lang.Object
implements PortletRequestDispatcher, FilterCommand


Field Summary
 
Fields inherited from interface org.jboss.portal.server.servlet.FilterCommand
REQ_ATT_KEY
 
Constructor Summary
PortletRequestDispatcherImpl(javax.servlet.RequestDispatcher dispatcher)
           
PortletRequestDispatcherImpl(javax.servlet.RequestDispatcher dispatcher, java.lang.String path)
           
 
Method Summary
 java.lang.Object 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
 

Constructor Detail

PortletRequestDispatcherImpl

public PortletRequestDispatcherImpl(javax.servlet.RequestDispatcher dispatcher)

PortletRequestDispatcherImpl

public PortletRequestDispatcherImpl(javax.servlet.RequestDispatcher dispatcher,
                                    java.lang.String path)
Method Detail

execute

public java.lang.Object 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 request
resp - 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