Class ServerUtils

java.lang.Object
org.aksw.jenax.web.frontend.ServerUtils

public class ServerUtils extends Object
Utils to start a jetty server. http://stackoverflow.com/questions/10738816/deploying-a-servlet- programmatically-with-jetty http://stackoverflow.com/questions/3718221/add-resources -to-jetty-programmatically
Author:
raven http://kielczewski.eu/2013/11/using-embedded-jetty-spring-mvc/
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
     
    static org.eclipse.jetty.server.Server
    prepareServer(int port, String externalForm, org.springframework.web.WebApplicationInitializer initializer)
     
    static org.eclipse.jetty.server.Server
    prepareServer(int port, org.springframework.web.WebApplicationInitializer initializer)
     
    static org.eclipse.jetty.server.Server
    prepareServer(Class<?> clazz, int port, org.springframework.web.WebApplicationInitializer initializer)
     
    static org.eclipse.jetty.server.Server
    startServer(int port, String externalForm, org.springframework.web.WebApplicationInitializer initializer)
     
    static org.eclipse.jetty.server.Server
    startServer(int port, org.springframework.web.WebApplicationInitializer initializer)
     
    static org.eclipse.jetty.server.Server
    startServer(Class<?> clazz, int port, org.springframework.web.WebApplicationInitializer initializer)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ServerUtils

      public ServerUtils()
  • Method Details

    • startServer

      public static org.eclipse.jetty.server.Server startServer(int port, org.springframework.web.WebApplicationInitializer initializer)
    • startServer

      public static org.eclipse.jetty.server.Server startServer(Class<?> clazz, int port, org.springframework.web.WebApplicationInitializer initializer)
    • startServer

      public static org.eclipse.jetty.server.Server startServer(int port, String externalForm, org.springframework.web.WebApplicationInitializer initializer)
    • prepareServer

      public static org.eclipse.jetty.server.Server prepareServer(int port, org.springframework.web.WebApplicationInitializer initializer)
    • getExternalForm

      public static String getExternalForm(Class<?> clazz)
    • prepareServer

      public static org.eclipse.jetty.server.Server prepareServer(Class<?> clazz, int port, org.springframework.web.WebApplicationInitializer initializer)
    • prepareServer

      public static org.eclipse.jetty.server.Server prepareServer(int port, String externalForm, org.springframework.web.WebApplicationInitializer initializer)