Class WireMockConfiguration
java.lang.Object
com.github.tomakehurst.wiremock.core.WireMockConfiguration
- All Implemented Interfaces:
Options
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.github.tomakehurst.wiremock.core.Options
Options.ChunkedEncodingPolicy -
Field Summary
Fields inherited from interface com.github.tomakehurst.wiremock.core.Options
DEFAULT_BIND_ADDRESS, DEFAULT_CONTAINER_THREADS, DEFAULT_DISABLE_CONNECTION_REUSE, DEFAULT_MAX_HTTP_CONNECTIONS, DEFAULT_MAX_TEMPLATE_CACHE_ENTRIES, DEFAULT_PORT, DEFAULT_TIMEOUT, DEFAULT_WEBHOOK_THREADPOOL_SIZE, DEFAULT_WEBSOCKET_IDLE_TIMEOUT, DEFAULT_WEBSOCKET_MAX_BINARY_MESSAGE_SIZE, DEFAULT_WEBSOCKET_MAX_TEXT_MESSAGE_SIZE, DYNAMIC_PORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadminAuthenticator(Authenticator authenticator) asynchronousResponseEnabled(boolean asynchronousResponseEnabled) asynchronousResponseThreads(int asynchronousResponseThreads) basicAdminAuthenticator(String username, String password) bindAddress(String bindAddress) booleancaKeystorePassword(String keyStorePassword) caKeystorePath(String path) caKeystoreSettings(KeyStoreSettings caKeyStoreSettings) caKeystoreType(String caKeystoreType) intcontainerThreads(Integer containerThreads) disableConnectionReuse(boolean disableConnectionReuse) disableOptimizeXmlFactoriesLoading(boolean disableOptimizeXmlFactoriesLoading) disableStrictHttpHeaders(boolean disableStrictHttpHeaders) enableBrowserProxying(boolean enabled) extensionFactories(ExtensionFactory... extensionFactories) extensionFactories(Class<? extends ExtensionFactory>... factoryClasses) extensions(Extension... extensionInstances) extensions(ExtensionFactory... extensionFactories) extensions(Class<? extends Extension>... classes) extensions(String... classNames) extensionScanningEnabled(boolean enabled) filenameTemplate(String filenameTemplate) fileSource(FileSource fileSource) booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanintbooleanbooleanbooleanbooleanbooleanintlonglonglongglobalTemplating(boolean globalTemplating) gzipDisabled(boolean gzipDisabled) http2PlainDisabled(boolean enabled) http2TlsDisabled(boolean enabled) httpClientFactory(HttpClientFactory httpClientFactory) httpDisabled(boolean httpDisabled) httpServerFactory(HttpServerFactory serverFactory) booleankeyManagerPassword(String keyManagerPassword) keystorePassword(String keyStorePassword) keystorePath(String path) keystoreType(String keyStoreType) limitProxyTargets(NetworkAddressRules proxyTargetRules) mappingSource(MappingsSource mappingsSource) maxHttpClientConnections(int maxHttpClientConnections) maxLoggedResponseSize(int maxSize) maxRequestJournalEntries(int maxRequestJournalEntries) maxRequestJournalEntries(Optional<Integer> maxRequestJournalEntries) Deprecated.needClientAuth(boolean needClientAuth) networkTrafficListener(WiremockNetworkTrafficListener networkTrafficListener) notifier()notMatchedRendererFactory(Function<Extensions, NotMatchedRenderer> notMatchedRendererFactory) static WireMockConfigurationoptions()port(int portNumber) intpreserveHostHeader(boolean preserveHostHeader) preserveUserAgentProxyHeader(boolean preserveUserAgentProxyHeader) proxyHostHeader(String hostHeaderValue) proxyPassThrough(boolean proxyPassThrough) intproxyTimeout(int proxyTimeout) proxyVia()proxyVia(ProxySettings proxySettings) recordRequestHeadersForMatching(List<String> headers) booleanbooleanbooleanstubCorsEnabled(boolean enabled) stubRequestLoggingDisabled(boolean disabled) templatingEnabled(boolean templatingEnabled) longtimeout()timeout(int timeout) trustAllProxyTargets(boolean enabled) trustedProxyTargets(String... trustedProxyTargets) trustedProxyTargets(List<String> trustedProxyTargets) trustStorePassword(String trustStorePassword) trustStorePath(String truststorePath) trustStoreType(String trustStoreType) webSocketIdleTimeout(long timeout) webSocketMaxBinaryMessageSize(long size) webSocketMaxTextMessageSize(long size) static WireMockConfigurationwithMaxTemplateCacheEntries(Long maxTemplateCacheEntries) withPermittedSystemKeys(String... systemKeys) withRootDirectory(String path) withStores(Stores stores) withSupportedProxyEncodings(String... supportedProxyEncodings) withSupportedProxyEncodings(Set<String> supportedProxyEncodings) withTemplateEscapingDisabled(boolean templateEscapingDisabled) withWebhookThreadPoolSize(Integer webhookThreadPoolSize)
-
Constructor Details
-
WireMockConfiguration
public WireMockConfiguration()
-
-
Method Details
-
wireMockConfig
-
options
-
proxyPassThrough
-
timeout
-
webSocketIdleTimeout
-
webSocketMaxTextMessageSize
-
webSocketMaxBinaryMessageSize
-
port
-
filenameTemplate
-
dynamicPort
-
httpDisabled
-
http2PlainDisabled
-
http2TlsDisabled
-
httpsPort
-
dynamicHttpsPort
-
containerThreads
-
keystorePath
-
keystorePassword
-
keyManagerPassword
-
keystoreType
-
caKeystoreSettings
-
caKeystorePath
-
caKeystorePassword
-
caKeystoreType
-
trustStorePath
-
trustStorePassword
-
trustStoreType
-
needClientAuth
-
enableBrowserProxying
-
proxyVia
-
proxyVia
-
withStores
-
withRootDirectory
-
usingFilesUnderDirectory
-
usingFilesUnderClasspath
-
fileSource
-
mappingSource
-
notifier
-
bindAddress
-
disableRequestJournal
-
maxRequestJournalEntries
@Deprecated public WireMockConfiguration maxRequestJournalEntries(Optional<Integer> maxRequestJournalEntries) Deprecated. -
maxRequestJournalEntries
-
recordRequestHeadersForMatching
-
preserveHostHeader
-
preserveUserAgentProxyHeader
-
proxyHostHeader
-
extensions
-
extensions
-
extensionFactories
-
extensions
-
extensions
-
extensionFactories
public WireMockConfiguration extensionFactories(Class<? extends ExtensionFactory>... factoryClasses) -
extensionScanningEnabled
-
httpServerFactory
-
httpClientFactory
-
networkTrafficListener
public WireMockConfiguration networkTrafficListener(WiremockNetworkTrafficListener networkTrafficListener) -
adminAuthenticator
-
basicAdminAuthenticator
-
requireHttpsForAdminApi
-
notMatchedRendererFactory
public WireMockConfiguration notMatchedRendererFactory(Function<Extensions, NotMatchedRenderer> notMatchedRendererFactory) -
asynchronousResponseEnabled
-
asynchronousResponseThreads
-
useChunkedTransferEncoding
-
gzipDisabled
-
stubRequestLoggingDisabled
-
stubCorsEnabled
-
trustAllProxyTargets
-
trustedProxyTargets
-
trustedProxyTargets
-
disableOptimizeXmlFactoriesLoading
public WireMockConfiguration disableOptimizeXmlFactoriesLoading(boolean disableOptimizeXmlFactoriesLoading) -
maxLoggedResponseSize
-
limitProxyTargets
-
proxyTimeout
-
maxHttpClientConnections
-
disableConnectionReuse
-
templatingEnabled
-
globalTemplating
-
withPermittedSystemKeys
-
withTemplateEscapingDisabled
-
withMaxTemplateCacheEntries
-
withSupportedProxyEncodings
-
withSupportedProxyEncodings
-
withWebhookThreadPoolSize
-
portNumber
public int portNumber()- Specified by:
portNumberin interfaceOptions
-
getHttpDisabled
public boolean getHttpDisabled()- Specified by:
getHttpDisabledin interfaceOptions
-
getHttp2PlainDisabled
public boolean getHttp2PlainDisabled()- Specified by:
getHttp2PlainDisabledin interfaceOptions
-
getHttp2TlsDisabled
public boolean getHttp2TlsDisabled()- Specified by:
getHttp2TlsDisabledin interfaceOptions
-
containerThreads
public int containerThreads()- Specified by:
containerThreadsin interfaceOptions
-
httpsSettings
- Specified by:
httpsSettingsin interfaceOptions
-
browserProxyingEnabled
public boolean browserProxyingEnabled()- Specified by:
browserProxyingEnabledin interfaceOptions
-
proxyVia
-
getStores
-
filesRoot
-
mappingsLoader
- Specified by:
mappingsLoaderin interfaceOptions
-
mappingsSaver
- Specified by:
mappingsSaverin interfaceOptions
-
notifier
-
requestJournalDisabled
public boolean requestJournalDisabled()- Specified by:
requestJournalDisabledin interfaceOptions
-
maxRequestJournalEntries
- Specified by:
maxRequestJournalEntriesin interfaceOptions
-
bindAddress
- Specified by:
bindAddressin interfaceOptions
-
getFilenameMaker
- Specified by:
getFilenameMakerin interfaceOptions
-
matchingHeaders
- Specified by:
matchingHeadersin interfaceOptions
-
httpServerFactory
- Specified by:
httpServerFactoryin interfaceOptions
-
httpClientFactory
- Specified by:
httpClientFactoryin interfaceOptions
-
shouldPreserveHostHeader
public boolean shouldPreserveHostHeader()- Specified by:
shouldPreserveHostHeaderin interfaceOptions
-
shouldPreserveUserAgentProxyHeader
public boolean shouldPreserveUserAgentProxyHeader()- Specified by:
shouldPreserveUserAgentProxyHeaderin interfaceOptions
-
proxyHostHeader
- Specified by:
proxyHostHeaderin interfaceOptions
-
getDeclaredExtensions
- Specified by:
getDeclaredExtensionsin interfaceOptions
-
isExtensionScanningEnabled
public boolean isExtensionScanningEnabled()- Specified by:
isExtensionScanningEnabledin interfaceOptions
-
networkTrafficListener
- Specified by:
networkTrafficListenerin interfaceOptions
-
getAdminAuthenticator
- Specified by:
getAdminAuthenticatorin interfaceOptions
-
getHttpsRequiredForAdminApi
public boolean getHttpsRequiredForAdminApi()- Specified by:
getHttpsRequiredForAdminApiin interfaceOptions
-
getNotMatchedRendererFactory
- Specified by:
getNotMatchedRendererFactoryin interfaceOptions
-
getAsynchronousResponseSettings
- Specified by:
getAsynchronousResponseSettingsin interfaceOptions
-
getChunkedEncodingPolicy
- Specified by:
getChunkedEncodingPolicyin interfaceOptions
-
getGzipDisabled
public boolean getGzipDisabled()- Specified by:
getGzipDisabledin interfaceOptions
-
getStubRequestLoggingDisabled
public boolean getStubRequestLoggingDisabled()- Specified by:
getStubRequestLoggingDisabledin interfaceOptions
-
getStubCorsEnabled
public boolean getStubCorsEnabled()- Specified by:
getStubCorsEnabledin interfaceOptions
-
timeout
public long timeout() -
getDisableOptimizeXmlFactoriesLoading
public boolean getDisableOptimizeXmlFactoriesLoading()- Specified by:
getDisableOptimizeXmlFactoriesLoadingin interfaceOptions
-
getDisableStrictHttpHeaders
public boolean getDisableStrictHttpHeaders()- Specified by:
getDisableStrictHttpHeadersin interfaceOptions
-
getDataTruncationSettings
- Specified by:
getDataTruncationSettingsin interfaceOptions
-
disableStrictHttpHeaders
-
browserProxySettings
- Specified by:
browserProxySettingsin interfaceOptions
-
getProxyTargetRules
- Specified by:
getProxyTargetRulesin interfaceOptions
-
proxyTimeout
public int proxyTimeout()- Specified by:
proxyTimeoutin interfaceOptions
-
getMaxHttpClientConnections
public int getMaxHttpClientConnections()- Specified by:
getMaxHttpClientConnectionsin interfaceOptions
-
getDisableConnectionReuse
public boolean getDisableConnectionReuse()- Specified by:
getDisableConnectionReusein interfaceOptions
-
getResponseTemplatingEnabled
public boolean getResponseTemplatingEnabled()- Specified by:
getResponseTemplatingEnabledin interfaceOptions
-
getResponseTemplatingGlobal
public boolean getResponseTemplatingGlobal()- Specified by:
getResponseTemplatingGlobalin interfaceOptions
-
getMaxTemplateCacheEntries
- Specified by:
getMaxTemplateCacheEntriesin interfaceOptions
-
getTemplatePermittedSystemKeys
- Specified by:
getTemplatePermittedSystemKeysin interfaceOptions
-
getTemplateEscapingDisabled
public boolean getTemplateEscapingDisabled()- Specified by:
getTemplateEscapingDisabledin interfaceOptions
-
getSupportedProxyEncodings
- Specified by:
getSupportedProxyEncodingsin interfaceOptions
-
getWebhookThreadPoolSize
public int getWebhookThreadPoolSize()- Specified by:
getWebhookThreadPoolSizein interfaceOptions
-
getWebSocketIdleTimeout
public long getWebSocketIdleTimeout()- Specified by:
getWebSocketIdleTimeoutin interfaceOptions
-
getWebSocketMaxTextMessageSize
public long getWebSocketMaxTextMessageSize()- Specified by:
getWebSocketMaxTextMessageSizein interfaceOptions
-
getWebSocketMaxBinaryMessageSize
public long getWebSocketMaxBinaryMessageSize()- Specified by:
getWebSocketMaxBinaryMessageSizein interfaceOptions
-