org.sonatype.tests.http.server.fluent
Class Server
java.lang.Object
org.sonatype.tests.http.server.fluent.Server
- Direct Known Subclasses:
- Proxy
public class Server
- extends Object
- Since:
- 1.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Server
public Server(ServerProvider serverProvider)
withPort
public static Server withPort(int port)
throws Exception
- Throws:
Exception
serve
public ServeContext serve(String pattern)
start
public Server start()
throws Exception
- Throws:
Exception
stop
public void stop()
throws Exception
- Throws:
Exception
getPort
public int getPort()
getUrl
public URL getUrl()
throws MalformedURLException
- Throws:
MalformedURLException
Copyright © 2010-2013 Sonatype, Inc.. All Rights Reserved.