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 HttpServerStubConfigurerconfigurerAllows to perform additional configuration of the HTTP Server stub.IntegerportPort at which the stub will be started.booleanrandomPortIs port a random one or was it fixed.StubConfigurationstubConfigurationConfiguration of a particular stub.StubRunnerOptionsstubRunnerOptionsOptions 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 booleanisRandomPort()StringtoColonSeparatedDependencyNotation()
-
-
-
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()
-
-