public class JettyUtils extends Object
Constructor and Description |
---|
JettyUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
addServletWithMapping(org.eclipse.jetty.server.Server server,
Class<? extends javax.servlet.Servlet> servlet,
String pathSpec) |
static void |
addServletWithMapping(org.eclipse.jetty.server.Server server,
javax.servlet.Servlet servlet,
String pathSpec) |
static org.eclipse.jetty.server.Server |
createServer() |
static String |
getHost(org.eclipse.jetty.server.Server server) |
static int |
getPort(org.eclipse.jetty.server.Server server) |
static String |
getServletUrl(org.eclipse.jetty.server.Server server) |
static void |
main(String[] args) |
static org.eclipse.jetty.server.Server |
startJettyServer(String analysisEngineDescriptor,
String mappingFile) |
static void |
stopJettyServer(org.eclipse.jetty.server.Server server) |
public static final org.eclipse.jetty.server.Server startJettyServer(String analysisEngineDescriptor, String mappingFile) throws Exception
Exception
public static final void stopJettyServer(org.eclipse.jetty.server.Server server) throws Exception
Exception
public static final String getServletUrl(org.eclipse.jetty.server.Server server)
public static void main(String[] args)
public static org.eclipse.jetty.server.Server createServer()
public static void addServletWithMapping(org.eclipse.jetty.server.Server server, Class<? extends javax.servlet.Servlet> servlet, String pathSpec)
public static void addServletWithMapping(org.eclipse.jetty.server.Server server, javax.servlet.Servlet servlet, String pathSpec)
public static String getHost(org.eclipse.jetty.server.Server server)
public static int getPort(org.eclipse.jetty.server.Server server)
Copyright © 2016. All rights reserved.