Examples of PortletServletContext


Examples of org.apache.struts2.portlet.servlet.PortletServletContext

            String name = (String) e.nextElement();
            String value = cfg.getInitParameter(name);
            params.put(name, value);
        }
       
        dispatcherUtils = new Dispatcher(new PortletServletContext(cfg.getPortletContext()), params);
        dispatcherUtils.init();
       
        // For testability
        if (factory == null) {
            factory = dispatcherUtils.getConfigurationManager().getConfiguration().getContainer().getInstance(ActionProxyFactory.class);
View Full Code Here

Examples of org.apache.struts2.portlet.servlet.PortletServletContext

            PortletResponse response, PortletConfig portletConfig, Integer phase) throws IOException {

        // TODO Must put http request/response objects into map for use with
      HttpServletResponse dummyResponse = new PortletServletResponse(response);
      HttpServletRequest dummyRequest = new PortletServletRequest(request, getPortletContext());
      ServletContext dummyServletContext = new PortletServletContext(getPortletContext());
      if(EVENT_PHASE.equals(phase)) {
        dummyRequest = dispatcherUtils.wrapRequest(dummyRequest, dummyServletContext);
        if(dummyRequest instanceof MultiPartRequestWrapper) {
          // Multipart request. Request parameters are encoded in the multipart data,
          // so we need to manually add them to the parameter map.
View Full Code Here

Examples of org.apache.struts2.portlet.servlet.PortletServletContext

            String name = (String) e.nextElement();
            String value = cfg.getInitParameter(name);
            params.put(name, value);
        }

        dispatcherUtils = new Dispatcher(new PortletServletContext(cfg.getPortletContext()), params);
        dispatcherUtils.init();

        // For testability
        if (factory == null) {
            factory = dispatcherUtils.getConfigurationManager().getConfiguration().getContainer().getInstance(ActionProxyFactory.class);
View Full Code Here

Examples of org.apache.struts2.portlet.servlet.PortletServletContext

        if (LOG.isDebugEnabled()) LOG.debug("serviceAction");
        Dispatcher.setInstance(dispatcherUtils);
        String actionName = null;
        String namespace;
        try {
            ServletContext servletContext = new PortletServletContext(getPortletContext());
            HttpServletRequest servletRequest = new PortletServletRequest(request, getPortletContext());
            HttpServletResponse servletResponse = createPortletServletResponse(response);
            if (phase.isAction()) {
                servletRequest = dispatcherUtils.wrapRequest(servletRequest, servletContext);
                if (servletRequest instanceof MultiPartRequestWrapper) {
View Full Code Here

Examples of org.apache.struts2.portlet.servlet.PortletServletContext

            String name = (String) e.nextElement();
            String value = cfg.getInitParameter(name);
            params.put(name, value);
        }
       
        dispatcherUtils = new Dispatcher(new PortletServletContext(cfg.getPortletContext()), params);
        dispatcherUtils.init();
       
        // For testability
        if (factory == null) {
            factory = dispatcherUtils.getConfigurationManager().getConfiguration().getContainer().getInstance(ActionProxyFactory.class);
View Full Code Here

Examples of org.apache.struts2.portlet.servlet.PortletServletContext

        // TODO Must put http request/response objects into map for use with
      HttpServletResponse dummyResponse = new PortletServletResponse(response);
      HttpServletRequest dummyRequest = new PortletServletRequest(request, getPortletContext());
      container.inject(dummyRequest);
      ServletContext dummyServletContext = new PortletServletContext(getPortletContext());
      if(EVENT_PHASE.equals(phase)) {
        dummyRequest = dispatcherUtils.wrapRequest(dummyRequest, dummyServletContext);
        if(dummyRequest instanceof MultiPartRequestWrapper) {
          // Multipart request. Request parameters are encoded in the multipart data,
          // so we need to manually add them to the parameter map.
View Full Code Here

Examples of org.apache.struts2.portlet.servlet.PortletServletContext

            String name = (String) e.nextElement();
            String value = cfg.getInitParameter(name);
            params.put(name, value);
        }
       
        dispatcherUtils = new Dispatcher(new PortletServletContext(cfg.getPortletContext()), params);
        dispatcherUtils.init();
       
        // For testability
        if (factory == null) {
            factory = dispatcherUtils.getConfigurationManager().getConfiguration().getContainer().getInstance(ActionProxyFactory.class);
View Full Code Here

Examples of org.apache.struts2.portlet.servlet.PortletServletContext

        LOG.debug("serviceAction");
        Dispatcher.setInstance(dispatcherUtils);
        String actionName = null;
        String namespace = null;
        try {
            ServletContext servletContext = new PortletServletContext(getPortletContext());
            HttpServletRequest servletRequest = new PortletServletRequest(request, getPortletContext());
            HttpServletResponse servletResponse = new PortletServletResponse(response);
            if(EVENT_PHASE.equals(phase)) {
              servletRequest = dispatcherUtils.wrapRequest(servletRequest, servletContext);
            if(servletRequest instanceof MultiPartRequestWrapper) {
View Full Code Here

Examples of org.apache.struts2.portlet.servlet.PortletServletContext

            params.put(name, value);
        }

        // TODO: CHECK IF NEEDED (RG Portlet Refactoring Backports)
        Dispatcher.setPortletSupportActive(true);
        dispatcherUtils = new Dispatcher(new PortletServletContext(cfg.getPortletContext()), params);
        dispatcherUtils.init();
       
        // For testability
        if (factory == null) {
            factory = dispatcherUtils.getConfigurationManager().getConfiguration().getContainer().getInstance(ActionProxyFactory.class);
View Full Code Here

Examples of org.apache.struts2.portlet.servlet.PortletServletContext

        // TODO Must put http request/response objects into map for use with
        // ServletActionContext
        HttpServletResponse dummyResponse = new PortletServletResponse(response);
        HttpServletRequest dummyRequest = new PortletServletRequest(request, getPortletContext());
        ServletContext dummyServletContext = new PortletServletContext(getPortletContext());
        if(EVENT_PHASE.equals(phase)) {
            dummyRequest = dispatcherUtils.wrapRequest(dummyRequest, dummyServletContext);
        }
        HashMap<String,Object> extraContext = new HashMap<String,Object>();
        // The dummy servlet objects. Eases reuse of existing interceptors that uses the servlet objects.
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.