Interface HttpServerStubConfigurer<T>
-
- Type Parameters:
T- type of the stub configuration
- All Known Implementing Classes:
HttpServerStubConfigurer.NoOpHttpServerStubConfigurer,WireMockHttpServerStubConfigurer
public interface HttpServerStubConfigurer<T>Allows to perform additional configuration of the HTTP Server stub.- Since:
- 2.1.0
- Author:
- Marcin Grzejszczak
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classHttpServerStubConfigurer.NoOpHttpServerStubConfigurerImplementation that does nothing.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Tconfigure(T httpStubConfiguration, HttpServerStubConfiguration httpServerStubConfiguration)Performs additional configuration of the HTTP Server Stub.booleanisAccepted(Object httpStubConfiguration)Ensures that the HTTP server stub implementation configuration type is accepted.
-
-
-
Method Detail
-
isAccepted
boolean isAccepted(Object httpStubConfiguration)
Ensures that the HTTP server stub implementation configuration type is accepted.- Parameters:
httpStubConfiguration- - HTTP server stub implementation- Returns:
truewhen this configurer can be applied for this object
-
configure
default T configure(T httpStubConfiguration, HttpServerStubConfiguration httpServerStubConfiguration)
Performs additional configuration of the HTTP Server Stub.- Parameters:
httpStubConfiguration- - stub implementation to configurehttpServerStubConfiguration- - Spring Cloud Contract stub configuration- Returns:
- the modified stub configuration
-
-