Package net.sourceforge.javautil.web.server

Examples of net.sourceforge.javautil.web.server.WebServerApplicationEvent


      MockHttpServletContext context = new MockHttpServletContext(this, application);
      WebApplicationDeploymentContext deployment = new WebApplicationDeploymentContext(this, application, context);
      application.preDeploySetup(deployment, false);
      context.initialize();
      this.deployed.put(application.getName(), deployment);
      server.getHandler().applicationDeployed(new WebServerApplicationEvent(server, this, application));
      return true;
    } catch (Exception e) {
      server.getHandler().applicationError(new WebServerApplicationErrorEvent(this, server, application, e, e.getMessage()));
      return false;
    }
View Full Code Here


      throw new WebServerException(server, "No such application to undeploy: " + name);
   
    try {
      ((MockHttpServletContext)deployed.get(name).getServletContext()).destroyed();
      deployed.get(name).getApplication().postUndeployCleanup(deployed.get(name), false);
      server.getHandler().applicationUndeployed(new WebServerApplicationEvent(server, this, deployed.get(name).getApplication()));
      deployed.remove(name);
      return true;
    } catch (Exception e) {
      server.getHandler().applicationUndeployed(new WebServerApplicationErrorEvent(this, server, deployed.get(name).getApplication(), e, e.getMessage()));
      return false;
View Full Code Here

      return false;
    }
  }
 
  public void postSetup(WebApplication application, WebXml webXml) {
    server.getHandler().applicationPreDeployPostSetup(new WebServerApplicationEvent(server, this, application), webXml);
  }
View Full Code Here

  public void postSetup(WebApplication application, WebXml webXml) {
    server.getHandler().applicationPreDeployPostSetup(new WebServerApplicationEvent(server, this, application), webXml);
  }

  public void preCleanup(WebApplication application) {
    server.getHandler().applicationPostUndeployPreCleanup(new WebServerApplicationEvent(server, this, application));
  }
View Full Code Here

TOP

Related Classes of net.sourceforge.javautil.web.server.WebServerApplicationEvent

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.