Package net.jadler.stubbing.server
Interface StubHttpServerManager
-
- All Known Implementing Classes:
JadlerMocker
public interface StubHttpServerManagerAn implementation of this interface can manage an underlying stub http server.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Stops the underlying stub http server.intgetStubHttpServerPort()booleanisStarted()voidstart()Starts the underlying stub http server
-
-
-
Method Detail
-
start
void start()
Starts the underlying stub http server- Throws:
JadlerException- if an error occurred while starting the stub http server.IllegalStateException- if the stub server has been started already.
-
close
void close()
Stops the underlying stub http server.- Throws:
JadlerException- if an error occurred while stopping the stub http server.IllegalStateException- if the stub server hasn't been started yet or has been stopped already.
-
isStarted
boolean isStarted()
- Returns:
- true, if the stub server has already been started, otherwise false
-
getStubHttpServerPort
int getStubHttpServerPort()
- Returns:
- port of HTTP server
-
-