public interface StubHttpServer
StubHttpServerManager
instance.
Jadler provides a default implementation of this interface
JettyStubHttpServer
based on an embedded jetty server.Modifier and Type | Method and Description |
---|---|
int |
getPort() |
void |
registerRequestManager(RequestManager requestManager)
Registers a response provider.
|
void |
start()
Starts the underlying http server.
|
void |
stop()
Stops the underlying http server.
|
void registerRequestManager(RequestManager requestManager)
StubResponse
instance) for a given http request.requestManager
- response provider to use to retrieve response prescriptions.void start() throws Exception
StubHttpServerManager
instance.Exception
- when ugh... something went wrongvoid stop() throws Exception
Exception
- when an error occurred while stopping the serverint getPort()
Copyright © 2016. All Rights Reserved.