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 class 
    Implementation that does nothing.
  • Method Summary

    Modifier and Type
    Method
    Description
    default T
    configure(T httpStubConfiguration, HttpServerStubConfiguration httpServerStubConfiguration)
    Performs additional configuration of the HTTP Server Stub.
    boolean
    isAccepted(Object httpStubConfiguration)
    Ensures that the HTTP server stub implementation configuration type is accepted.
  • Method Details

    • isAccepted

      boolean isAccepted(Object httpStubConfiguration)
      Ensures that the HTTP server stub implementation configuration type is accepted.
      Parameters:
      httpStubConfiguration - - HTTP server stub implementation
      Returns:
      true when 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 configure
      httpServerStubConfiguration - - Spring Cloud Contract stub configuration
      Returns:
      the modified stub configuration