java.lang.Object
org.kohsuke.github.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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.github.tomakehurst.wiremock.core.Options
com.github.tomakehurst.wiremock.core.Options.ChunkedEncodingPolicy
-
Field Summary
Fields inherited from interface com.github.tomakehurst.wiremock.core.Options
DEFAULT_BIND_ADDRESS, DEFAULT_CONTAINER_THREADS, DEFAULT_PORT, DEFAULT_TIMEOUT, DYNAMIC_PORT
-
Method Summary
Modifier and TypeMethodDescriptionBind address.boolean
Browser proxying enabled.com.github.tomakehurst.wiremock.common.BrowserProxySettings
Browser proxy settings.int
Container threads.extensionsOfType
(Class<T> extensionType) Extensions of type.com.github.tomakehurst.wiremock.common.FileSource
Files root.forChildPath
(String childPath) For child path.com.github.tomakehurst.wiremock.security.Authenticator
Gets the admin authenticator.com.github.tomakehurst.wiremock.common.AsynchronousResponseSettings
Gets the asynchronous response settings.com.github.tomakehurst.wiremock.core.Options.ChunkedEncodingPolicy
Gets the chunked encoding policy.com.github.tomakehurst.wiremock.common.DataTruncationSettings
Gets the data truncation settings.boolean
Gets the disable optimize xml factories loading.boolean
Gets the disable strict http headers.boolean
Gets the gzip disabled.boolean
Gets the http disabled.boolean
Gets the https required for admin api.com.github.tomakehurst.wiremock.verification.notmatched.NotMatchedRenderer
Gets the not matched renderer.com.github.tomakehurst.wiremock.common.NetworkAddressRules
Gets the network address rules.boolean
Gets the stub cors enabled.boolean
Gets the stub request logging disabled.com.github.tomakehurst.wiremock.http.HttpServerFactory
Http server factory.com.github.tomakehurst.wiremock.common.HttpsSettings
Https settings.com.github.tomakehurst.wiremock.common.JettySettings
Jetty settings.com.github.tomakehurst.wiremock.standalone.MappingsLoader
Mappings loader.mappingSource
(com.github.tomakehurst.wiremock.standalone.MappingsSource mappingsSource) Mapping source.com.github.tomakehurst.wiremock.core.MappingsSaver
Mappings saver.List<com.github.tomakehurst.wiremock.http.CaseInsensitiveKey>
Matching headers.wiremock.com.google.common.base.Optional<Integer>
Max request journal entries.com.github.tomakehurst.wiremock.http.trafficlistener.WiremockNetworkTrafficListener
Network traffic listener.com.github.tomakehurst.wiremock.common.Notifier
notifier()
Notifier.static WireMockRuleConfiguration
options()
Options.int
Port number.Proxy host header.com.github.tomakehurst.wiremock.common.ProxySettings
proxyVia()
Proxy via.boolean
Request journal disabled.boolean
Should preserve host header.com.github.tomakehurst.wiremock.http.ThreadPoolFactory
Thread pool factory.long
timeout()
Timeout.static WireMockRuleConfiguration
Wire mock config.
-
Method Details
-
wireMockConfig
Wire mock config.- Returns:
- the wire mock rule configuration
-
options
Options.- Returns:
- the wire mock rule configuration
-
forChildPath
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 interfacecom.github.tomakehurst.wiremock.core.Options
- Returns:
- the file source
-
mappingsLoader
public com.github.tomakehurst.wiremock.standalone.MappingsLoader mappingsLoader()Mappings loader.- Specified by:
mappingsLoader
in interfacecom.github.tomakehurst.wiremock.core.Options
- Returns:
- the mappings loader
-
mappingsSaver
public com.github.tomakehurst.wiremock.core.MappingsSaver mappingsSaver()Mappings saver.- Specified by:
mappingsSaver
in interfacecom.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 interfacecom.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 interfacecom.github.tomakehurst.wiremock.core.Options
- Returns:
- the int
-
getHttpDisabled
public boolean getHttpDisabled()Gets the http disabled.- Specified by:
getHttpDisabled
in interfacecom.github.tomakehurst.wiremock.core.Options
- Returns:
- the http disabled
-
containerThreads
public int containerThreads()Container threads.- Specified by:
containerThreads
in interfacecom.github.tomakehurst.wiremock.core.Options
- Returns:
- the int
-
httpsSettings
public com.github.tomakehurst.wiremock.common.HttpsSettings httpsSettings()Https settings.- Specified by:
httpsSettings
in interfacecom.github.tomakehurst.wiremock.core.Options
- Returns:
- the https settings
-
jettySettings
public com.github.tomakehurst.wiremock.common.JettySettings jettySettings()Jetty settings.- Specified by:
jettySettings
in interfacecom.github.tomakehurst.wiremock.core.Options
- Returns:
- the jetty settings
-
browserProxyingEnabled
public boolean browserProxyingEnabled()Browser proxying enabled.- Specified by:
browserProxyingEnabled
in interfacecom.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 interfacecom.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 interfacecom.github.tomakehurst.wiremock.core.Options
- Returns:
- the proxy settings
-
notifier
public com.github.tomakehurst.wiremock.common.Notifier notifier()Notifier.- Specified by:
notifier
in interfacecom.github.tomakehurst.wiremock.core.Options
- Returns:
- the notifier
-
requestJournalDisabled
public boolean requestJournalDisabled()Request journal disabled.- Specified by:
requestJournalDisabled
in interfacecom.github.tomakehurst.wiremock.core.Options
- Returns:
- true, if successful
-
maxRequestJournalEntries
Max request journal entries.- Specified by:
maxRequestJournalEntries
in interfacecom.github.tomakehurst.wiremock.core.Options
- Returns:
- the optional
-
bindAddress
Bind address.- Specified by:
bindAddress
in interfacecom.github.tomakehurst.wiremock.core.Options
- Returns:
- the string
-
matchingHeaders
Matching headers.- Specified by:
matchingHeaders
in interfacecom.github.tomakehurst.wiremock.core.Options
- Returns:
- the list
-
httpServerFactory
public com.github.tomakehurst.wiremock.http.HttpServerFactory httpServerFactory()Http server factory.- Specified by:
httpServerFactory
in interfacecom.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 interfacecom.github.tomakehurst.wiremock.core.Options
- Returns:
- the thread pool factory
-
shouldPreserveHostHeader
public boolean shouldPreserveHostHeader()Should preserve host header.- Specified by:
shouldPreserveHostHeader
in interfacecom.github.tomakehurst.wiremock.core.Options
- Returns:
- true, if successful
-
proxyHostHeader
Proxy host header.- Specified by:
proxyHostHeader
in interfacecom.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 interfacecom.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 interfacecom.github.tomakehurst.wiremock.core.Options
- Returns:
- the admin authenticator
-
getHttpsRequiredForAdminApi
public boolean getHttpsRequiredForAdminApi()Gets the https required for admin api.- Specified by:
getHttpsRequiredForAdminApi
in interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.github.tomakehurst.wiremock.core.Options
- Returns:
- the chunked encoding policy
-
getGzipDisabled
public boolean getGzipDisabled()Gets the gzip disabled.- Specified by:
getGzipDisabled
in interfacecom.github.tomakehurst.wiremock.core.Options
- Returns:
- the gzip disabled
-
getStubRequestLoggingDisabled
public boolean getStubRequestLoggingDisabled()Gets the stub request logging disabled.- Specified by:
getStubRequestLoggingDisabled
in interfacecom.github.tomakehurst.wiremock.core.Options
- Returns:
- the stub request logging disabled
-
getStubCorsEnabled
public boolean getStubCorsEnabled()Gets the stub cors enabled.- Specified by:
getStubCorsEnabled
in interfacecom.github.tomakehurst.wiremock.core.Options
- Returns:
- the stub cors enabled
-
timeout
public long timeout()Timeout.- Specified by:
timeout
in interfacecom.github.tomakehurst.wiremock.core.Options
- Returns:
- the long
-
getDisableOptimizeXmlFactoriesLoading
public boolean getDisableOptimizeXmlFactoriesLoading()Gets the disable optimize xml factories loading.- Specified by:
getDisableOptimizeXmlFactoriesLoading
in interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.github.tomakehurst.wiremock.core.Options
- Returns:
- the network address rules
-