org.apache.uima.simpleserver.util
Class JettyUtils
java.lang.Object
org.apache.uima.simpleserver.util.JettyUtils
public class JettyUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JettyUtils
public JettyUtils()
startJettyServer
public static final org.mortbay.jetty.Server startJettyServer(String analysisEngineDescriptor,
String mappingFile)
throws Exception
- Throws:
Exception
stopJettyServer
public static final void stopJettyServer(org.mortbay.jetty.Server server)
throws Exception
- Throws:
Exception
getServletUrl
public static final String getServletUrl(org.mortbay.jetty.Server server)
main
public static void main(String[] args)
createServer
public static org.mortbay.jetty.Server createServer()
addServletWithMapping
public static void addServletWithMapping(org.mortbay.jetty.Server server,
Class<?> servlet,
String pathSpec)
addServletWithMapping
public static void addServletWithMapping(org.mortbay.jetty.Server server,
javax.servlet.Servlet servlet,
String pathSpec)
getHost
public static String getHost(org.mortbay.jetty.Server server)
getPort
public static int getPort(org.mortbay.jetty.Server server)
Copyright © 2006-2011 The Apache Software Foundation. All Rights Reserved.