public interface HttpServerStub
Modifier and Type | Method and Description |
---|---|
default int |
httpsPort()
Https port on which the server is running.
|
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.
|
String |
registeredMappings()
Returns a collection of registered mappings
|
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)
default HttpServerStub start(HttpServerStubConfiguration configuration)
configuration
- - setup for the given stubHttpServerStub stop()
default HttpServerStub reset()
HttpServerStub registerMappings(Collection<File> stubFiles)
String registeredMappings()
boolean isAccepted(File file)
true
if the file is a valid stub mappingCopyright © 2016–2019 Spring. All rights reserved.