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 ClassesModifier and TypeInterfaceDescriptionstatic classImplementation that does nothing. -
Method Summary
Modifier and TypeMethodDescriptiondefault 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 Details
-
isAccepted
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
-