Uses of Class
org.mockserver.configuration.Configuration
Packages that use Configuration
Package
Description
-
Uses of Configuration in org.mockserver.client
Constructors in org.mockserver.client with parameters of type ConfigurationModifierConstructorDescriptionMockServerClient(Configuration configuration, String host, int port) Start the client communicating to a MockServer at the specified host and port for example:MockServerClient(Configuration configuration, String host, int port, String contextPath) Start the client communicating to a MockServer at the specified host and port and contextPath for example:MockServerClient(Configuration configuration, CompletableFuture<Integer> portFuture) Start the client communicating to a MockServer on localhost at the port specified with the Future -
Uses of Configuration in org.mockserver.closurecallback.websocketregistry
Constructors in org.mockserver.closurecallback.websocketregistry with parameters of type ConfigurationModifierConstructorDescriptionWebSocketClientRegistry(Configuration configuration, MockServerLogger mockServerLogger) -
Uses of Configuration in org.mockserver.codec
Constructors in org.mockserver.codec with parameters of type ConfigurationModifierConstructorDescriptionExpandedParameterDecoder(Configuration configuration, MockServerLogger mockServerLogger) JsonSchemaBodyDecoder(Configuration configuration, MockServerLogger mockServerLogger, Expectation expectation, HttpRequest httpRequest) MockServerHttpServerCodec(Configuration configuration, MockServerLogger mockServerLogger, boolean isSecure, Certificate[] clientCertificates, Integer port) MockServerHttpServerCodec(Configuration configuration, MockServerLogger mockServerLogger, boolean isSecure, Certificate[] clientCertificates, SocketAddress socketAddress) NettyHttpToMockServerHttpRequestDecoder(Configuration configuration, MockServerLogger mockServerLogger, boolean isSecure, Certificate[] clientCertificates, Integer port) StreamingAwareHttpObjectAggregator(int maxContentLength, Configuration configuration, MockServerLogger mockServerLogger) Create an aggregator with streaming awareness for theNettyHttpClientforward path.StreamingAwareHttpObjectAggregator(int maxContentLength, Configuration configuration, MockServerLogger mockServerLogger, boolean relayOnly) Create an aggregator with streaming awareness. -
Uses of Configuration in org.mockserver.configuration
Methods in org.mockserver.configuration that return ConfigurationModifier and TypeMethodDescriptionConfiguration.actionHandlerThreadCount(Integer actionHandlerThreadCount) Number of threads for the action handler thread poolConfiguration.alwaysCloseSocketConnections(Boolean alwaysCloseSocketConnections) If true socket connections will always be closed after a response is returned, if false connection is only closed if request header indicate connection should be closed.Configuration.assumeAllRequestsAreHttp(Boolean assumeAllRequestsAreHttp) If false requests are assumed as binary if the method isn't one of "GET", "POST", "PUT", "HEAD", "OPTIONS", "PATCH", "DELETE", "TRACE" or "CONNECT"Configuration.asyncKafkaBootstrapServers(String asyncKafkaBootstrapServers) Default Kafka bootstrap servers for async messaging.Configuration.asyncMqttBrokerUrl(String asyncMqttBrokerUrl) Default MQTT broker URL for async messaging.Configuration.asyncRecordedMessageMaxEntries(Integer asyncRecordedMessageMaxEntries) Maximum number of recorded messages retained per channel in async messaging subscribers.Configuration.attemptToProxyIfNoMatchingExpectation(Boolean attemptToProxyIfNoMatchingExpectation) If true (the default) when no matching expectation is found, and the host header of the request does not match MockServer's host, then MockServer attempts to proxy the request if that fails then a 404 is returned.Configuration.binaryProxyListener(BinaryProxyListener binaryProxyListener) Set a org.mockserver.model.BinaryProxyListener called when binary content is proxiedConfiguration.blobStoreAccessKeyId(String blobStoreAccessKeyId) Configuration.blobStoreBucket(String blobStoreBucket) Configuration.blobStoreConnectionString(String blobStoreConnectionString) Configuration.blobStoreContainer(String blobStoreContainer) Configuration.blobStoreEndpoint(String blobStoreEndpoint) Configuration.blobStoreKeyPrefix(String blobStoreKeyPrefix) Configuration.blobStoreProjectId(String blobStoreProjectId) Configuration.blobStoreRegion(String blobStoreRegion) Configuration.blobStoreSecretAccessKey(String blobStoreSecretAccessKey) Configuration.blobStoreType(String blobStoreType) Sets the blob store type.Configuration.certificateAuthorityCertificate(String certificateAuthorityCertificate) File system path or classpath location of custom X.509 Certificate for Certificate Authority for TLS, the certificate must be a X509 PEM file and must match the certificateAuthorityPrivateKeyConfiguration.certificateAuthorityPrivateKey(String certificateAuthorityPrivateKey) File system path or classpath location of custom Private Key for Certificate Authority for TLS, the private key must be a PKCS#8 or PKCS#1 PEM file and must match the certificateAuthorityCertificate To convert a PKCS#1 (i.e. default for Bouncy Castle) to a PKCS#8 the following command can be used: openssl pkcs8 -topk8 -inform PEM -in private_key_PKCS_1.pem -out private_key_PKCS_8.pem -nocryptConfiguration.clientNioEventLoopThreadCount(Integer clientNioEventLoopThreadCount) Client Netty worker thread pool size for handling requests and response.Configuration.clusterEnabled(boolean clusterEnabled) Enables or disables clustering.Configuration.clusterName(String clusterName) Sets the JGroups cluster name.Configuration.clusterTransportConfig(String clusterTransportConfig) Sets the path to a custom JGroups XML transport configuration.Configuration.compactLogFormat(Boolean compactLogFormat) static ConfigurationConfiguration.configuration()Configuration.connectionDelay(Delay connectionDelay) Configuration.controlPlaneJWTAuthenticationExpectedAudience(String controlPlaneJWTAuthenticationExpectedAudience) Audience claim (i.e. aud) required when JWT authentication is enabled for control plane requestsConfiguration.controlPlaneJWTAuthenticationJWKSource(String controlPlaneJWTAuthenticationJWKSource) JWK source used when JWT authentication is enabled for control plane requestsConfiguration.controlPlaneJWTAuthenticationMatchingClaims(Map<String, String> controlPlaneJWTAuthenticationMatchingClaims) Matching claims expected when JWT authentication is enabled for control plane requestsConfiguration.controlPlaneJWTAuthenticationRequired(Boolean controlPlaneJWTAuthenticationRequired) Require JWT authentication for all control plane requestsConfiguration.controlPlaneJWTAuthenticationRequiredClaims(Set<String> controlPlaneJWTAuthenticationRequiredClaims) Required claims that should exist (i.e. with any value) when JWT authentication is enabled for control plane requestsConfiguration.controlPlanePrivateKeyPath(String controlPlanePrivateKeyPath) File system path or classpath location of a fixed custom private key for control plane connections using mTLS for authentication.Configuration.controlPlaneTLSMutualAuthenticationCAChain(String controlPlaneTLSMutualAuthenticationCAChain) File system path or classpath location of custom mTLS (TLS client authentication) X.509 Certificate Chain for control plane mTLS authenticationConfiguration.controlPlaneTLSMutualAuthenticationRequired(Boolean controlPlaneTLSMutualAuthenticationRequired) Require mTLS (also called client authentication and two-way TLS) for all control plane requestsConfiguration.controlPlaneX509CertificatePath(String controlPlaneX509CertificatePath) File system path or classpath location of a fixed custom X.509 Certificate for control plane connections using mTLS for authentication.Configuration.corsAllowCredentials(Boolean corsAllowCredentials) The value used for CORS in the access-control-allow-credentials header.Configuration.corsAllowHeaders(String corsAllowHeaders) the value used for CORS in the access-control-allow-headers and access-control-expose-headers headers.Configuration.corsAllowMethods(String corsAllowMethods) the value used for CORS in the access-control-allow-methods header.Configuration.corsAllowOrigin(String corsAllowOrigin) the value used for CORS in the access-control-allow-origin header.Configuration.corsMaxAgeInSeconds(Integer corsMaxAgeInSeconds) The value used for CORS in the access-control-max-age header.Configuration.detailedMatchFailures(Boolean detailedMatchFailures) If true (the default) the log event recording that a request matcher did not match will include a detailed reason why each non-matching field did not match.Configuration.detailedVerificationFailures(Boolean detailedVerificationFailures) If true (the default) verification failure messages include a detailed diff showing which fields did not match for the closest matching request.Configuration.directoryToSaveDynamicSSLCertificate(String directoryToSaveDynamicSSLCertificate) Directory used to save the dynamically generated Certificate Authority X.509 Certificate and Private Key.Configuration.disableLogging(Boolean disableLogging) Disable all logging and processing of log eventsConfiguration.disableSystemOut(Boolean disableSystemOut) Disable printing log to system out for JVM, default is enabledConfiguration.dnsEnabled(Boolean dnsEnabled) Configuration.driftResponseTimeThresholdMs(Long driftResponseTimeThresholdMs) p95 response time threshold (in milliseconds) for performance drift detection.Configuration.driftSemanticAnalysisEnabled(Boolean driftSemanticAnalysisEnabled) Whether to enable LLM-powered semantic drift analysis.Configuration.dynamicallyCreateCertificateAuthorityCertificate(Boolean dynamicallyCreateCertificateAuthorityCertificate) Enable dynamic creation of Certificate Authority X509 certificate and private key.Configuration.enableCORSForAllResponses(Boolean enableCORSForAllResponses) Enable CORS for all responses from MockServer, including the REST API and expectation responsesConfiguration.enableCORSForAPI(Boolean enableCORSForAPI) Enable CORS for MockServer REST API so that the API can be used for javascript running in browsers, such as seleniumConfiguration.forwardAdjustHostHeader(Boolean forwardAdjustHostHeader) If true (the default) the Host header will be automatically adjusted to match the target server when forwarding requests.Configuration.forwardBinaryRequestsWithoutWaitingForResponse(Boolean forwardBinaryRequestsWithoutWaitingForResponse) If true the BinaryProxyListener is called before a response is received from the remote host.Configuration.forwardDefaultHostHeader(String forwardDefaultHostHeader) Set a default Host header value to use when forwarding requests.Configuration.forwardHttpProxy(InetSocketAddress forwardHttpProxy) Use HTTP proxy (i.e. via Host header) for all outbound / forwarded requestsConfiguration.forwardHttpsProxy(InetSocketAddress forwardHttpsProxy) Use HTTPS proxy (i.e.Configuration.forwardProxyAuthenticationPassword(String forwardProxyAuthenticationPassword) Password for proxy authentication when using HTTPS proxy (i.e.Configuration.forwardProxyAuthenticationUsername(String forwardProxyAuthenticationUsername) Username for proxy authentication when using HTTPS proxy (i.e.Configuration.forwardProxyBlockPrivateNetworks(Boolean forwardProxyBlockPrivateNetworks) When set to true, MockServer rejects forward and proxy targets that resolve to loopback, link-local, RFC 1918 private, or cloud metadata addresses (such as 169.254.169.254), blocking server-side request forgery (SSRF) via malicious expectations.Configuration.forwardProxyCertificateChain(String forwardProxyCertificateChain) File system path or classpath location of custom mTLS (TLS client authentication) X.509 Certificate Chain for Trusting (i.e. signature verification of) Client X.509 Certificates, the certificate chain must be a X509 PEM file.Configuration.forwardProxyPrivateKey(String forwardProxyPrivateKey) File system path or classpath location of custom Private Key for proxied TLS connections out of MockServer, the private key must be a PKCS#8 or PKCS#1 PEM fileConfiguration.forwardProxyTLSCustomTrustX509Certificates(String forwardProxyTLSCustomTrustX509Certificates) File system path or classpath location of custom file for trusted X509 Certificate Authority roots for forwarded or proxied requests, the certificate chain must be a X509 PEM file.Configuration.forwardProxyTLSX509CertificatesTrustManagerType(ForwardProxyTLSX509CertificatesTrustManager forwardProxyTLSX509CertificatesTrustManagerType) Configure trusted set of certificates for forwarded or proxied requests.Configuration.forwardSocksProxy(InetSocketAddress forwardSocksProxy) Use SOCKS proxy for all outbound / forwarded requests, support TLS tunnelling of TCP connectionsConfiguration.globalResponseDelayMillis(Long globalResponseDelayMillis) Configuration.grpcBidiStreamingEnabled(Boolean grpcBidiStreamingEnabled) If true the HTTP/2 pipeline uses Http2FrameCodec + Http2MultiplexHandler instead of HttpToHttp2ConnectionHandler + InboundHttp2ToHttpAdapter for connections where gRPC descriptors are loaded.Configuration.grpcDescriptorDirectory(String grpcDescriptorDirectory) Configuration.grpcEnabled(Boolean grpcEnabled) Configuration.grpcProtocPath(String grpcProtocPath) Configuration.grpcProtoDirectory(String grpcProtoDirectory) Configuration.http2Enabled(Boolean http2Enabled) If false HTTP/2 is disabled and ALPN no longer advertises h2, so HTTP/2 capable clients are forced to use HTTP/1.1 (and the HTTP/2 cleartext h2c upgrade is not detected)Configuration.http3AdvertiseAltSvc(Boolean http3AdvertiseAltSvc) Configuration.http3AltSvcMaxAge(Long http3AltSvcMaxAge) Configuration.http3ConnectUdpEnabled(Boolean http3ConnectUdpEnabled) Configuration.http3InitialMaxData(Long http3InitialMaxData) Configuration.http3InitialMaxStreamDataBidirectional(Long http3InitialMaxStreamDataBidirectional) Configuration.http3InitialMaxStreamsBidirectional(Long http3InitialMaxStreamsBidirectional) Configuration.http3MaxIdleTimeout(Long http3MaxIdleTimeout) Configuration.http3QpackMaxTableCapacity(Long http3QpackMaxTableCapacity) Configuration.initializationClass(String initializationClass) The class (and package) used to initialize expectations in MockServer at startup, if set MockServer will load and call this class to initialize expectations when is starts.Configuration.initializationJsonPath(String initializationJsonPath) The path to the json file used to initialize expectations in MockServer at startup, if set MockServer will load this file and initialise expectations for each item in the file when is starts.Configuration.initializationOpenAPIPath(String initializationOpenAPIPath) The path to the OpenAPI spec file used to initialize expectations in MockServer at startup, if set MockServer will load this file and create expectations for each operation when it starts.Configuration.javascriptDisallowedClasses(String javascriptDisallowedClasses) Set comma separate list of classes not allowed to be used by javascript templatesConfiguration.javascriptDisallowedText(String javascriptDisallowedText) Set comma separate list of text not allowed to be contained in javascript templatesConfiguration.launchUIForLogLevelDebug(Boolean launchUIForLogLevelDebug) If true (the default) the ClientAndServer constructor will open the UI in the default browser when the log level is set to DEBUG.Configuration.livenessHttpGetPath(String livenessHttpGetPath) Path to support HTTP GET requests for status response (also available on PUT /mockserver/status).Configuration.localBoundIP(String localBoundIP) The local IP address to bind to for accepting new socket connectionsConfiguration.logEventListener(Consumer<LogEntry> logEventListener) Override the default logging level of INFOConfiguration.logLevel(org.slf4j.event.Level level) Override the default logging level of INFOConfiguration.logLevelOverrides(Map<String, String> logLevelOverrides) Configuration.matchersFailFast(Boolean matchersFailFast) If true (the default) request matchers will fail on the first non-matching field, if false request matchers will compare all fields.Configuration.maxChunkSize(Integer maxChunkSize) Maximum size of HTTP chunks in request or responsesConfiguration.maxExpectations(Integer maxExpectations) Maximum number of expectations stored in memory.Configuration.maxFutureTimeoutInMillis(Long maxFutureTimeoutInMillis) Maximum time allowed in milliseconds for any future to wait, for example when waiting for a response over a web socket callback.Configuration.maxHeaderSize(Integer maxHeaderSize) Maximum size of HTTP request headersConfiguration.maximumNumberOfRequestToReturnInVerificationFailure(Integer maximumNumberOfRequestToReturnInVerificationFailure) The maximum number of requests to return in verification failure result, if more expectations are found the failure result does not list them separatelyConfiguration.maxInitialLineLength(Integer maxInitialLineLength) Maximum size of the first line of an HTTP requestConfiguration.maxLlmConversationBodySize(Integer maxLlmConversationBodySize) Maximum body size (in bytes) for LLM conversation request bodies.Configuration.maxLogEntries(Integer maxLogEntries) Maximum number of log entries stored in memory.Configuration.maxRequestBodySize(Integer maxRequestBodySize) Maximum aggregated body size (in bytes) accepted on inbound HTTP/1.1 and HTTP/2 requests.Configuration.maxResponseBodySize(Integer maxResponseBodySize) Maximum aggregated body size (in bytes) accepted on responses received from upstream servers when MockServer is acting as a proxy or forwarder.Configuration.maxSocketTimeoutInMillis(Long maxSocketTimeoutInMillis) Maximum time in milliseconds allowed for a response from a socketConfiguration.maxStreamingCaptureBytes(Integer maxStreamingCaptureBytes) The maximum number of bytes of a streaming response body captured into the event log while relaying it.Configuration.maxWebSocketExpectations(Integer maxWebSocketExpectations) Maximum number of remote (not the same JVM) method callbacks (i.e. web sockets) registered for expectations.Configuration.mcpEnabled(Boolean mcpEnabled) Configuration.memoryUsageCsvDirectory(String memoryUsageCsvDirectory) Directory to output JVM memory usage metrics CSV files to when outputMemoryUsageCsv enabledConfiguration.metricsEnabled(Boolean metricsEnabled) Enable gathering of metrics, default is falseConfiguration.metricsRequestDurationRouteLabels(Boolean metricsRequestDurationRouteLabels) Enable per-route (HTTP method) labels on the request duration histogram.Configuration.mustacheDisallowedText(String mustacheDisallowedText) Set comma separate list of text not allowed to be contained in mustache templatesConfiguration.nioEventLoopThreadCount(Integer nioEventLoopThreadCount) Netty worker thread pool size for handling requests and response.Configuration.noProxyHosts(String noProxyHosts) The list of hostnames to not use the configured proxy.Configuration.openAPIContextPathPrefix(String openAPIContextPathPrefix) A path prefix to add to all paths generated from OpenAPI specifications.Configuration.openAPIResponseValidation(Boolean openAPIResponseValidation) If enabled MockServer will validate that mock responses conform to the OpenAPI spec schema they were generated from.Configuration.otelGenerateTraceId(Boolean otelGenerateTraceId) When true, MockServer generates a new W3C trace ID for incoming requests that do not carry a traceparent header.Configuration.otelPropagateTraceContext(Boolean otelPropagateTraceContext) When true, MockServer copies the incoming W3C traceparent and tracestate headers into mock responses.Configuration.outputMemoryUsageCsv(Boolean outputMemoryUsageCsv) Output JVM memory usage metrics to CSV file periodically called memoryUsage_<yyyy-MM-dd>.csvConfiguration.persistedExpectationsPath(String persistedExpectationsPath) The file path used to save persisted expectations as json, which is updated whenever the expectation state is updated (i.e. add, clear, expires, etc.)Configuration.persistedRecordedExpectationsPath(String persistedRecordedExpectationsPath) The file path used to save persisted recorded expectations as json, which is updated whenever a new request is forwardedConfiguration.persistExpectations(Boolean persistExpectations) Enable the persisting of expectations as json, which is updated whenever the expectation state is updated (i.e. add, clear, expires, etc.)Configuration.persistRecordedExpectations(Boolean persistRecordedExpectations) Enable the persisting of recorded expectations (proxy traffic) as json, which is updated whenever a new request is forwardedConfiguration.preventCertificateDynamicUpdate(Boolean preventCertificateDynamicUpdate) Prevent certificates from dynamically updating when domain list changesConfiguration.privateKeyPath(String privateKeyPath) File system path or classpath location of a fixed custom private key for TLS connections into MockServer.Configuration.proactivelyInitialiseTLS(Boolean proactivelyInitialiseTLS) Proactively initialise TLS during start to ensure that if dynamicallyCreateCertificateAuthorityCertificate is enabled the Certificate Authority X.509 Certificate and Private Key will be created during start up and not when the first TLS connection is received.Configuration.proxyAuthenticationPassword(String proxyAuthenticationPassword) The required password for proxy authentication to MockServerConfiguration.proxyAuthenticationRealm(String proxyAuthenticationRealm) The authentication realm for proxy authentication to MockServerConfiguration.proxyAuthenticationUsername(String proxyAuthenticationUsername) The required username for proxy authentication to MockServerConfiguration.proxyPassMappings(List<ProxyPassMapping> proxyPassMappings) Configure ProxyPass mappings that map incoming path prefixes to upstream servers with automatic path rewriting.Configuration.proxyRemoteHost(String proxyRemoteHost) The hostname of the remote server to proxy all requests to.Configuration.proxyRemotePort(Integer proxyRemotePort) The port of the remote server to proxy all requests to.Configuration.rebuildServerTLSContext(boolean rebuildServerTLSContext) Configuration.rebuildTLSContext(boolean rebuildTLSContext) Configuration.slowRequestThresholdMillis(Long slowRequestThresholdMillis) Threshold in milliseconds for flagging slow forwarded requests.Configuration.socketConnectionTimeoutInMillis(Long socketConnectionTimeoutInMillis) Maximum time in milliseconds allowed to connect to a socketConfiguration.sslCertificateDomainName(String sslCertificateDomainName) The domain name for auto-generate TLS certificatesConfiguration.sslSubjectAlternativeNameDomains(String... sslSubjectAlternativeNameDomains) The Subject Alternative Name (SAN) domain names for auto-generate TLS certificatesConfiguration.sslSubjectAlternativeNameDomains(Set<String> sslSubjectAlternativeNameDomains) The Subject Alternative Name (SAN) domain names for auto-generate TLS certificatesConfiguration.sslSubjectAlternativeNameIps(String... sslSubjectAlternativeNameIps) The Subject Alternative Name (SAN) IP addresses for auto-generate TLS certificatesConfiguration.sslSubjectAlternativeNameIps(Set<String> sslSubjectAlternativeNameIps) The Subject Alternative Name (SAN) IP addresses for auto-generate TLS certificatesConfiguration.stateBackend(String stateBackend) Sets the state backend type.Configuration.streamIdleTimeoutSeconds(Integer streamIdleTimeoutSeconds) The maximum time in seconds a streaming response connection may be idle (no chunk received) before it is considered dead and closed.Configuration.streamingResponsesEnabled(Boolean streamingResponsesEnabled) If true (the default) streaming responses (Server-Sent Events withContent-Type: text/event-stream) received while proxying are relayed to the client incrementally as they arrive, instead of being fully buffered before being forwarded.Configuration.tlsAllowInsecureProtocols(Boolean tlsAllowInsecureProtocols) Whether to allow TLSv1 and TLSv1.1 in the effective TLS protocols list.Configuration.tlsMutualAuthenticationCertificateChain(String tlsMutualAuthenticationCertificateChain) File system path or classpath location of custom mTLS (TLS client authentication) X.509 Certificate Chain for trusting (i.e. signature verification of) Client X.509 Certificates, the certificate chain must be a X509 PEM file.Configuration.tlsMutualAuthenticationRequired(Boolean tlsMutualAuthenticationRequired) Require mTLS (also called client authentication and two-way TLS) for all TLS connections / HTTPS requests to MockServerConfiguration.tlsProtocols(String tlsProtocols) Comma seperated list of TLS protocols, by default TLSv1,TLSv1.1,TLSv1.2ClientConfiguration.toServerConfiguration()Configuration.transparentProxyEbpf(Boolean transparentProxyEbpf) Enable eBPF-based original destination resolution for transparent proxy mode.Configuration.transparentProxyEbpfMapPath(String transparentProxyEbpfMapPath) Path to the pinned BPF map used by the eBPF original destination resolver.Configuration.transparentProxyEnabled(Boolean transparentProxyEnabled) Enable transparent HTTP proxy mode where all connections are treated as proxy requests using the Host header as the forwarding target.Configuration.transparentProxyTproxy(Boolean transparentProxyTproxy) Enable TPROXY (IP_TRANSPARENT) mode for transparent proxy original destination resolution.Configuration.useNativeTransport(Boolean useNativeTransport) If true (the default) MockServer will use the native epoll transport on Linux for higher performance and to enable transparent-proxy SO_ORIGINAL_DST resolution.Configuration.useSemicolonAsQueryParameterSeparator(Boolean useSemicolonAsQueryParameterSeparator) If true semicolons are treated as a separator for a query parameter string, if false the semicolon is treated as a normal character that is part of a query parameter value.Configuration.velocityDisallowClassLoading(Boolean velocityDisallowClassLoading) If true class loading is not allowed in velocity templatesConfiguration.velocityDisallowedText(String velocityDisallowedText) Set comma separate list of text not allowed to be contained in velocity templatesConfiguration.wasmEnabled(Boolean wasmEnabled) Configuration.wasmMaxMemoryPages(Integer wasmMaxMemoryPages) Configuration.watchInitializationJson(Boolean watchInitializationJson) If enabled the initialization json file will be watched for changes, any changes found will result in expectations being created, remove or updated by matching against their key.Configuration.webSocketClientEventLoopThreadCount(Integer webSocketClientEventLoopThreadCount) Client Netty worker thread pool size for handling requests and response.Configuration.x509CertificatePath(String x509CertificatePath) File system path or classpath location of a fixed custom X.509 Certificate for TLS connections into MockServer.Methods in org.mockserver.configuration with parameters of type ConfigurationModifier and TypeMethodDescriptionstatic ClientConfigurationClientConfiguration.clientConfiguration(Configuration configuration) Constructors in org.mockserver.configuration with parameters of type Configuration -
Uses of Configuration in org.mockserver.cors
Methods in org.mockserver.cors with parameters of type ConfigurationModifier and TypeMethodDescriptionstatic booleanCORSHeaders.isPreflightRequest(Configuration configuration, HttpRequest request) Constructors in org.mockserver.cors with parameters of type Configuration -
Uses of Configuration in org.mockserver.echo.tls
Methods in org.mockserver.echo.tls with parameters of type ConfigurationModifier and TypeMethodDescriptionstatic SSLContextUniqueCertificateChainSSLContextBuilder.uniqueCertificateChainSSLContext(Configuration configuration) -
Uses of Configuration in org.mockserver.examples.proxy.service
Constructors in org.mockserver.examples.proxy.service with parameters of type ConfigurationModifierConstructorDescriptionExampleNettySslContextFactory(Configuration configuration, MockServerLogger mockServerLogger) -
Uses of Configuration in org.mockserver.httpclient
Constructors in org.mockserver.httpclient with parameters of type ConfigurationModifierConstructorDescriptionNettyHttpClient(Configuration configuration, MockServerLogger mockServerLogger, io.netty.channel.EventLoopGroup eventLoopGroup, List<ProxyConfiguration> proxyConfigurations, boolean forwardProxyClient) NettyHttpClient(Configuration configuration, MockServerLogger mockServerLogger, io.netty.channel.EventLoopGroup eventLoopGroup, List<ProxyConfiguration> proxyConfigurations, boolean forwardProxyClient, NettySslContextFactory nettySslContextFactory) StreamingResponseRelayHandler(Configuration configuration, MockServerLogger mockServerLogger) -
Uses of Configuration in org.mockserver.integration
Methods in org.mockserver.integration with parameters of type ConfigurationModifier and TypeMethodDescriptionstatic ClientAndServerClientAndServer.startClientAndServer(Configuration configuration, Integer... port) static ClientAndServerClientAndServer.startClientAndServer(Configuration configuration, String remoteHost, Integer remotePort, Integer... port) static ClientAndServerClientAndServer.startClientAndServer(Configuration configuration, List<Integer> ports) Constructors in org.mockserver.integration with parameters of type ConfigurationModifierConstructorDescriptionClientAndServer(Configuration configuration, Integer... ports) ClientAndServer(Configuration configuration, String remoteHost, Integer remotePort, Integer... ports) -
Uses of Configuration in org.mockserver.lifecycle
Constructors in org.mockserver.lifecycle with parameters of type Configuration -
Uses of Configuration in org.mockserver.log
Constructors in org.mockserver.log with parameters of type ConfigurationModifierConstructorDescriptionMockServerEventLog(Configuration configuration, MockServerLogger mockServerLogger, Scheduler scheduler, boolean asynchronousEventProcessing) -
Uses of Configuration in org.mockserver.logging
Methods in org.mockserver.logging with parameters of type ConfigurationModifier and TypeMethodDescriptionstatic voidMockServerLogger.writeToSystemOut(org.slf4j.Logger logger, LogEntry logEntry, Configuration configuration) Constructors in org.mockserver.logging with parameters of type ConfigurationModifierConstructorDescriptionMockServerLogger(Configuration configuration, Class<?> loggerClass) MockServerLogger(Configuration configuration, HttpState httpStateHandler) MockServerLogger(Configuration configuration, org.slf4j.Logger logger) -
Uses of Configuration in org.mockserver.mappers
Constructors in org.mockserver.mappers with parameters of type ConfigurationModifierConstructorDescriptionFullHttpRequestToMockServerHttpRequest(Configuration configuration, MockServerLogger mockServerLogger, boolean isSecure, Certificate[] clientCertificates, Integer port) HttpServletRequestToMockServerHttpRequestDecoder(Configuration configuration, MockServerLogger mockServerLogger) -
Uses of Configuration in org.mockserver.matchers
Fields in org.mockserver.matchers declared as ConfigurationModifier and TypeFieldDescriptionprotected final ConfigurationAbstractHttpRequestMatcher.configurationConstructors in org.mockserver.matchers with parameters of type ConfigurationModifierConstructorDescriptionprotectedAbstractHttpRequestMatcher(Configuration configuration, MockServerLogger mockServerLogger) BinaryRequestPropertiesMatcher(Configuration configuration, MockServerLogger mockServerLogger) DnsRequestPropertiesMatcher(Configuration configuration, MockServerLogger mockServerLogger) HttpRequestPropertiesMatcher(Configuration configuration, MockServerLogger mockServerLogger) protectedHttpRequestsPropertiesMatcher(Configuration configuration, MockServerLogger mockServerLogger) MatcherBuilder(Configuration configuration, MockServerLogger mockServerLogger) -
Uses of Configuration in org.mockserver.memory
Constructors in org.mockserver.memory with parameters of type ConfigurationModifierConstructorDescriptionMemoryMonitoring(Configuration configuration, MockServerEventLog mockServerLog, RequestMatchers requestMatchers) -
Uses of Configuration in org.mockserver.metrics
Constructors in org.mockserver.metrics with parameters of type ConfigurationModifierConstructorDescriptionMetrics(Configuration configuration) MetricsHandler(Configuration configuration) -
Uses of Configuration in org.mockserver.mock
Methods in org.mockserver.mock that return ConfigurationMethods in org.mockserver.mock with parameters of type ConfigurationModifier and TypeMethodDescriptionstatic RequestMatchersExpectationStoreFactory.create(Configuration configuration, MockServerLogger mockServerLogger, Scheduler scheduler, WebSocketClientRegistry webSocketClientRegistry) Create the expectation store via the registered factory (default: the standard in-memoryRequestMatchers).ExpectationStoreFactory.Factory.create(Configuration configuration, MockServerLogger mockServerLogger, Scheduler scheduler, WebSocketClientRegistry webSocketClientRegistry) Constructors in org.mockserver.mock with parameters of type ConfigurationModifierConstructorDescriptionHttpState(Configuration configuration, MockServerLogger mockServerLogger, Scheduler scheduler) RequestMatchers(Configuration configuration, MockServerLogger mockServerLogger, Scheduler scheduler, WebSocketClientRegistry webSocketClientRegistry) -
Uses of Configuration in org.mockserver.mock.action.http
Fields in org.mockserver.mock.action.http declared as ConfigurationConstructors in org.mockserver.mock.action.http with parameters of type ConfigurationModifierConstructorDescriptionHttpActionHandler(Configuration configuration, io.netty.channel.EventLoopGroup eventLoopGroup, HttpState httpStateHandler, List<ProxyConfiguration> proxyConfigurations, NettySslContextFactory nettySslContextFactory) HttpForwardActionHandler(MockServerLogger logFormatter, Configuration configuration, NettyHttpClient httpClient) HttpForwardClassCallbackActionHandler(MockServerLogger mockServerLogger, Configuration configuration, NettyHttpClient httpClient) HttpForwardObjectCallbackActionHandler(HttpState httpStateHandler, Configuration configuration, NettyHttpClient httpClient) HttpForwardTemplateActionHandler(MockServerLogger mockServerLogger, Configuration configuration, NettyHttpClient httpClient) HttpForwardValidateActionHandler(MockServerLogger mockServerLogger, Configuration configuration, NettyHttpClient httpClient) HttpForwardWithFallbackActionHandler(MockServerLogger mockServerLogger, Configuration configuration, NettyHttpClient httpClient) HttpOverrideForwardedRequestActionHandler(MockServerLogger logFormatter, Configuration configuration, NettyHttpClient httpClient) HttpResponseTemplateActionHandler(MockServerLogger mockServerLogger, Configuration configuration) -
Uses of Configuration in org.mockserver.netty
Constructors in org.mockserver.netty with parameters of type ConfigurationModifierConstructorDescriptionHttpRequestHandler(Configuration configuration, LifeCycle server, HttpState httpState, HttpActionHandler httpActionHandler) MockServer(Configuration configuration, Integer... localPorts) Start the instance using the ports providedMockServer(Configuration configuration, Integer remotePort, String remoteHost, Integer... localPorts) Start the instance using the ports providedMockServer(Configuration configuration, List<ProxyConfiguration> proxyConfigurations, Integer... localPorts) Start the instance using the ports provided configuring forwarded or proxied requests to go via an additional proxyMockServer(Configuration configuration, List<ProxyConfiguration> proxyConfigurations, String remoteHost, Integer remotePort, Integer... localPorts) Start the instance using the ports provided configuring forwarded or proxied requests to go via an additional proxyMockServer(Configuration configuration, ProxyConfiguration proxyConfiguration, String remoteHost, Integer remotePort, Integer... localPorts) Start the instance using the ports provided configuring forwarded or proxied requests to go via an additional proxyMockServerUnificationInitializer(Configuration configuration, LifeCycle server, HttpState httpState, HttpActionHandler actionHandler, NettySslContextFactory nettySslContextFactory) -
Uses of Configuration in org.mockserver.netty.grpc
Constructors in org.mockserver.netty.grpc with parameters of type ConfigurationModifierConstructorDescriptionGrpcBidiRouterHandler(Configuration configuration, GrpcProtoDescriptorStore descriptorStore, MockServerLogger mockServerLogger, boolean sslEnabled, Certificate[] clientCertificates, CallbackWebSocketServerHandler callbackWebSocketServerHandler, DashboardWebSocketHandler dashboardWebSocketHandler, McpStreamableHttpHandler mcpStreamableHttpHandler, TraceContextHandler traceContextHandler, AltSvcHeaderHandler altSvcHeaderHandler, GrpcToHttpResponseHandler grpcToHttpResponseHandler, GrpcToHttpRequestHandler grpcToHttpRequestHandler, HttpRequestHandler httpRequestHandler) GrpcBidiRouterHandler(Configuration configuration, GrpcProtoDescriptorStore descriptorStore, MockServerLogger mockServerLogger, boolean sslEnabled, Certificate[] clientCertificates, CallbackWebSocketServerHandler callbackWebSocketServerHandler, DashboardWebSocketHandler dashboardWebSocketHandler, McpStreamableHttpHandler mcpStreamableHttpHandler, TraceContextHandler traceContextHandler, AltSvcHeaderHandler altSvcHeaderHandler, GrpcToHttpResponseHandler grpcToHttpResponseHandler, GrpcToHttpRequestHandler grpcToHttpRequestHandler, HttpRequestHandler httpRequestHandler, HttpState httpState) GrpcMultiplexChildInitializer(Configuration configuration, LifeCycle server, HttpState httpState, HttpActionHandler actionHandler, MockServerLogger mockServerLogger, McpSessionManager mcpSessionManager, boolean sslEnabled, Certificate[] clientCertificates) -
Uses of Configuration in org.mockserver.netty.http3
Constructors in org.mockserver.netty.http3 with parameters of type ConfigurationModifierConstructorDescriptionHttp3GrpcResponseWriter(Configuration configuration, MockServerLogger mockServerLogger, io.netty.channel.ChannelHandlerContext ctx, GrpcProtoDescriptorStore descriptorStore, String grpcService, String grpcMethod) Http3MockServerHandler(Configuration configuration, MockServerLogger mockServerLogger, HttpState httpState, HttpActionHandler httpActionHandler, Metrics metrics) Http3MockServerHandler(Configuration configuration, MockServerLogger mockServerLogger, HttpState httpState, HttpActionHandler httpActionHandler, Metrics metrics, McpRequestProcessor mcpRequestProcessor) Http3ResponseWriter(Configuration configuration, MockServerLogger mockServerLogger, io.netty.channel.ChannelHandlerContext ctx) Http3Server(Configuration configuration, MockServerLogger mockServerLogger, HttpState httpState, HttpActionHandler httpActionHandler) Create an HTTP/3 server wired into MockServer's request pipeline (no MCP).Http3Server(Configuration configuration, MockServerLogger mockServerLogger, HttpState httpState, HttpActionHandler httpActionHandler, LifeCycle server, McpSessionManager mcpSessionManager) Create an HTTP/3 server wired into MockServer's request pipeline, with MCP support. -
Uses of Configuration in org.mockserver.netty.proxy
Methods in org.mockserver.netty.proxy with parameters of type ConfigurationModifier and TypeMethodDescriptionstatic booleanMockServerIpTransparentHelper.applyIfEnabled(io.netty.bootstrap.ServerBootstrap bootstrap, Configuration configuration) Applies theIP_TRANSPARENTchannel option to the server bootstrap if TPROXY mode is enabled in configuration and the epoll transport is available.CompositeOriginalDestinationResolver.defaultChain(Configuration configuration) Returns the default chain: [TPROXY, eBPF, SO_ORIGINAL_DST, conntrack, dns-intent].Constructors in org.mockserver.netty.proxy with parameters of type ConfigurationModifierConstructorDescriptionBinaryRequestProxyingHandler(Configuration configuration, MockServerLogger mockServerLogger, Scheduler scheduler, NettyHttpClient httpClient, HttpState httpState) EbpfOriginalDestinationResolver(Configuration configuration) TproxyOriginalDestinationResolver(Configuration configuration) Creates a TPROXY resolver that checks whether TPROXY mode is active via the given configuration.TransparentProxyHandler(Configuration configuration, MockServerLogger logger) TransparentProxyHandler(Configuration configuration, MockServerLogger logger, TransparentProxyHandler.OriginalDestinationResolver resolver) Constructor with injectable resolver for unit testing.TransparentProxyInitializer(Configuration configuration, MockServerLogger logger) -
Uses of Configuration in org.mockserver.netty.proxy.connect
Constructors in org.mockserver.netty.proxy.connect with parameters of type ConfigurationModifierConstructorDescriptionHttpConnectHandler(Configuration configuration, LifeCycle server, MockServerLogger mockServerLogger, String host, int port) -
Uses of Configuration in org.mockserver.netty.proxy.relay
Constructors in org.mockserver.netty.proxy.relay with parameters of type ConfigurationModifierConstructorDescriptionRelayConnectHandler(Configuration configuration, LifeCycle server, MockServerLogger mockServerLogger, String host, int port) -
Uses of Configuration in org.mockserver.netty.proxy.socks
Fields in org.mockserver.netty.proxy.socks declared as ConfigurationConstructors in org.mockserver.netty.proxy.socks with parameters of type ConfigurationModifierConstructorDescriptionSocks4ConnectHandler(Configuration configuration, MockServerLogger mockServerLogger, LifeCycle server, String host, int port) Socks4ProxyHandler(Configuration configuration, MockServerLogger mockServerLogger, LifeCycle server) Socks5ConnectHandler(Configuration configuration, MockServerLogger mockServerLogger, LifeCycle server, String host, int port) Socks5ProxyHandler(Configuration configuration, MockServerLogger mockServerLogger, LifeCycle server) SocksConnectHandler(Configuration configuration, MockServerLogger mockServerLogger, LifeCycle server, String host, int port) SocksProxyHandler(Configuration configuration, MockServerLogger mockServerLogger, LifeCycle server) -
Uses of Configuration in org.mockserver.netty.responsewriter
Constructors in org.mockserver.netty.responsewriter with parameters of type ConfigurationModifierConstructorDescriptionEarlyNettyResponseWriter(Configuration configuration, MockServerLogger mockServerLogger, io.netty.channel.ChannelHandlerContext ctx, Scheduler scheduler) NettyResponseWriter(Configuration configuration, MockServerLogger mockServerLogger, io.netty.channel.ChannelHandlerContext ctx, Scheduler scheduler) -
Uses of Configuration in org.mockserver.netty.unification
Constructors in org.mockserver.netty.unification with parameters of type ConfigurationModifierConstructorDescriptionEarlyMatchingHandler(Configuration configuration, HttpState httpState, HttpActionHandler actionHandler, boolean isSecure) PortUnificationHandler(Configuration configuration, LifeCycle server, HttpState httpState, HttpActionHandler actionHandler, NettySslContextFactory nettySslContextFactory, McpSessionManager mcpSessionManager) TraceContextHandler(Configuration configuration) -
Uses of Configuration in org.mockserver.persistence
Constructors in org.mockserver.persistence with parameters of type ConfigurationModifierConstructorDescriptionExpectationFileSystemPersistence(Configuration configuration, MockServerLogger mockServerLogger, RequestMatchers requestMatchers) Backwards-compatible constructor that creates aFilesystemBlobStoreinternally, preserving the original direct-file-I/O behaviour for callers that do not supply a BlobStore (e.g. existing tests).ExpectationFileSystemPersistence(Configuration configuration, MockServerLogger mockServerLogger, RequestMatchers requestMatchers, BlobStore blobStore) Creates persistence backed by the givenBlobStore.ExpectationFileWatcher(Configuration configuration, MockServerLogger mockServerLogger, RequestMatchers requestMatchers, ExpectationInitializerLoader expectationInitializerLoader) RecordedExpectationFileSystemPersistence(Configuration configuration, MockServerLogger mockServerLogger, MockServerEventLog mockServerEventLog) Backwards-compatible constructor that creates aFilesystemBlobStoreinternally, preserving the original direct-file-I/O behaviour for callers that do not supply a BlobStore (e.g. existing tests).RecordedExpectationFileSystemPersistence(Configuration configuration, MockServerLogger mockServerLogger, MockServerEventLog mockServerEventLog, BlobStore blobStore) Creates persistence backed by the givenBlobStore. -
Uses of Configuration in org.mockserver.proxyconfiguration
Methods in org.mockserver.proxyconfiguration with parameters of type ConfigurationModifier and TypeMethodDescriptionstatic List<ProxyConfiguration>ProxyConfiguration.proxyConfiguration(Configuration configuration) static voidInetAddressValidator.validateForwardTarget(Configuration configuration, String host) Validate a forward target. -
Uses of Configuration in org.mockserver.responsewriter
Fields in org.mockserver.responsewriter declared as ConfigurationConstructors in org.mockserver.responsewriter with parameters of type ConfigurationModifierConstructorDescriptionprotectedResponseWriter(Configuration configuration, MockServerLogger mockServerLogger) -
Uses of Configuration in org.mockserver.scheduler
Constructors in org.mockserver.scheduler with parameters of type ConfigurationModifierConstructorDescriptionScheduler(Configuration configuration, MockServerLogger mockServerLogger) Scheduler(Configuration configuration, MockServerLogger mockServerLogger, boolean synchronous) -
Uses of Configuration in org.mockserver.serialization
Methods in org.mockserver.serialization that return ConfigurationMethods in org.mockserver.serialization that return types with arguments of type ConfigurationMethods in org.mockserver.serialization with parameters of type Configuration -
Uses of Configuration in org.mockserver.serialization.model
Methods in org.mockserver.serialization.model that return ConfigurationMethods in org.mockserver.serialization.model with parameters of type ConfigurationConstructors in org.mockserver.serialization.model with parameters of type Configuration -
Uses of Configuration in org.mockserver.server.initialize
Constructors in org.mockserver.server.initialize with parameters of type ConfigurationModifierConstructorDescriptionExpectationInitializerLoader(Configuration configuration, MockServerLogger mockServerLogger, RequestMatchers requestMatchers) -
Uses of Configuration in org.mockserver.servlet.responsewriter
Constructors in org.mockserver.servlet.responsewriter with parameters of type ConfigurationModifierConstructorDescriptionServletResponseWriter(Configuration configuration, MockServerLogger mockServerLogger, jakarta.servlet.http.HttpServletResponse httpServletResponse) -
Uses of Configuration in org.mockserver.socket.tls
Methods in org.mockserver.socket.tls with parameters of type ConfigurationModifier and TypeMethodDescriptionKeyAndCertificateFactorySupplier.buildKeyAndCertificateFactory(MockServerLogger logger, boolean isServerInstance, Configuration configuration) static KeyAndCertificateFactoryKeyAndCertificateFactoryFactory.createKeyAndCertificateFactory(Configuration configuration, MockServerLogger mockServerLogger) static KeyAndCertificateFactoryKeyAndCertificateFactoryFactory.createKeyAndCertificateFactory(Configuration configuration, MockServerLogger mockServerLogger, boolean forServer) Constructors in org.mockserver.socket.tls with parameters of type ConfigurationModifierConstructorDescriptionCertificateConfigurationValidator(Configuration configuration, MockServerLogger mockServerLogger) KeyStoreFactory(Configuration configuration, MockServerLogger mockServerLogger) NettySslContextFactory(Configuration configuration, MockServerLogger mockServerLogger, boolean forServer) SniHandler(Configuration configuration, NettySslContextFactory nettySslContextFactory) -
Uses of Configuration in org.mockserver.socket.tls.bouncycastle
Constructors in org.mockserver.socket.tls.bouncycastle with parameters of type ConfigurationModifierConstructorDescriptionBCKeyAndCertificateFactory(Configuration configuration, MockServerLogger mockServerLogger) -
Uses of Configuration in org.mockserver.state
Methods in org.mockserver.state with parameters of type ConfigurationModifier and TypeMethodDescriptionBlobStoreFactory.create(Configuration configuration) Creates aBlobStorefrom the given configuration.static StateBackendStateBackendFactory.create(Configuration configuration) Create the state backend via the registered factory.StateBackendFactory.Factory.create(Configuration configuration) -
Uses of Configuration in org.mockserver.state.infinispan
Constructors in org.mockserver.state.infinispan with parameters of type ConfigurationModifierConstructorDescriptionInfinispanStateBackend(Configuration configuration) Creates an Infinispan state backend in the appropriate mode based on configuration. -
Uses of Configuration in org.mockserver.templates.engine.javascript
Constructors in org.mockserver.templates.engine.javascript with parameters of type ConfigurationModifierConstructorDescriptionJavaScriptTemplateEngine(MockServerLogger mockServerLogger, Configuration configuration) -
Uses of Configuration in org.mockserver.templates.engine.mustache
Constructors in org.mockserver.templates.engine.mustache with parameters of type ConfigurationModifierConstructorDescriptionMustacheTemplateEngine(MockServerLogger mockServerLogger, Configuration configuration) -
Uses of Configuration in org.mockserver.templates.engine.velocity
Constructors in org.mockserver.templates.engine.velocity with parameters of type ConfigurationModifierConstructorDescriptionVelocityTemplateEngine(MockServerLogger mockServerLogger, Configuration configuration)