Package main.webapp

Examples of main.webapp.WebServer


            throws ServletException, IOException {
        resp.getWriter().print("Hello from Java!\n");
    }
 
  public static void main(String[] args) throws Exception {
    WebServer webServer = WebServer.getInstance();
    webServer.setPort(System.getenv("PORT"));
    String webappDirLocation = "src/main/java/com/mycompany";
    webServer.setWebAppDirectoryLocation(webappDirLocation);

    //servlets for sms service
    webServer.addServlet("HelloWorld", "com.mycompany.HelloWorld");
    webServer.addServletMapping("/helloworld", "HelloWorld");
    webServer.start();
   
   
}
View Full Code Here

TOP

Related Classes of main.webapp.WebServer

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.