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


    Map<String, Object> sessionMap = invocation.getInvocationContext().getSession();
    if (location.indexOf('?') != -1) {
      convertQueryParamsToRenderParams(location.substring(location.indexOf('?') + 1));
            location = location.substring(0, location.indexOf('?'));
    }
        PortletResponse response = PortletActionContext.getResponse();
    if (location.endsWith(".action")) {
      // View is rendered with a view action...luckily...
            location = location.substring(0, location.lastIndexOf("."));
      resultHelper.setRenderParameter(response, PortletConstants.ACTION_PARAM, location);
    } else {
View Full Code Here

     */
    protected void executeMimeResult(final String finalLocation) throws PortletException, IOException {
        if (LOG.isDebugEnabled()) LOG.debug("Executing mime result");
        PortletContext ctx = PortletActionContext.getPortletContext();
        PortletRequest req = PortletActionContext.getRequest();
        PortletResponse res = PortletActionContext.getResponse();

    if (StringUtils.isNotEmpty(title) && res instanceof RenderResponse) {
        ((RenderResponse)res).setTitle(title);
    }
        if (LOG.isDebugEnabled()) LOG.debug("Location: " + finalLocation);
View Full Code Here

      ServletRequest servletRequest = pageContext.getRequest();
     
      PortletRequest portletRequest =
        (PortletRequest) servletRequest.getAttribute(Constants.PORTLET_REQUEST);
     
      PortletResponse portletResponse =
        (PortletResponse) servletRequest.getAttribute(Constants.PORTLET_RESPONSE);
     
      PortletConfig portletConfig =
        (PortletConfig) servletRequest.getAttribute(Constants.PORTLET_CONFIG);
     
View Full Code Here

    /* (non-Javadoc)
     * @see javax.servlet.jsp.tagext.Tag#doStartTag()
     */
    public int doStartTag() throws JspException {
     
      PortletResponse portletResponse = (PortletResponse) pageContext.getRequest()
            .getAttribute(Constants.PORTLET_RESPONSE);
     
        String namespace = portletResponse.getNamespace();
       
        JspWriter writer = pageContext.getOut();
       
        try {
            writer.print(namespace);
View Full Code Here

                   escapeXml = Boolean.parseBoolean(result[0]);
               }
           }
       }
          
        PortletResponse portletResponse = (PortletResponse) pageContext.getRequest()
            .getAttribute(Constants.PORTLET_RESPONSE);
       
        if (portletResponse != null) {
         
          ResourceURL resourceURL = createResourceURL(portletResponse);
View Full Code Here

   * @see org.apache.pluto.tags.BaseURLTag#doStartTag()
   */
  @Override
    public int doStartTag() throws JspException {
                 
        PortletResponse portletResponse =
          (PortletResponse) pageContext.getRequest().getAttribute(Constants.PORTLET_RESPONSE);

        if (portletResponse != null) {
         
          PortletURL portletURL = createPortletUrl(portletResponse);            
View Full Code Here

      ServletRequest servletRequest = pageContext.getRequest();
     
      PortletRequest portletRequest =
        (PortletRequest) servletRequest.getAttribute(Constants.PORTLET_REQUEST);
     
      PortletResponse portletResponse =
        (PortletResponse) servletRequest.getAttribute(Constants.PORTLET_RESPONSE);
     
      PortletConfig portletConfig =
        (PortletConfig) servletRequest.getAttribute(Constants.PORTLET_CONFIG);
     
View Full Code Here

        // Retrieve attributes from the servlet request.
        Integer methodId = (Integer) request.getAttribute(PortletInvokerService.METHOD_ID);

        final PortletRequest portletRequest = (PortletRequest)request.getAttribute(PortletInvokerService.PORTLET_REQUEST);

        final PortletResponse portletResponse = (PortletResponse)request.getAttribute(PortletInvokerService.PORTLET_RESPONSE);

        final PortletRequestContext requestContext = (PortletRequestContext)portletRequest.getAttribute(PortletInvokerService.REQUEST_CONTEXT);
        final PortletResponseContext responseContext = (PortletResponseContext)portletRequest.getAttribute(PortletInvokerService.RESPONSE_CONTEXT);

        final FilterManager filterManager = (FilterManager)request.getAttribute(PortletInvokerService.FILTER_MANAGER);
View Full Code Here

    if (LOG.isDebugEnabled()) LOG.debug("Setting event render parameter: " + finalLocation);
    if (finalLocation.indexOf('?') != -1) {
      convertQueryParamsToRenderParams(finalLocation.substring(finalLocation.indexOf('?') + 1));
      finalLocation = finalLocation.substring(0, finalLocation.indexOf('?'));
    }
        PortletResponse response = PortletActionContext.getResponse();
    if (finalLocation.endsWith(".action")) {
      // View is rendered with a view action...luckily...
      finalLocation = finalLocation.substring(0, finalLocation.lastIndexOf("."));
      resultHelper.setRenderParameter(response, ACTION_PARAM, finalLocation);
    } else {
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.