com.atlassian.webdriver.testing.simpleserver
Class SimpleServer
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
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.