org.sonatype.tests.http.server.fluent
Class Server

java.lang.Object
  extended by org.sonatype.tests.http.server.fluent.Server
Direct Known Subclasses:
Proxy

public class Server
extends Object

Since:
1.0

Constructor Summary
Server(ServerProvider serverProvider)
           
 
Method Summary
 int getPort()
           
 URL getUrl()
           
 ServeContext serve(String pattern)
           
 Server start()
           
 void stop()
           
static Server withPort(int port)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Server

public Server(ServerProvider serverProvider)
Method Detail

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-2012 Sonatype, Inc.. All Rights Reserved.