Package org.mockserver.configuration
Class ConfigurationProperties
- java.lang.Object
-
- org.mockserver.configuration.ConfigurationProperties
-
public class ConfigurationProperties extends Object
- Author:
- jamesdbloom
-
-
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
disableRequestAudit()
static void
disableRequestAudit(boolean disableRequestAudit)
static boolean
disableSystemOut()
static void
disableSystemOut(boolean disableSystemOut)
static boolean
enableCORSForAllResponses()
static void
enableCORSForAllResponses(boolean enableCORSForAllResponses)
static boolean
enableCORSForAPI()
static void
enableCORSForAPI(boolean enableCORSForAPI)
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
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 int
nioEventLoopThreadCount()
static void
nioEventLoopThreadCount(int count)
static 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 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()
-
-
-
Method Detail
-
enableCORSForAPI
public static boolean enableCORSForAPI()
-
enableCORSForAPIHasBeenSetExplicitly
public static boolean enableCORSForAPIHasBeenSetExplicitly()
-
enableCORSForAPI
public static void enableCORSForAPI(boolean enableCORSForAPI)
-
enableCORSForAllResponses
public static boolean enableCORSForAllResponses()
-
enableCORSForAllResponses
public static void enableCORSForAllResponses(boolean enableCORSForAllResponses)
-
maxExpectations
public static int maxExpectations()
-
maxExpectations
public static void maxExpectations(int count)
-
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)
-
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()
-
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
-
disableRequestAudit
public static boolean disableRequestAudit()
-
disableRequestAudit
public static void disableRequestAudit(boolean disableRequestAudit)
-
disableSystemOut
public static boolean disableSystemOut()
-
disableSystemOut
public static void disableSystemOut(boolean disableSystemOut)
-
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)
-
-