public interface HttpServerStub
Modifier and Type | Method and Description |
---|---|
boolean |
isAccepted(File file)
Returns
true if the file is a valid stub mapping |
boolean |
isRunning()
Returns
true if the server is running |
int |
port()
Port on which the server is running
|
HttpServerStub |
registerMappings(Collection<File> stubFiles)
Registers the stub files in the HTTP server stub.
|
HttpServerStub |
start()
Starts the server on a random port.
|
HttpServerStub |
start(int port)
Starts the server on a given port.
|
HttpServerStub |
stop()
Stops the server.
|
int port()
boolean isRunning()
true
if the server is runningHttpServerStub start()
HttpServerStub start(int port)
HttpServerStub stop()
HttpServerStub registerMappings(Collection<File> stubFiles)
boolean isAccepted(File file)
true
if the file is a valid stub mappingCopyright © 2016–2018 Spring. All rights reserved.