Class HttpServerStubConfiguration
java.lang.Object
org.springframework.cloud.contract.stubrunner.HttpServerStubConfiguration
Configuration class for an
HttpServerStub
.- Since:
- 2.1.0
- Author:
- Marcin Grzejszczak
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal HttpServerStubConfigurer
Allows to perform additional configuration of the HTTP Server stub.final Integer
Port at which the stub will be started.boolean
Is port a random one or was it fixed.final StubConfiguration
Configuration of a particular stub.final StubRunnerOptions
Options of Stub Runner itself. -
Constructor Summary
ConstructorsConstructorDescriptionHttpServerStubConfiguration
(HttpServerStubConfigurer configurer, StubRunnerOptions stubRunnerOptions, StubConfiguration stubConfiguration, Integer port) HttpServerStubConfiguration
(HttpServerStubConfigurer configurer, StubRunnerOptions stubRunnerOptions, StubConfiguration stubConfiguration, Integer port, boolean randomPort) -
Method Summary
Modifier and TypeMethodDescriptionboolean
-
Field Details
-
configurer
Allows to perform additional configuration of the HTTP Server stub. -
stubRunnerOptions
Options of Stub Runner itself. -
stubConfiguration
Configuration of a particular stub. -
port
Port at which the stub will be started. -
randomPort
public boolean randomPortIs port a random one or was it fixed.
-
-
Constructor Details
-
HttpServerStubConfiguration
public HttpServerStubConfiguration(HttpServerStubConfigurer configurer, StubRunnerOptions stubRunnerOptions, StubConfiguration stubConfiguration, Integer port) -
HttpServerStubConfiguration
public HttpServerStubConfiguration(HttpServerStubConfigurer configurer, StubRunnerOptions stubRunnerOptions, StubConfiguration stubConfiguration, Integer port, boolean randomPort)
-
-
Method Details
-
isRandomPort
public boolean isRandomPort() -
toColonSeparatedDependencyNotation
-