com.atlassian.webdriver.testing.simpleserver
Class SimpleServer

java.lang.Object
  extended by com.atlassian.webdriver.testing.simpleserver.SimpleServer

public class SimpleServer
extends Object

Simple server for serving up html pages and other resources from class path. Uses an an embedded Jetty server under the covers.

Since:
2.2

Constructor Summary
SimpleServer()
           
SimpleServer(int port)
           
SimpleServer(Map<String,String> urlMappings)
           
SimpleServer(Map<String,String> urlMappings, int port)
           
 
Method Summary
 int getPort()
           
static void main(String... args)
          Main method to run the server standalone.
 void startServer()
           
 void stopServer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleServer

public SimpleServer(int port)

SimpleServer

public SimpleServer()

SimpleServer

public SimpleServer(@Nonnull
                    Map<String,String> urlMappings)

SimpleServer

public SimpleServer(@Nonnull
                    Map<String,String> urlMappings,
                    int port)
Method Detail

main

public static void main(@Nonnull
                        String... args)
                 throws Exception
Main method to run the server standalone.

Parameters:
args - program arguments
Throws:
Exception - any exception

stopServer

public void stopServer()
                throws Exception
Throws:
Exception

startServer

public void startServer()
                 throws Exception
Throws:
Exception

getPort

public int getPort()


Copyright © 2014 Atlassian. All rights reserved.