public class WireMockHttpServerStub extends Object implements HttpServerStub
Constructor and Description |
---|
WireMockHttpServerStub() |
Modifier and Type | Method and Description |
---|---|
protected Map<String,wiremock.com.github.jknack.handlebars.Helper> |
helpers()
Deprecated.
- please use the
WireMockExtensions mechanism and pass the
helpers in your implementation |
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.
|
HttpServerStub |
reset()
Resets the server.
|
HttpServerStub |
start()
Starts the server on a random port.
|
HttpServerStub |
start(HttpServerStubConfiguration configuration)
Starts the server.
|
HttpServerStub |
start(int port)
Starts the server on a given port.
|
HttpServerStub |
stop()
Stops the server.
|
@Deprecated protected Map<String,wiremock.com.github.jknack.handlebars.Helper> helpers()
WireMockExtensions
mechanism and pass the
helpers in your implementationpublic int port()
HttpServerStub
-1
if not applicable.port
in interface HttpServerStub
public boolean isRunning()
HttpServerStub
true
if the server is runningisRunning
in interface HttpServerStub
public HttpServerStub start()
HttpServerStub
start
in interface HttpServerStub
public HttpServerStub start(int port)
HttpServerStub
start
in interface HttpServerStub
public HttpServerStub start(HttpServerStubConfiguration configuration)
HttpServerStub
start
in interface HttpServerStub
configuration
- - setup for the given stubpublic int httpsPort()
HttpServerStub
-1
if not applicable.httpsPort
in interface HttpServerStub
public HttpServerStub reset()
HttpServerStub
reset
in interface HttpServerStub
public HttpServerStub stop()
HttpServerStub
stop
in interface HttpServerStub
public HttpServerStub registerMappings(Collection<File> stubFiles)
HttpServerStub
registerMappings
in interface HttpServerStub
public String registeredMappings()
HttpServerStub
registeredMappings
in interface HttpServerStub
public boolean isAccepted(File file)
HttpServerStub
true
if the file is a valid stub mappingisAccepted
in interface HttpServerStub
Copyright © 2016–2019 Spring. All rights reserved.