Package com.quickwebframework.view.struts2.support

Examples of com.quickwebframework.view.struts2.support.PluginActionProxyFactory


    this.filterConfig = new Struts2FilterConfig(this.servletConfig,
        this.context, bundle);
    synchronized (PluginStruts2DispatchServlet.class) {
      PluginStruts2DispatchServlet.currentBundle = this.bundle;
      PluginStruts2DispatchServlet.currentServletContext = this.context;
      struts2Filter = new PluginStrutsPrepareAndExecuteFilter();
      struts2Filter.init(this.filterConfig);
      PluginStruts2DispatchServlet.currentBundle = null;
      PluginStruts2DispatchServlet.currentServletContext = null;
    }
  }
View Full Code Here


    return viewTypeServlet;
  }

  public void start(BundleContext bundleContext) throws Exception {
    Activator.context = bundleContext;
    viewTypeServlet = new Struts2ViewTypeServlet();
    viewTypeServlet.register();
  }
View Full Code Here

  @Override
  public void service(HttpServletRequest request, HttpServletResponse response)
      throws IOException, ServletException {
    LocalizedTextUtil.setDelegatedClassLoader(bundleClassLoader);
    struts2Filter.doFilter(
        new PluginHttpServletRequest(request, struts2ViewTypeServlet
            .getViewTypeName(), bundle.getSymbolicName(),
            struts2ViewTypeServlet.getViewRenderService()),
        new PluginHttpServletResponse(response), null);
  }
View Full Code Here

    LocalizedTextUtil.setDelegatedClassLoader(bundleClassLoader);
    struts2Filter.doFilter(
        new PluginHttpServletRequest(request, struts2ViewTypeServlet
            .getViewTypeName(), bundle.getSymbolicName(),
            struts2ViewTypeServlet.getViewRenderService()),
        new PluginHttpServletResponse(response), null);
  }
View Full Code Here

  public Dispatcher getDispatcher() {
    return dispatcher;
  }

  public void init(FilterConfig filterConfig) throws ServletException {
    PluginInitOperations init = new PluginInitOperations();
    try {
      FilterHostConfig config = new FilterHostConfig(filterConfig);
      init.initLogging(config);
      dispatcher = init.initDispatcher(config);
      init.initStaticContentLoader(config, dispatcher);

      prepare = new PrepareOperations(filterConfig.getServletContext(),
          dispatcher);
      execute = new ExecuteOperations(filterConfig.getServletContext(),
          dispatcher);
      this.excludedPatterns = init.buildExcludedPatternsList(dispatcher);

      postInit(dispatcher, filterConfig);
    } finally {
      init.cleanup();
    }

  }
View Full Code Here

  @Override
  public void init(final ServletConfig config) throws ServletException {
    super.init(config);
    this.servletConfig = config;
    this.context = new Struts2ServletContext(config.getServletContext());
    this.filterConfig = new Struts2FilterConfig(this.servletConfig,
        this.context, bundle);
    synchronized (PluginStruts2DispatchServlet.class) {
      PluginStruts2DispatchServlet.currentBundle = this.bundle;
      PluginStruts2DispatchServlet.currentServletContext = this.context;
      struts2Filter = new PluginStrutsPrepareAndExecuteFilter();
View Full Code Here

  @Override
  public void init(final ServletConfig config) throws ServletException {
    super.init(config);
    this.servletConfig = config;
    this.context = new Struts2ServletContext(config.getServletContext());
    this.filterConfig = new Struts2FilterConfig(this.servletConfig,
        this.context, bundle);
    synchronized (PluginStruts2DispatchServlet.class) {
      PluginStruts2DispatchServlet.currentBundle = this.bundle;
      PluginStruts2DispatchServlet.currentServletContext = this.context;
View Full Code Here

TOP

Related Classes of com.quickwebframework.view.struts2.support.PluginActionProxyFactory

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.