Examples of PortletRequestContext


Examples of org.apache.commons.fileupload.portlet.PortletRequestContext

  public boolean isMultipart(ActionRequest request) {
    if (commonsFileUpload12Present) {
      return PortletFileUpload.isMultipartContent(request);
    }
    else {
      return PortletFileUpload.isMultipartContent(new PortletRequestContext(request));
    }
  }
View Full Code Here

Examples of org.apache.jetspeed.container.PortletRequestContext

        return new Enumerator(configuration.getKeys());
    }
   
    private Collection getSupportedModes()
    {
        PortletRequestContext ctx = PortletRequestContext.getContext();
        if ( ctx != null )
        {
            PortletApplication pa = ((PortletApplication)ctx.getPortletDefinition().getPortletApplicationDefinition());
            return pa.getSupportedPortletModes();
        }
        return JetspeedActions.getStandardPortletModes();
    }
View Full Code Here

Examples of org.apache.pluto.container.PortletRequestContext

        PortletRequestContextService rcService = getContainerServices().getPortletRequestContextService();
        PortletEnvironmentService envService = getContainerServices().getPortletEnvironmentService();
        PortletInvokerService invoker = getContainerServices().getPortletInvokerService();

        PortletRequestContext requestContext = rcService.getPortletRenderRequestContext(this, request, response, portletWindow);
        PortletRenderResponseContext responseContext = rcService.getPortletRenderResponseContext(this, request, response, portletWindow);
        RenderRequest portletRequest = envService.createRenderRequest(requestContext, responseContext);
        RenderResponse portletResponse = envService.createRenderResponse(responseContext);

        FilterManager filterManager = filterInitialisation(portletWindow,PortletRequest.RENDER_PHASE);
View Full Code Here

Examples of org.apache.pluto.container.PortletRequestContext

        PortletRequestContextService rcService = getContainerServices().getPortletRequestContextService();
        PortletEnvironmentService envService = getContainerServices().getPortletEnvironmentService();
        PortletInvokerService invoker = getContainerServices().getPortletInvokerService();

        PortletRequestContext requestContext = rcService.getPortletActionRequestContext(this, request, response, portletWindow);
        PortletActionResponseContext responseContext = rcService.getPortletActionResponseContext(this, request, response, portletWindow);
        ActionRequest portletRequest = envService.createActionRequest(requestContext, responseContext);
        ActionResponse portletResponse = envService.createActionResponse(responseContext);

        FilterManager filterManager = filterInitialisation(portletWindow,PortletRequest.ACTION_PHASE);
View Full Code Here

Examples of org.apache.pluto.container.PortletRequestContext

        PortletRequestContextService rcService = getContainerServices().getPortletRequestContextService();
        PortletEnvironmentService envService = getContainerServices().getPortletEnvironmentService();
        PortletInvokerService invoker = getContainerServices().getPortletInvokerService();

        PortletRequestContext requestContext = rcService.getPortletRenderRequestContext(this, request, response, portletWindow);
        PortletRenderResponseContext responseContext = rcService.getPortletRenderResponseContext(this, request, response, portletWindow);
        RenderRequest portletRequest = envService.createRenderRequest(requestContext, responseContext);
        RenderResponse portletResponse = envService.createRenderResponse(responseContext);

        try
View Full Code Here

Examples of org.apache.pluto.container.PortletRequestContext

        PortletRequestContextService rcService = getContainerServices().getPortletRequestContextService();
        PortletEnvironmentService envService = getContainerServices().getPortletEnvironmentService();
        PortletInvokerService invoker = getContainerServices().getPortletInvokerService();

        PortletRequestContext requestContext = rcService.getPortletRenderRequestContext(this, request, response, portletWindow);
        PortletRenderResponseContext responseContext = rcService.getPortletRenderResponseContext(this, request, response, portletWindow);
        RenderRequest portletRequest = envService.createRenderRequest(requestContext, responseContext);
        RenderResponse portletResponse = envService.createRenderResponse(responseContext);

        try
View Full Code Here

Examples of org.apache.pluto.container.PortletRequestContext

        PortletRequestContextService rcService = getContainerServices().getPortletRequestContextService();
        PortletEnvironmentService envService = getContainerServices().getPortletEnvironmentService();
        PortletInvokerService invoker = getContainerServices().getPortletInvokerService();

        PortletRequestContext requestContext = rcService.getPortletEventRequestContext(this, request, response, portletWindow);
        PortletEventResponseContext responseContext = rcService.getPortletEventResponseContext(this, request, response, portletWindow);
        EventRequest portletRequest = envService.createEventRequest(requestContext, responseContext, event);
        EventResponse portletResponse = envService.createEventResponse(responseContext);

        FilterManager filterManager = filterInitialisation(portletWindow,PortletRequest.EVENT_PHASE);
View Full Code Here

Examples of org.apache.pluto.container.PortletRequestContext

        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);

        request.removeAttribute(PortletInvokerService.METHOD_ID);
        request.removeAttribute(PortletInvokerService.PORTLET_REQUEST);
        request.removeAttribute(PortletInvokerService.PORTLET_RESPONSE);
        request.removeAttribute(PortletInvokerService.FILTER_MANAGER);

        DriverPortletConfig portletConfig = portletConfigs.get(portletName);
        requestContext.init(portletConfig, getServletContext(), request, response);
        responseContext.init(request, response);

        PortletWindow window = requestContext.getPortletWindow();

        PortletInvocationEvent event = new PortletInvocationEvent(portletRequest, window, methodId.intValue());

        notify(event, true, null);
View Full Code Here

Examples of org.apache.wicket.protocol.http.portlet.PortletRequestContext

            url = requestContext.encodeRenderURL(url);
          }
        }
        else
        {
          PortletRequestContext prc = (PortletRequestContext)requestContext;
          boolean forceActionURL = prc.isAjax();
          if (forceActionURL)
          {
            List<IBehavior> behaviors = iliRequestTarget.getTarget().getBehaviors();
            for (int i = 0, size = behaviors.size(); i < size; i++)
            {
              if (AbstractAjaxBehavior.class.isAssignableFrom(behaviors.get(i)
                .getClass()))
              {
                forceActionURL = false;
                break;
              }
            }
          }
          url = prc.encodeActionURL(url, forceActionURL);
        }
      }
    }
    else if (url == null)
    {
View Full Code Here

Examples of org.apache.wicket.protocol.http.portlet.PortletRequestContext

            url = requestContext.encodeRenderURL(url);
          }
        }
        else
        {
          PortletRequestContext prc = (PortletRequestContext)requestContext;
          boolean forceActionURL = prc.isAjax();
          if (forceActionURL)
          {
            List behaviors = iliRequestTarget.getTarget().getBehaviors();
            for (int i = 0, size = behaviors.size(); i < size; i++)
            {
              if (AbstractAjaxBehavior.class.isAssignableFrom(behaviors.get(i)
                .getClass()))
              {
                forceActionURL = false;
                break;
              }
            }
          }
          url = prc.encodeActionURL(url, forceActionURL);
        }
      }
    }
    else if (url == null)
    {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.