public interface HttpServerStub
| Modifier and Type | Method and Description |
|---|---|
default int |
httpsPort() |
boolean |
isAccepted(File file) |
boolean |
isRunning() |
int |
port() |
String |
registeredMappings() |
HttpServerStub |
registerMappings(Collection<File> stubFiles)
Registers the stub files in the HTTP server stub.
|
default HttpServerStub |
reset()
Resets the server.
|
HttpServerStub |
start(HttpServerStubConfiguration configuration)
Starts the server.
|
HttpServerStub |
stop()
Stops the server.
|
int port()
-1 if not applicable.default int httpsPort()
-1 if not
applicable.boolean isRunning()
true if the server is runningHttpServerStub start(HttpServerStubConfiguration configuration)
configuration - - setup for the given stubHttpServerStub stop()
default HttpServerStub reset()
HttpServerStub registerMappings(Collection<File> stubFiles)
stubFiles - collection of files containing stubsString registeredMappings()
boolean isAccepted(File file)
file - file to check if can be accepted.true if the file is a valid stub mappingCopyright © 2016–2021 Spring. All rights reserved.