Provides access to configuration properties which can affect the behavior of the CIM Client,
including control over logs/tracing info, connection pool handling, connection timeout,
JSSE providers, among others.
This class provides static access to the global properties singleton of the SessionProperties
class. It exists for backward compatiblity reasons only.
getBooleanProperty
public static boolean getBooleanProperty(String pKey,
boolean pDefaultValue)
getConnectionPoolSize
public static int getConnectionPoolSize()
getContentLength
public static int getContentLength()
getDebugOutputStream
public static OutputStream getDebugOutputStream()
getDefaultCredentials
public static String getDefaultCredentials()
getDefaultPrincipal
public static String getDefaultPrincipal()
getHttpTimeOut
public static int getHttpTimeOut()
getIntProperty
public static int getIntProperty(String pKey,
int pDefaultValue)
getJSSECertificate
public static String getJSSECertificate()
getJSSEProvider
public static String getJSSEProvider()
getKeystore
public static String getKeystore()
getKeystorePassword
public static char[] getKeystorePassword()
getLevelProperty
public static Level getLevelProperty(String pKey,
Level pDefaultValue)
getLogger
public static Logger getLogger()
getLoggerConsoleLevel
public static Level getLoggerConsoleLevel()
getLoggerFileLevel
public static Level getLoggerFileLevel()
getLoggerNameSpace
public static String getLoggerNameSpace()
getLoggerOutputFile
public static String getLoggerOutputFile()
getRetriesNumber
public static int getRetriesNumber()
getStringProperty
public static String getStringProperty(String pKey,
String pDefaultValue)
getTruststore
public static String getTruststore()
getTruststorePassword
public static char[] getTruststorePassword()
getTruststore_password
public static String getTruststore_password()
getXmlParser
public static int getXmlParser()
isContentLengthRetryEnabled
public static boolean isContentLengthRetryEnabled()
isCredentialsDefaultEnabled
public static boolean isCredentialsDefaultEnabled()
isDebugHttpConnectionPool
public static boolean isDebugHttpConnectionPool()
isDebugInputStream
public static boolean isDebugInputStream()
isDebugXMLInput
public static boolean isDebugXMLInput()
isDebugXMLOutput
public static boolean isDebugXMLOutput()
isLoggingEnabled
public static boolean isLoggingEnabled()
loadProperties
public static boolean loadProperties()
loadProperties
public static boolean loadProperties(Properties properties)
loadProperties
public static boolean loadProperties(String propertyFile)
main
public static void main(String[] args)
setConnectionPoolSize
public static void setConnectionPoolSize(int poolSize)
setContentLength
public static void setContentLength(int pContentLength)
setContentLengthRetry
public static void setContentLengthRetry(boolean pEnableContentCheck)
setCredentialsDefaultEnabled
public static void setCredentialsDefaultEnabled(boolean pCredentialsDefaultEnabled)
setDebugHttpConnectionPool
public static void setDebugHttpConnectionPool(boolean pEnableDebugHTTPPool)
setDebugInputStream
public static void setDebugInputStream(boolean pEnableDebugInputStream)
setDebugOutputStream
public static void setDebugOutputStream(OutputStream pOutputStream)
setDebugXMLInput
public static void setDebugXMLInput(boolean pEnableDebugXMLInput)
setDebugXMLOutput
public static void setDebugXMLOutput(boolean pEnableDebugXMLOutput)
setDefaultCredentials
public static void setDefaultCredentials(String pCredentialsPassword)
setDefaultPrincipal
public static void setDefaultPrincipal(String pCredentialsUser)
setHttpTimeOut
public static void setHttpTimeOut(int pTimeOut)
setJSSECertificate
public static void setJSSECertificate(String pJsseCertificateMgr)
setJSSEProvider
public static void setJSSEProvider(String providerClassName)
setKeystore
public static void setKeystore(String pKeystore)
setKeystore_password
public static void setKeystore_password(char[] pNewPassword)
setLogger
public static void setLogger(Logger pNewLogger)
setLoggerConsoleLevel
public static void setLoggerConsoleLevel(Level pLoggerConsoleLevel)
setLoggerFileLevel
public static void setLoggerFileLevel(Level pLoggerFileLevel)
setLoggerNameSpace
public static void setLoggerNameSpace(String pLoggerNameSpace)
setLoggerOutputFile
public static void setLoggerOutputFile(String pLoggerOutputFile)
setLoggingEnabled
public static void setLoggingEnabled(boolean pEnableLogging)
setRetriesNumber
public static void setRetriesNumber(int pRetries)
setTruststore
public static void setTruststore(String pTruststore)
setTruststore_password
public static void setTruststore_password(String pNewPassword)
setTruststore_password
public static void setTruststore_password(char[] pNewPassword)
setXmlParser
public static void setXmlParser(int parsingMode)