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()
Deprecated.
|
default HttpServerStub |
start(HttpServerStubConfiguration configuration)
Starts the server.
|
HttpServerStub |
start(int port)
Deprecated.
|
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 running@Deprecated HttpServerStub start()
start(HttpServerStubConfiguration)
@Deprecated HttpServerStub start(int port)
start(HttpServerStubConfiguration)
port
- port on which the server should be randefault HttpServerStub 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–2019 Spring. All rights reserved.