Package org.mockserver.configuration
Class ConfigurationProperties
- java.lang.Object
-
- org.mockserver.configuration.ConfigurationProperties
-
public class ConfigurationProperties extends Object
- Author:
- jamesdbloom
-
-
Field Summary
Fields Modifier and Type Field Description static MockServerLogger
MOCK_SERVER_LOGGER
-
Constructor Summary
Constructors Constructor Description ConfigurationProperties()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addSslSubjectAlternativeNameDomains(String... additionalSubjectAlternativeNameDomains)
static void
addSslSubjectAlternativeNameIps(String... additionalSubjectAlternativeNameIps)
static String
certificateAuthorityCertificate()
static void
certificateAuthorityCertificate(String certificateAuthorityCertificate)
Override the default certificate authority X509 certificatestatic String
certificateAuthorityPrivateKey()
static void
certificateAuthorityPrivateKey(String certificateAuthorityPrivateKey)
Override the default certificate authority private keystatic void
clearSslSubjectAlternativeNameDomains()
static void
clearSslSubjectAlternativeNameIps()
static boolean
containsSslSubjectAlternativeName(String domainOrIp)
static boolean
deleteGeneratedKeyStoreOnExit()
static void
deleteGeneratedKeyStoreOnExit(boolean deleteGeneratedKeyStoreOnExit)
static boolean
disableSystemOut()
static void
disableSystemOut(boolean disable)
static boolean
enableCORSForAllResponses()
static void
enableCORSForAllResponses(boolean enable)
static boolean
enableCORSForAPI()
static void
enableCORSForAPI(boolean enable)
static boolean
enableCORSForAPIHasBeenSetExplicitly()
static InetSocketAddress
httpProxy()
static void
httpProxy(String hostAndPort)
static InetSocketAddress
httpsProxy()
static void
httpsProxy(String hostAndPort)
static String
initializationClass()
static void
initializationClass(String initializationClass)
static String
initializationJsonPath()
static void
initializationJsonPath(String initializationJsonPath)
static String
javaKeyStoreFilePath()
static void
javaKeyStoreFilePath(String keyStoreFilePath)
static String
javaKeyStorePassword()
static void
javaKeyStorePassword(String keyStorePassword)
static String
javaKeyStoreType()
static void
javaKeyStoreType(String keyStoreType)
static String
javaLoggerLogLevel()
static String
localBoundIP()
static void
localBoundIP(String localBoundIP)
static org.slf4j.event.Level
logLevel()
static void
logLevel(String level)
Override the default logging level of INFOstatic int
maxChunkSize()
static void
maxChunkSize(int size)
static int
maxExpectations()
static void
maxExpectations(int count)
static int
maxHeaderSize()
static void
maxHeaderSize(int size)
static int
maxInitialLineLength()
static void
maxInitialLineLength(int length)
static long
maxSocketTimeout()
static void
maxSocketTimeout(long milliseconds)
static int
maxWebSocketExpectations()
static void
maxWebSocketExpectations(int count)
static boolean
metricsEnabled()
static void
metricsEnabled(boolean enabled)
static int
nioEventLoopThreadCount()
static void
nioEventLoopThreadCount(int count)
static boolean
preventCertificateDynamicUpdate()
static void
preventCertificateDynamicUpdate(boolean prevent)
Prevent certificates from dynamically updating when domain list changesstatic String
proxyAuthenticationPassword()
static void
proxyAuthenticationPassword(String proxyAuthenticationPassword)
static String
proxyAuthenticationRealm()
static void
proxyAuthenticationRealm(String proxyAuthenticationRealm)
static String
proxyAuthenticationUsername()
static void
proxyAuthenticationUsername(String proxyAuthenticationUsername)
static boolean
rebuildKeyStore()
static void
rebuildKeyStore(boolean rebuildKeyStore)
static boolean
rebuildServerKeyStore()
static void
rebuildServerKeyStore(boolean rebuildKeyStore)
static int
requestLogSize()
static void
requestLogSize(int count)
static int
ringBufferSize()
static int
socketConnectionTimeout()
static void
socketConnectionTimeout(int milliseconds)
static InetSocketAddress
socksProxy()
static void
socksProxy(String hostAndPort)
static String
sslCertificateDomainName()
static void
sslCertificateDomainName(String domainName)
static String[]
sslSubjectAlternativeNameDomains()
static String[]
sslSubjectAlternativeNameIps()
-
-
-
Field Detail
-
MOCK_SERVER_LOGGER
public static final MockServerLogger MOCK_SERVER_LOGGER
-
-
Method Detail
-
enableCORSForAPI
public static boolean enableCORSForAPI()
-
enableCORSForAPIHasBeenSetExplicitly
public static boolean enableCORSForAPIHasBeenSetExplicitly()
-
enableCORSForAPI
public static void enableCORSForAPI(boolean enable)
-
enableCORSForAllResponses
public static boolean enableCORSForAllResponses()
-
enableCORSForAllResponses
public static void enableCORSForAllResponses(boolean enable)
-
maxExpectations
public static int maxExpectations()
-
maxExpectations
public static void maxExpectations(int count)
-
requestLogSize
public static int requestLogSize()
-
requestLogSize
public static void requestLogSize(int count)
-
ringBufferSize
public static int ringBufferSize()
-
maxWebSocketExpectations
public static int maxWebSocketExpectations()
-
maxWebSocketExpectations
public static void maxWebSocketExpectations(int count)
-
maxInitialLineLength
public static int maxInitialLineLength()
-
maxInitialLineLength
public static void maxInitialLineLength(int length)
-
maxHeaderSize
public static int maxHeaderSize()
-
maxHeaderSize
public static void maxHeaderSize(int size)
-
maxChunkSize
public static int maxChunkSize()
-
maxChunkSize
public static void maxChunkSize(int size)
-
nioEventLoopThreadCount
public static int nioEventLoopThreadCount()
-
nioEventLoopThreadCount
public static void nioEventLoopThreadCount(int count)
-
maxSocketTimeout
public static long maxSocketTimeout()
-
maxSocketTimeout
public static void maxSocketTimeout(long milliseconds)
-
socketConnectionTimeout
public static int socketConnectionTimeout()
-
socketConnectionTimeout
public static void socketConnectionTimeout(int milliseconds)
-
javaKeyStoreFilePath
public static String javaKeyStoreFilePath()
-
javaKeyStoreFilePath
public static void javaKeyStoreFilePath(String keyStoreFilePath)
-
javaKeyStorePassword
public static String javaKeyStorePassword()
-
javaKeyStorePassword
public static void javaKeyStorePassword(String keyStorePassword)
-
javaKeyStoreType
public static String javaKeyStoreType()
-
javaKeyStoreType
public static void javaKeyStoreType(String keyStoreType)
-
deleteGeneratedKeyStoreOnExit
public static boolean deleteGeneratedKeyStoreOnExit()
-
deleteGeneratedKeyStoreOnExit
public static void deleteGeneratedKeyStoreOnExit(boolean deleteGeneratedKeyStoreOnExit)
-
sslCertificateDomainName
public static String sslCertificateDomainName()
-
sslCertificateDomainName
public static void sslCertificateDomainName(String domainName)
-
sslSubjectAlternativeNameDomains
public static String[] sslSubjectAlternativeNameDomains()
-
addSslSubjectAlternativeNameDomains
public static void addSslSubjectAlternativeNameDomains(String... additionalSubjectAlternativeNameDomains)
-
clearSslSubjectAlternativeNameDomains
public static void clearSslSubjectAlternativeNameDomains()
-
containsSslSubjectAlternativeName
public static boolean containsSslSubjectAlternativeName(String domainOrIp)
-
sslSubjectAlternativeNameIps
public static String[] sslSubjectAlternativeNameIps()
-
addSslSubjectAlternativeNameIps
public static void addSslSubjectAlternativeNameIps(String... additionalSubjectAlternativeNameIps)
-
clearSslSubjectAlternativeNameIps
public static void clearSslSubjectAlternativeNameIps()
-
rebuildKeyStore
public static boolean rebuildKeyStore()
-
rebuildKeyStore
public static void rebuildKeyStore(boolean rebuildKeyStore)
-
rebuildServerKeyStore
public static boolean rebuildServerKeyStore()
-
rebuildServerKeyStore
public static void rebuildServerKeyStore(boolean rebuildKeyStore)
-
preventCertificateDynamicUpdate
public static void preventCertificateDynamicUpdate(boolean prevent)
Prevent certificates from dynamically updating when domain list changes- Parameters:
prevent
- prevent certificates from dynamically updating when domain list changes
-
preventCertificateDynamicUpdate
public static boolean preventCertificateDynamicUpdate()
-
certificateAuthorityPrivateKey
public static String certificateAuthorityPrivateKey()
-
certificateAuthorityPrivateKey
public static void certificateAuthorityPrivateKey(String certificateAuthorityPrivateKey)
Override the default certificate authority private key- Parameters:
certificateAuthorityPrivateKey
- location of the PEM file containing the certificate authority private key
-
certificateAuthorityCertificate
public static String certificateAuthorityCertificate()
-
certificateAuthorityCertificate
public static void certificateAuthorityCertificate(String certificateAuthorityCertificate)
Override the default certificate authority X509 certificate- Parameters:
certificateAuthorityCertificate
- location of the PEM file containing the certificate authority X509 certificate
-
logLevel
public static org.slf4j.event.Level logLevel()
-
javaLoggerLogLevel
public static String javaLoggerLogLevel()
-
logLevel
public static void logLevel(String level)
Override the default logging level of INFO- Parameters:
level
- the log level, which can be TRACE, DEBUG, INFO, WARN, ERROR, OFF, FINEST, FINE, INFO, WARNING, SEVERE
-
metricsEnabled
public static void metricsEnabled(boolean enabled)
-
metricsEnabled
public static boolean metricsEnabled()
-
disableSystemOut
public static boolean disableSystemOut()
-
disableSystemOut
public static void disableSystemOut(boolean disable)
-
httpProxy
public static InetSocketAddress httpProxy()
-
httpProxy
public static void httpProxy(String hostAndPort)
-
httpsProxy
public static InetSocketAddress httpsProxy()
-
httpsProxy
public static void httpsProxy(String hostAndPort)
-
socksProxy
public static InetSocketAddress socksProxy()
-
socksProxy
public static void socksProxy(String hostAndPort)
-
localBoundIP
public static String localBoundIP()
-
localBoundIP
public static void localBoundIP(String localBoundIP)
-
proxyAuthenticationRealm
public static String proxyAuthenticationRealm()
-
proxyAuthenticationRealm
public static void proxyAuthenticationRealm(String proxyAuthenticationRealm)
-
proxyAuthenticationUsername
public static String proxyAuthenticationUsername()
-
proxyAuthenticationUsername
public static void proxyAuthenticationUsername(String proxyAuthenticationUsername)
-
proxyAuthenticationPassword
public static String proxyAuthenticationPassword()
-
proxyAuthenticationPassword
public static void proxyAuthenticationPassword(String proxyAuthenticationPassword)
-
initializationClass
public static String initializationClass()
-
initializationClass
public static void initializationClass(String initializationClass)
-
initializationJsonPath
public static String initializationJsonPath()
-
initializationJsonPath
public static void initializationJsonPath(String initializationJsonPath)
-
-