Package javax.portlet

Examples of javax.portlet.PortletResponse


  }

  public void include(ServletRequest request, ServletResponse response) throws ServletException, IOException {
    if(request instanceof PortletServletRequest && response instanceof PortletServletResponse) {
      PortletRequest req = ((PortletServletRequest)request).getPortletRequest();
      PortletResponse resp = ((PortletServletResponse)response).getPortletResponse();
      if(req instanceof RenderRequest && resp instanceof RenderResponse) {
        try {
          portletRequestDispatcher.include((RenderRequest)req, (RenderResponse)resp);
        }
        catch(PortletException e) {
View Full Code Here


            PortletRequest request = (PortletRequest) context.get(REQUEST);
            ((PortletRequestAware) action).setPortletRequest(request);
        }

        if (action instanceof PortletResponseAware) {
            PortletResponse response = (PortletResponse) context.get(RESPONSE);
            ((PortletResponseAware) action).setPortletResponse(response);
        }
        if (action instanceof PrincipalAware) {
            PortletRequest request = (PortletRequest) context.get(REQUEST);
            ((PrincipalAware) action).setPrincipalProxy(new PortletPrincipalProxy(request));
View Full Code Here

  }

  public void include(ServletRequest request, ServletResponse response) throws ServletException, IOException {
    if(request instanceof PortletServletRequest && response instanceof PortletServletResponse) {
      PortletRequest req = ((PortletServletRequest)request).getPortletRequest();
      PortletResponse resp = ((PortletServletResponse)response).getPortletResponse();
      if(req instanceof RenderRequest && resp instanceof RenderResponse) {
        try {
          portletRequestDispatcher.include((RenderRequest)req, (RenderResponse)resp);
        }
        catch(PortletException e) {
View Full Code Here

            PortletRequest request = (PortletRequest) context.get(REQUEST);
            ((PortletRequestAware) action).setPortletRequest(request);
        }

        if (action instanceof PortletResponseAware) {
            PortletResponse response = (PortletResponse) context.get(RESPONSE);
            ((PortletResponseAware) action).setPortletResponse(response);
        }
        if (action instanceof PrincipalAware) {
            PortletRequest request = (PortletRequest) context.get(REQUEST);
            ((PrincipalAware) action).setPrincipalProxy(new PortletPrincipalProxy(request));
View Full Code Here

      long scopeGroupId = liferayFacesContext.getScopeGroupId();

      // Get the underlying HttpServletRequest and HttpServletResponse
      PortletRequest portletRequest = (PortletRequest) externalContext.getRequest();
      HttpServletRequest httpServletRequest = PortalUtil.getHttpServletRequest(portletRequest);
      PortletResponse portletResponse = (PortletResponse) externalContext.getResponse();
      HttpServletResponse httpServletResponse = PortalUtil.getHttpServletResponse(portletResponse);
      ELContext elContext = liferayFacesContext.getELContext();
      StringJspWriter stringJspWriter = new StringJspWriter();
      PageContextAdapter pageContextAdapter = new PageContextAdapter(httpServletRequest, httpServletResponse,
          elContext, stringJspWriter);
View Full Code Here

      long scopeGroupId = liferayFacesContext.getScopeGroupId();

      // Get the underlying HttpServletRequest and HttpServletResponse
      PortletRequest portletRequest = (PortletRequest) externalContext.getRequest();
      HttpServletRequest httpServletRequest = PortalUtil.getHttpServletRequest(portletRequest);
      PortletResponse portletResponse = (PortletResponse) externalContext.getResponse();
      HttpServletResponse httpServletResponse = PortalUtil.getHttpServletResponse(portletResponse);
      ELContext elContext = liferayFacesContext.getELContext();
      StringJspWriter stringJspWriter = new StringJspWriter();
      PageContextAdapter pageContextAdapter = new PageContextAdapter(httpServletRequest, httpServletResponse,
          elContext, stringJspWriter);
View Full Code Here

      this.viewRoot = viewRoot;
      // JSR-301 PLT 6.1.2 FacesContext
      if (viewRoot instanceof PortletNamingContainer) {
         Object response = getExternalContext().getResponse();
         if (response instanceof PortletResponse) {
            PortletResponse portletResponse = (PortletResponse) response;
            portletResponse.setProperty("X-JAVAX-PORTLET-IS-NAMESPACED",
                  "true");
         }
      }
   }
View Full Code Here

      this.viewRoot = viewRoot;
      // JSR-301 PLT 6.1.2 FacesContext
      if (viewRoot instanceof PortletNamingContainer) {
         Object response = getExternalContext().getResponse();
         if (response instanceof PortletResponse) {
            PortletResponse portletResponse = (PortletResponse) response;
            portletResponse.setProperty("X-JAVAX-PORTLET-IS-NAMESPACED",
                  "true");
         }
      }
   }
View Full Code Here

    // response so consumers can detect
    if (mViewRoot.getClass().getAnnotation(PortletNamingContainer.class) != null)
    {
      try
      {
        PortletResponse pr = (PortletResponse) mExternalContext.getResponse();
        pr.addProperty(Bridge.PORTLET_NAMESPACED_RESPONSE_PROPERTY, "true");
      }
      catch (Exception e)
      {
        // TODO: log message
        ; // do nothing -- just forge ahead
View Full Code Here

            PortletRequest request = (PortletRequest) context.get(PortletConstants.REQUEST);
            ((PortletRequestAware) action).setPortletRequest(request);
        }

        if (action instanceof PortletResponseAware) {
            PortletResponse response = (PortletResponse) context.get(PortletConstants.RESPONSE);
            ((PortletResponseAware) action).setPortletResponse(response);
        }
        if (action instanceof PrincipalAware) {
            PortletRequest request = (PortletRequest) context.get(PortletConstants.REQUEST);
            ((PrincipalAware) action).setPrincipalProxy(new PortletPrincipalProxy(request));
View Full Code Here

TOP

Related Classes of javax.portlet.PortletResponse

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.