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.booleanBrowser proxying enabled.com.github.tomakehurst.wiremock.common.BrowserProxySettingsBrowser proxy settings.intContainer threads.extensionsOfType(Class<T> extensionType) Extensions of type.com.github.tomakehurst.wiremock.common.FileSourceFiles root.forChildPath(String childPath) For child path.com.github.tomakehurst.wiremock.security.AuthenticatorGets the admin authenticator.com.github.tomakehurst.wiremock.common.AsynchronousResponseSettingsGets the asynchronous response settings.com.github.tomakehurst.wiremock.core.Options.ChunkedEncodingPolicyGets the chunked encoding policy.com.github.tomakehurst.wiremock.common.DataTruncationSettingsGets the data truncation settings.booleanGets the disable optimize xml factories loading.booleanGets the disable strict http headers.booleanGets the gzip disabled.booleanGets the http disabled.booleanGets the https required for admin api.com.github.tomakehurst.wiremock.verification.notmatched.NotMatchedRendererGets the not matched renderer.com.github.tomakehurst.wiremock.common.NetworkAddressRulesGets the network address rules.booleanGets the stub cors enabled.booleanGets the stub request logging disabled.com.github.tomakehurst.wiremock.http.HttpServerFactoryHttp server factory.com.github.tomakehurst.wiremock.common.HttpsSettingsHttps settings.com.github.tomakehurst.wiremock.common.JettySettingsJetty settings.com.github.tomakehurst.wiremock.standalone.MappingsLoaderMappings loader.mappingSource(com.github.tomakehurst.wiremock.standalone.MappingsSource mappingsSource) Mapping source.com.github.tomakehurst.wiremock.core.MappingsSaverMappings 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.WiremockNetworkTrafficListenerNetwork traffic listener.com.github.tomakehurst.wiremock.common.Notifiernotifier()Notifier.static WireMockRuleConfigurationoptions()Options.intPort number.Proxy host header.com.github.tomakehurst.wiremock.common.ProxySettingsproxyVia()Proxy via.booleanRequest journal disabled.booleanShould preserve host header.com.github.tomakehurst.wiremock.http.ThreadPoolFactoryThread pool factory.longtimeout()Timeout.static WireMockRuleConfigurationWire mock config.
-
Method Details
-
options
Options.- Returns:
- the wire mock rule configuration
-
wireMockConfig
Wire mock config.- Returns:
- the wire mock rule configuration
-
bindAddress
Bind address.- Specified by:
bindAddressin interfacecom.github.tomakehurst.wiremock.core.Options- Returns:
- the string
-
browserProxySettings
public com.github.tomakehurst.wiremock.common.BrowserProxySettings browserProxySettings()Browser proxy settings.- Specified by:
browserProxySettingsin interfacecom.github.tomakehurst.wiremock.core.Options- Returns:
- the browser proxy settings
-
browserProxyingEnabled
public boolean browserProxyingEnabled()Browser proxying enabled.- Specified by:
browserProxyingEnabledin interfacecom.github.tomakehurst.wiremock.core.Options- Returns:
- true, if successful
-
containerThreads
public int containerThreads()Container threads.- Specified by:
containerThreadsin interfacecom.github.tomakehurst.wiremock.core.Options- Returns:
- the int
-
extensionsOfType
public <T extends com.github.tomakehurst.wiremock.extension.Extension> Map<String,T> extensionsOfType(Class<T> extensionType) Extensions of type.- Specified by:
extensionsOfTypein interfacecom.github.tomakehurst.wiremock.core.Options- Type Parameters:
T- the generic type- Parameters:
extensionType- the extension type- Returns:
- the map
-
filesRoot
public com.github.tomakehurst.wiremock.common.FileSource filesRoot()Files root.- Specified by:
filesRootin interfacecom.github.tomakehurst.wiremock.core.Options- Returns:
- the file source
-
forChildPath
For child path.- Parameters:
childPath- the child path- Returns:
- the wire mock rule configuration
-
getAdminAuthenticator
public com.github.tomakehurst.wiremock.security.Authenticator getAdminAuthenticator()Gets the admin authenticator.- Specified by:
getAdminAuthenticatorin interfacecom.github.tomakehurst.wiremock.core.Options- Returns:
- the admin authenticator
-
getAsynchronousResponseSettings
public com.github.tomakehurst.wiremock.common.AsynchronousResponseSettings getAsynchronousResponseSettings()Gets the asynchronous response settings.- Specified by:
getAsynchronousResponseSettingsin 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:
getChunkedEncodingPolicyin interfacecom.github.tomakehurst.wiremock.core.Options- Returns:
- the chunked encoding policy
-
getDataTruncationSettings
public com.github.tomakehurst.wiremock.common.DataTruncationSettings getDataTruncationSettings()Gets the data truncation settings.- Specified by:
getDataTruncationSettingsin interfacecom.github.tomakehurst.wiremock.core.Options- Returns:
- the data truncation settings
-
getDisableOptimizeXmlFactoriesLoading
public boolean getDisableOptimizeXmlFactoriesLoading()Gets the disable optimize xml factories loading.- Specified by:
getDisableOptimizeXmlFactoriesLoadingin 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:
getDisableStrictHttpHeadersin interfacecom.github.tomakehurst.wiremock.core.Options- Returns:
- the disable strict http headers
-
getGzipDisabled
public boolean getGzipDisabled()Gets the gzip disabled.- Specified by:
getGzipDisabledin interfacecom.github.tomakehurst.wiremock.core.Options- Returns:
- the gzip disabled
-
getHttpDisabled
public boolean getHttpDisabled()Gets the http disabled.- Specified by:
getHttpDisabledin interfacecom.github.tomakehurst.wiremock.core.Options- Returns:
- the http disabled
-
getHttpsRequiredForAdminApi
public boolean getHttpsRequiredForAdminApi()Gets the https required for admin api.- Specified by:
getHttpsRequiredForAdminApiin 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:
getNotMatchedRendererin interfacecom.github.tomakehurst.wiremock.core.Options- Returns:
- the not matched renderer
-
getProxyTargetRules
public com.github.tomakehurst.wiremock.common.NetworkAddressRules getProxyTargetRules()Gets the network address rules.- Specified by:
getProxyTargetRulesin interfacecom.github.tomakehurst.wiremock.core.Options- Returns:
- the network address rules
-
getStubCorsEnabled
public boolean getStubCorsEnabled()Gets the stub cors enabled.- Specified by:
getStubCorsEnabledin interfacecom.github.tomakehurst.wiremock.core.Options- Returns:
- the stub cors enabled
-
getStubRequestLoggingDisabled
public boolean getStubRequestLoggingDisabled()Gets the stub request logging disabled.- Specified by:
getStubRequestLoggingDisabledin interfacecom.github.tomakehurst.wiremock.core.Options- Returns:
- the stub request logging disabled
-
httpServerFactory
public com.github.tomakehurst.wiremock.http.HttpServerFactory httpServerFactory()Http server factory.- Specified by:
httpServerFactoryin interfacecom.github.tomakehurst.wiremock.core.Options- Returns:
- the http server factory
-
httpsSettings
public com.github.tomakehurst.wiremock.common.HttpsSettings httpsSettings()Https settings.- Specified by:
httpsSettingsin interfacecom.github.tomakehurst.wiremock.core.Options- Returns:
- the https settings
-
jettySettings
public com.github.tomakehurst.wiremock.common.JettySettings jettySettings()Jetty settings.- Specified by:
jettySettingsin interfacecom.github.tomakehurst.wiremock.core.Options- Returns:
- the jetty settings
-
mappingSource
public WireMockRuleConfiguration mappingSource(com.github.tomakehurst.wiremock.standalone.MappingsSource mappingsSource) Mapping source.- Parameters:
mappingsSource- the mappings source- Returns:
- the wire mock rule configuration
-
mappingsLoader
public com.github.tomakehurst.wiremock.standalone.MappingsLoader mappingsLoader()Mappings loader.- Specified by:
mappingsLoaderin interfacecom.github.tomakehurst.wiremock.core.Options- Returns:
- the mappings loader
-
mappingsSaver
public com.github.tomakehurst.wiremock.core.MappingsSaver mappingsSaver()Mappings saver.- Specified by:
mappingsSaverin interfacecom.github.tomakehurst.wiremock.core.Options- Returns:
- the mappings saver
-
matchingHeaders
Matching headers.- Specified by:
matchingHeadersin interfacecom.github.tomakehurst.wiremock.core.Options- Returns:
- the list
-
maxRequestJournalEntries
Max request journal entries.- Specified by:
maxRequestJournalEntriesin interfacecom.github.tomakehurst.wiremock.core.Options- Returns:
- the optional
-
networkTrafficListener
public com.github.tomakehurst.wiremock.http.trafficlistener.WiremockNetworkTrafficListener networkTrafficListener()Network traffic listener.- Specified by:
networkTrafficListenerin interfacecom.github.tomakehurst.wiremock.core.Options- Returns:
- the wiremock network traffic listener
-
notifier
public com.github.tomakehurst.wiremock.common.Notifier notifier()Notifier.- Specified by:
notifierin interfacecom.github.tomakehurst.wiremock.core.Options- Returns:
- the notifier
-
portNumber
public int portNumber()Port number.- Specified by:
portNumberin interfacecom.github.tomakehurst.wiremock.core.Options- Returns:
- the int
-
proxyHostHeader
Proxy host header.- Specified by:
proxyHostHeaderin interfacecom.github.tomakehurst.wiremock.core.Options- Returns:
- the string
-
proxyVia
public com.github.tomakehurst.wiremock.common.ProxySettings proxyVia()Proxy via.- Specified by:
proxyViain interfacecom.github.tomakehurst.wiremock.core.Options- Returns:
- the proxy settings
-
requestJournalDisabled
public boolean requestJournalDisabled()Request journal disabled.- Specified by:
requestJournalDisabledin interfacecom.github.tomakehurst.wiremock.core.Options- Returns:
- true, if successful
-
shouldPreserveHostHeader
public boolean shouldPreserveHostHeader()Should preserve host header.- Specified by:
shouldPreserveHostHeaderin interfacecom.github.tomakehurst.wiremock.core.Options- Returns:
- true, if successful
-
threadPoolFactory
public com.github.tomakehurst.wiremock.http.ThreadPoolFactory threadPoolFactory()Thread pool factory.- Specified by:
threadPoolFactoryin interfacecom.github.tomakehurst.wiremock.core.Options- Returns:
- the thread pool factory
-
timeout
public long timeout()Timeout.- Specified by:
timeoutin interfacecom.github.tomakehurst.wiremock.core.Options- Returns:
- the long
-