Class ConfigurationProperties


  • public class ConfigurationProperties
    extends Object
    Author:
    jamesdbloom
    • Constructor Detail

      • ConfigurationProperties

        public ConfigurationProperties()
    • 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)
      • maxLogEntries

        public static int maxLogEntries()
      • maxLogEntries

        public static void maxLogEntries​(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
      • directoryToSaveDynamicSSLCertificate

        public static String directoryToSaveDynamicSSLCertificate()
      • directoryToSaveDynamicSSLCertificate

        public static void directoryToSaveDynamicSSLCertificate​(String directoryToSaveDynamicSSLCertificate)
        Override the default location used to save dynamically generated certificates, by default this is saved as a temporary file by the JVM, for example: /var/folders/lz/_kbrwxrx4ss3brnc0y9ms2vc0000gn/T/MockServerCertificate75d431bb-cbf1-4cfe-b8a2-000ece2150e3.pem1048371440427200504.tmp
        Parameters:
        directoryToSaveDynamicSSLCertificate - location to save private key and 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
      • disableSystemOut

        public static boolean disableSystemOut()
      • disableSystemOut

        public static void disableSystemOut​(boolean disable)
      • metricsEnabled

        public static boolean metricsEnabled()
      • metricsEnabled

        public static void metricsEnabled​(boolean enable)
      • httpProxy

        public static void httpProxy​(String hostAndPort)
      • httpsProxy

        public static void httpsProxy​(String hostAndPort)
      • 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)
      • persistExpectations

        public static boolean persistExpectations()
      • persistExpectations

        public static void persistExpectations​(boolean enable)
      • persistedExpectationsPath

        public static String persistedExpectationsPath()
      • persistedExpectationsPath

        public static void persistedExpectationsPath​(String persistedExpectationsPath)