org.apache.uima.simpleserver.util
Class JettyUtils

java.lang.Object
  extended by org.apache.uima.simpleserver.util.JettyUtils

public class JettyUtils
extends Object


Constructor Summary
JettyUtils()
           
 
Method Summary
static void addServletWithMapping(org.mortbay.jetty.Server server, Class<?> servlet, String pathSpec)
           
static void addServletWithMapping(org.mortbay.jetty.Server server, javax.servlet.Servlet servlet, String pathSpec)
           
static org.mortbay.jetty.Server createServer()
           
static String getHost(org.mortbay.jetty.Server server)
           
static int getPort(org.mortbay.jetty.Server server)
           
static String getServletUrl(org.mortbay.jetty.Server server)
           
static void main(String[] args)
           
static org.mortbay.jetty.Server startJettyServer(String analysisEngineDescriptor, String mappingFile)
           
static void stopJettyServer(org.mortbay.jetty.Server server)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JettyUtils

public JettyUtils()
Method Detail

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.