com.nesscomputing.httpserver.testing
Class LocalHttpService

java.lang.Object
  extended by com.nesscomputing.httpserver.testing.LocalHttpService

public class LocalHttpService
extends Object

Helper class for unit tests to spin up a local http service.


Constructor Summary
LocalHttpService(org.eclipse.jetty.server.Handler handler)
          Deprecated. Use forHandler(Handler).
 
Method Summary
static LocalHttpService forHandler(org.eclipse.jetty.server.Handler handler)
           
static LocalHttpService forSecureHandler(org.eclipse.jetty.server.Handler handler, String login, String password)
           
static LocalHttpService forSecureSSLHandler(org.eclipse.jetty.server.Handler handler, String login, String password)
           
static LocalHttpService forSSLClientSSLServerHandler(org.eclipse.jetty.server.Handler handler, String truststore, String truststorePassword, String keystore, String keystorePassword, String keystoreType)
           
static LocalHttpService forSSLHandler(org.eclipse.jetty.server.Handler handler)
           
 String getHost()
           
 int getPort()
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalHttpService

@Deprecated
public LocalHttpService(org.eclipse.jetty.server.Handler handler)
Deprecated. Use forHandler(Handler).

Method Detail

forHandler

public static LocalHttpService forHandler(org.eclipse.jetty.server.Handler handler)

forSecureHandler

public static LocalHttpService forSecureHandler(org.eclipse.jetty.server.Handler handler,
                                                String login,
                                                String password)

forSSLHandler

public static LocalHttpService forSSLHandler(org.eclipse.jetty.server.Handler handler)

forSecureSSLHandler

public static LocalHttpService forSecureSSLHandler(org.eclipse.jetty.server.Handler handler,
                                                   String login,
                                                   String password)

forSSLClientSSLServerHandler

public static LocalHttpService forSSLClientSSLServerHandler(org.eclipse.jetty.server.Handler handler,
                                                            String truststore,
                                                            String truststorePassword,
                                                            String keystore,
                                                            String keystorePassword,
                                                            String keystoreType)

start

public void start()

stop

public void stop()

getHost

public String getHost()

getPort

public int getPort()


Copyright © 2012 Ness Computing, Inc.. All Rights Reserved.