Class WireMockRuleConfiguration

java.lang.Object
org.kohsuke.github.junit.WireMockRuleConfiguration
All Implemented Interfaces:
com.github.tomakehurst.wiremock.core.Options

public class WireMockRuleConfiguration extends Object implements com.github.tomakehurst.wiremock.core.Options
The Class WireMockRuleConfiguration.
  • Method Details

    • wireMockConfig

      public static WireMockRuleConfiguration wireMockConfig()
      Wire mock config.
      Returns:
      the wire mock rule configuration
    • options

      public static WireMockRuleConfiguration options()
      Options.
      Returns:
      the wire mock rule configuration
    • forChildPath

      public WireMockRuleConfiguration forChildPath(String childPath)
      For child path.
      Parameters:
      childPath - the child path
      Returns:
      the wire mock rule configuration
    • filesRoot

      public com.github.tomakehurst.wiremock.common.FileSource filesRoot()
      Files root.
      Specified by:
      filesRoot in interface com.github.tomakehurst.wiremock.core.Options
      Returns:
      the file source
    • mappingsLoader

      public com.github.tomakehurst.wiremock.standalone.MappingsLoader mappingsLoader()
      Mappings loader.
      Specified by:
      mappingsLoader in interface com.github.tomakehurst.wiremock.core.Options
      Returns:
      the mappings loader
    • mappingsSaver

      public com.github.tomakehurst.wiremock.core.MappingsSaver mappingsSaver()
      Mappings saver.
      Specified by:
      mappingsSaver in interface com.github.tomakehurst.wiremock.core.Options
      Returns:
      the mappings saver
    • mappingSource

      public WireMockRuleConfiguration mappingSource(com.github.tomakehurst.wiremock.standalone.MappingsSource mappingsSource)
      Mapping source.
      Parameters:
      mappingsSource - the mappings source
      Returns:
      the wire mock rule configuration
    • extensionsOfType

      public <T extends com.github.tomakehurst.wiremock.extension.Extension> Map<String,T> extensionsOfType(Class<T> extensionType)
      Extensions of type.
      Specified by:
      extensionsOfType in interface com.github.tomakehurst.wiremock.core.Options
      Type Parameters:
      T - the generic type
      Parameters:
      extensionType - the extension type
      Returns:
      the map
    • portNumber

      public int portNumber()
      Port number.
      Specified by:
      portNumber in interface com.github.tomakehurst.wiremock.core.Options
      Returns:
      the int
    • getHttpDisabled

      public boolean getHttpDisabled()
      Gets the http disabled.
      Specified by:
      getHttpDisabled in interface com.github.tomakehurst.wiremock.core.Options
      Returns:
      the http disabled
    • containerThreads

      public int containerThreads()
      Container threads.
      Specified by:
      containerThreads in interface com.github.tomakehurst.wiremock.core.Options
      Returns:
      the int
    • httpsSettings

      public com.github.tomakehurst.wiremock.common.HttpsSettings httpsSettings()
      Https settings.
      Specified by:
      httpsSettings in interface com.github.tomakehurst.wiremock.core.Options
      Returns:
      the https settings
    • jettySettings

      public com.github.tomakehurst.wiremock.common.JettySettings jettySettings()
      Jetty settings.
      Specified by:
      jettySettings in interface com.github.tomakehurst.wiremock.core.Options
      Returns:
      the jetty settings
    • browserProxyingEnabled

      public boolean browserProxyingEnabled()
      Browser proxying enabled.
      Specified by:
      browserProxyingEnabled in interface com.github.tomakehurst.wiremock.core.Options
      Returns:
      true, if successful
    • browserProxySettings

      public com.github.tomakehurst.wiremock.common.BrowserProxySettings browserProxySettings()
      Browser proxy settings.
      Specified by:
      browserProxySettings in interface com.github.tomakehurst.wiremock.core.Options
      Returns:
      the browser proxy settings
    • proxyVia

      public com.github.tomakehurst.wiremock.common.ProxySettings proxyVia()
      Proxy via.
      Specified by:
      proxyVia in interface com.github.tomakehurst.wiremock.core.Options
      Returns:
      the proxy settings
    • notifier

      public com.github.tomakehurst.wiremock.common.Notifier notifier()
      Notifier.
      Specified by:
      notifier in interface com.github.tomakehurst.wiremock.core.Options
      Returns:
      the notifier
    • requestJournalDisabled

      public boolean requestJournalDisabled()
      Request journal disabled.
      Specified by:
      requestJournalDisabled in interface com.github.tomakehurst.wiremock.core.Options
      Returns:
      true, if successful
    • maxRequestJournalEntries

      public wiremock.com.google.common.base.Optional<Integer> maxRequestJournalEntries()
      Max request journal entries.
      Specified by:
      maxRequestJournalEntries in interface com.github.tomakehurst.wiremock.core.Options
      Returns:
      the optional
    • bindAddress

      public String bindAddress()
      Bind address.
      Specified by:
      bindAddress in interface com.github.tomakehurst.wiremock.core.Options
      Returns:
      the string
    • matchingHeaders

      public List<com.github.tomakehurst.wiremock.http.CaseInsensitiveKey> matchingHeaders()
      Matching headers.
      Specified by:
      matchingHeaders in interface com.github.tomakehurst.wiremock.core.Options
      Returns:
      the list
    • httpServerFactory

      public com.github.tomakehurst.wiremock.http.HttpServerFactory httpServerFactory()
      Http server factory.
      Specified by:
      httpServerFactory in interface com.github.tomakehurst.wiremock.core.Options
      Returns:
      the http server factory
    • threadPoolFactory

      public com.github.tomakehurst.wiremock.http.ThreadPoolFactory threadPoolFactory()
      Thread pool factory.
      Specified by:
      threadPoolFactory in interface com.github.tomakehurst.wiremock.core.Options
      Returns:
      the thread pool factory
    • shouldPreserveHostHeader

      public boolean shouldPreserveHostHeader()
      Should preserve host header.
      Specified by:
      shouldPreserveHostHeader in interface com.github.tomakehurst.wiremock.core.Options
      Returns:
      true, if successful
    • proxyHostHeader

      public String proxyHostHeader()
      Proxy host header.
      Specified by:
      proxyHostHeader in interface com.github.tomakehurst.wiremock.core.Options
      Returns:
      the string
    • networkTrafficListener

      public com.github.tomakehurst.wiremock.http.trafficlistener.WiremockNetworkTrafficListener networkTrafficListener()
      Network traffic listener.
      Specified by:
      networkTrafficListener in interface com.github.tomakehurst.wiremock.core.Options
      Returns:
      the wiremock network traffic listener
    • getAdminAuthenticator

      public com.github.tomakehurst.wiremock.security.Authenticator getAdminAuthenticator()
      Gets the admin authenticator.
      Specified by:
      getAdminAuthenticator in interface com.github.tomakehurst.wiremock.core.Options
      Returns:
      the admin authenticator
    • getHttpsRequiredForAdminApi

      public boolean getHttpsRequiredForAdminApi()
      Gets the https required for admin api.
      Specified by:
      getHttpsRequiredForAdminApi in interface com.github.tomakehurst.wiremock.core.Options
      Returns:
      the https required for admin api
    • getNotMatchedRenderer

      public com.github.tomakehurst.wiremock.verification.notmatched.NotMatchedRenderer getNotMatchedRenderer()
      Gets the not matched renderer.
      Specified by:
      getNotMatchedRenderer in interface com.github.tomakehurst.wiremock.core.Options
      Returns:
      the not matched renderer
    • getAsynchronousResponseSettings

      public com.github.tomakehurst.wiremock.common.AsynchronousResponseSettings getAsynchronousResponseSettings()
      Gets the asynchronous response settings.
      Specified by:
      getAsynchronousResponseSettings in interface com.github.tomakehurst.wiremock.core.Options
      Returns:
      the asynchronous response settings
    • getChunkedEncodingPolicy

      public com.github.tomakehurst.wiremock.core.Options.ChunkedEncodingPolicy getChunkedEncodingPolicy()
      Gets the chunked encoding policy.
      Specified by:
      getChunkedEncodingPolicy in interface com.github.tomakehurst.wiremock.core.Options
      Returns:
      the chunked encoding policy
    • getGzipDisabled

      public boolean getGzipDisabled()
      Gets the gzip disabled.
      Specified by:
      getGzipDisabled in interface com.github.tomakehurst.wiremock.core.Options
      Returns:
      the gzip disabled
    • getStubRequestLoggingDisabled

      public boolean getStubRequestLoggingDisabled()
      Gets the stub request logging disabled.
      Specified by:
      getStubRequestLoggingDisabled in interface com.github.tomakehurst.wiremock.core.Options
      Returns:
      the stub request logging disabled
    • getStubCorsEnabled

      public boolean getStubCorsEnabled()
      Gets the stub cors enabled.
      Specified by:
      getStubCorsEnabled in interface com.github.tomakehurst.wiremock.core.Options
      Returns:
      the stub cors enabled
    • timeout

      public long timeout()
      Timeout.
      Specified by:
      timeout in interface com.github.tomakehurst.wiremock.core.Options
      Returns:
      the long
    • getDisableOptimizeXmlFactoriesLoading

      public boolean getDisableOptimizeXmlFactoriesLoading()
      Gets the disable optimize xml factories loading.
      Specified by:
      getDisableOptimizeXmlFactoriesLoading in interface com.github.tomakehurst.wiremock.core.Options
      Returns:
      the disable optimize xml factories loading
    • getDisableStrictHttpHeaders

      public boolean getDisableStrictHttpHeaders()
      Gets the disable strict http headers.
      Specified by:
      getDisableStrictHttpHeaders in interface com.github.tomakehurst.wiremock.core.Options
      Returns:
      the disable strict http headers
    • getDataTruncationSettings

      public com.github.tomakehurst.wiremock.common.DataTruncationSettings getDataTruncationSettings()
      Gets the data truncation settings.
      Specified by:
      getDataTruncationSettings in interface com.github.tomakehurst.wiremock.core.Options
      Returns:
      the data truncation settings
    • getProxyTargetRules

      public com.github.tomakehurst.wiremock.common.NetworkAddressRules getProxyTargetRules()
      Gets the network address rules.
      Specified by:
      getProxyTargetRules in interface com.github.tomakehurst.wiremock.core.Options
      Returns:
      the network address rules