Class HttpServerStubConfiguration
- java.lang.Object
-
- org.springframework.cloud.contract.stubrunner.HttpServerStubConfiguration
-
public final class HttpServerStubConfiguration extends Object
Configuration class for anHttpServerStub
.- Since:
- 2.1.0
- Author:
- Marcin Grzejszczak
-
-
Field Summary
Fields Modifier and Type Field Description HttpServerStubConfigurer
configurer
Allows to perform additional configuration of the HTTP Server stub.Integer
port
Port at which the stub will be started.boolean
randomPort
Is port a random one or was it fixed.StubConfiguration
stubConfiguration
Configuration of a particular stub.StubRunnerOptions
stubRunnerOptions
Options of Stub Runner itself.
-
Constructor Summary
Constructors Constructor Description HttpServerStubConfiguration(HttpServerStubConfigurer configurer, StubRunnerOptions stubRunnerOptions, StubConfiguration stubConfiguration, Integer port)
HttpServerStubConfiguration(HttpServerStubConfigurer configurer, StubRunnerOptions stubRunnerOptions, StubConfiguration stubConfiguration, Integer port, boolean randomPort)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isRandomPort()
String
toColonSeparatedDependencyNotation()
-
-
-
Field Detail
-
configurer
public final HttpServerStubConfigurer configurer
Allows to perform additional configuration of the HTTP Server stub.
-
stubRunnerOptions
public final StubRunnerOptions stubRunnerOptions
Options of Stub Runner itself.
-
stubConfiguration
public final StubConfiguration stubConfiguration
Configuration of a particular stub.
-
port
public final Integer port
Port at which the stub will be started.
-
randomPort
public boolean randomPort
Is port a random one or was it fixed.
-
-
Constructor Detail
-
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 Detail
-
isRandomPort
public boolean isRandomPort()
-
toColonSeparatedDependencyNotation
public String toColonSeparatedDependencyNotation()
-
-