Package org.apache.pluto.internal

Examples of org.apache.pluto.internal.InternalRenderRequest


    // PortletRequestDispatcher Impl -------------------------------------------
   
    public void include(RenderRequest request, RenderResponse response)
    throws PortletException, IOException {

        InternalRenderRequest internalRequest = (InternalRenderRequest)
                InternalImplConverter.getInternalRequest(request);
        InternalRenderResponse internalResponse = (InternalRenderResponse)
                InternalImplConverter.getInternalResponse(response);
       
        boolean isIncluded = (internalRequest.isIncluded()
            || internalResponse.isIncluded());
        try {
          internalRequest.setIncluded(true);
          internalRequest.setIncludedQueryString(queryString);
          internalResponse.setIncluded(true);

            requestDispatcher.include(
                (HttpServletRequest) internalRequest,
                (HttpServletResponse) internalResponse);
        } catch (IOException ex) {
            throw ex;
        } catch (ServletException ex) {
            if (ex.getRootCause() != null) {
                throw new PortletException(ex.getRootCause());
            } else {
                throw new PortletException(ex);
            }
        } finally {
          internalRequest.setIncluded(isIncluded);
          internalResponse.setIncluded(isIncluded);
        }
    }
View Full Code Here


    // PortletRequestDispatcher Impl -------------------------------------------
   
    public void include(RenderRequest request, RenderResponse response)
    throws PortletException, IOException {

        InternalRenderRequest internalRequest = (InternalRenderRequest)
                InternalImplConverter.getInternalRequest(request);
        InternalRenderResponse internalResponse = (InternalRenderResponse)
                InternalImplConverter.getInternalResponse(response);
       
        boolean isIncluded = (internalRequest.isIncluded()
            || internalResponse.isIncluded());
        try {
          internalRequest.setIncluded(true);
          internalRequest.setIncludedQueryString(queryString);
          internalResponse.setIncluded(true);

            requestDispatcher.include(
                (HttpServletRequest) internalRequest,
                (HttpServletResponse) internalResponse);
        } catch (IOException ex) {
            throw ex;
        } catch (ServletException ex) {
            if (ex.getRootCause() != null) {
                throw new PortletException(ex.getRootCause());
            } else {
                throw new PortletException(ex);
            }
        } finally {
          internalRequest.setIncluded(isIncluded);
          internalResponse.setIncluded(isIncluded);
        }
    }
View Full Code Here

                        portletWindow.getContextPath()),
                    portletWindow);
        debugWithName("Render request received for portlet: "
            + portletWindow.getPortletName());

        InternalRenderRequest renderRequest = getOptionalContainerServices().getPortletEnvironmentService()
            .createRenderRequest(this, request, response, internalPortletWindow);

        InternalRenderResponse renderResponse = getOptionalContainerServices().getPortletEnvironmentService()
            .createRenderResponse(this, request, response, internalPortletWindow);
View Full Code Here

                    portletWindow);

        debugWithName("Load request received for portlet: "
            + portletWindow.getPortletName());

        InternalRenderRequest renderRequest =
            getOptionalContainerServices().getPortletEnvironmentService()
                .createRenderRequest(this, request, response, internalPortletWindow);
       
        InternalRenderResponse renderResponse =
            getOptionalContainerServices().getPortletEnvironmentService()
View Full Code Here

          new InternalPortletWindowImpl(portletAppCtx, portletWindow);
       
        debugWithName("Render request received for portlet: "
            + portletWindow.getPortletName());

        InternalRenderRequest renderRequest = getOptionalContainerServices().getPortletEnvironmentService()
            .createRenderRequest(this, request, response, internalPortletWindow);

        InternalRenderResponse renderResponse = getOptionalContainerServices().getPortletEnvironmentService()
            .createRenderResponse(this, request, response, internalPortletWindow);
View Full Code Here

          new InternalPortletWindowImpl(portletAppCtx, portletWindow);

        debugWithName("Load request received for portlet: "
            + portletWindow.getPortletName());

        InternalRenderRequest renderRequest =
            getOptionalContainerServices().getPortletEnvironmentService()
                .createRenderRequest(this, request, response, internalPortletWindow);

        InternalRenderResponse renderResponse =
            getOptionalContainerServices().getPortletEnvironmentService()
View Full Code Here

    // PortletRequestDispatcher Impl -------------------------------------------

    public void include(RenderRequest request, RenderResponse response)
    throws PortletException, IOException {

        InternalRenderRequest internalRequest = (InternalRenderRequest)
                InternalImplConverter.getInternalRequest(request);
        InternalRenderResponse internalResponse = (InternalRenderResponse)
                InternalImplConverter.getInternalResponse(response);

        boolean isIncluded = (internalRequest.isIncluded()
            || internalResponse.isIncluded());
        try {
          internalRequest.setIncluded(true);
          internalRequest.setIncludedQueryString(queryString);
          internalResponse.setIncluded(true);

            requestDispatcher.include(
                (HttpServletRequest) internalRequest,
                (HttpServletResponse) internalResponse);
        } catch (IOException ex) {
            throw ex;
        } catch (ServletException ex) {
            if (ex.getRootCause() != null) {
                throw new PortletException(ex.getRootCause());
            } else {
                throw new PortletException(ex);
            }
        } finally {
          internalRequest.setIncluded(isIncluded);
          internalResponse.setIncluded(isIncluded);
        }
    }
View Full Code Here

                        portletWindow.getContextPath()),
                    portletWindow);
        debugWithName("Render request received for portlet: "
            + portletWindow.getPortletName());

        InternalRenderRequest renderRequest = getOptionalContainerServices().getPortletEnvironmentService()
            .createRenderRequest(this, request, response, internalPortletWindow);

        InternalRenderResponse renderResponse = getOptionalContainerServices().getPortletEnvironmentService()
            .createRenderResponse(this, request, response, internalPortletWindow);
View Full Code Here

                    portletWindow);

        debugWithName("Load request received for portlet: "
            + portletWindow.getPortletName());

        InternalRenderRequest renderRequest =
            getOptionalContainerServices().getPortletEnvironmentService()
                .createRenderRequest(this, request, response, internalPortletWindow);

        InternalRenderResponse renderResponse =
            getOptionalContainerServices().getPortletEnvironmentService()
View Full Code Here

TOP

Related Classes of org.apache.pluto.internal.InternalRenderRequest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.