public class WireMockHttpServerStub extends Object implements HttpServerStub
| Constructor and Description |
|---|
WireMockHttpServerStub() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
HttpServerStub |
reset()
Resets the server.
|
HttpServerStub |
start(HttpServerStubConfiguration configuration)
Starts the server.
|
HttpServerStub |
stop()
Stops the server.
|
public int port()
port in interface HttpServerStub-1 if not applicable.public boolean isRunning()
isRunning in interface HttpServerStubtrue if the server is runningpublic HttpServerStub start(HttpServerStubConfiguration configuration)
HttpServerStubstart in interface HttpServerStubconfiguration - - setup for the given stubpublic int httpsPort()
httpsPort in interface HttpServerStub-1 if not
applicable.public HttpServerStub reset()
HttpServerStubreset in interface HttpServerStubpublic HttpServerStub stop()
HttpServerStubstop in interface HttpServerStubpublic HttpServerStub registerMappings(Collection<File> stubFiles)
HttpServerStubregisterMappings in interface HttpServerStubstubFiles - collection of files containing stubspublic String registeredMappings()
registeredMappings in interface HttpServerStubpublic boolean isAccepted(File file)
isAccepted in interface HttpServerStubfile - file to check if can be accepted.true if the file is a valid stub mappingCopyright © 2016–2021 Spring. All rights reserved.