org.sblim.wbem.util

Class GlobalProperties


public class GlobalProperties
extends Properties

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.
See Also:
SessionProperties.getGlobalProperties()

Field Summary

static int
DOM_PARSER
static int
PULL_PARSER
static int
SAX_PARSER

Method Summary

static boolean
getBooleanProperty(String pKey, boolean pDefaultValue)
static int
getConnectionPoolSize()
static int
getContentLength()
static OutputStream
getDebugOutputStream()
static String
getDefaultCredentials()
static String
getDefaultPrincipal()
static int
getHttpTimeOut()
static int
getIntProperty(String pKey, int pDefaultValue)
static String
getJSSECertificate()
static String
getJSSEProvider()
static String
getKeystore()
static char[]
getKeystorePassword()
static Level
getLevelProperty(String pKey, Level pDefaultValue)
static Logger
getLogger()
static Level
getLoggerConsoleLevel()
static Level
getLoggerFileLevel()
static String
getLoggerNameSpace()
static String
getLoggerOutputFile()
static int
getRetriesNumber()
static String
getStringProperty(String pKey, String pDefaultValue)
static String
getTruststore()
static char[]
getTruststorePassword()
static String
getTruststore_password()
static int
getXmlParser()
static boolean
isContentLengthRetryEnabled()
static boolean
isCredentialsDefaultEnabled()
static boolean
isDebugHttpConnectionPool()
static boolean
isDebugInputStream()
static boolean
isDebugXMLInput()
static boolean
isDebugXMLOutput()
static boolean
isLoggingEnabled()
static boolean
loadProperties()
static boolean
loadProperties(Properties properties)
static boolean
loadProperties(String propertyFile)
static void
main(String[] args)
static void
setConnectionPoolSize(int poolSize)
static void
setContentLength(int pContentLength)
static void
setContentLengthRetry(boolean pEnableContentCheck)
static void
setCredentialsDefaultEnabled(boolean pCredentialsDefaultEnabled)
static void
setDebugHttpConnectionPool(boolean pEnableDebugHTTPPool)
static void
setDebugInputStream(boolean pEnableDebugInputStream)
static void
setDebugOutputStream(OutputStream pOutputStream)
static void
setDebugXMLInput(boolean pEnableDebugXMLInput)
static void
setDebugXMLOutput(boolean pEnableDebugXMLOutput)
static void
setDefaultCredentials(String pCredentialsPassword)
static void
setDefaultPrincipal(String pCredentialsUser)
static void
setHttpTimeOut(int pTimeOut)
static void
setJSSECertificate(String pJsseCertificateMgr)
static void
setJSSEProvider(String providerClassName)
static void
setKeystore(String pKeystore)
static void
setKeystore_password(char[] pNewPassword)
static void
setLogger(Logger pNewLogger)
static void
setLoggerConsoleLevel(Level pLoggerConsoleLevel)
static void
setLoggerFileLevel(Level pLoggerFileLevel)
static void
setLoggerNameSpace(String pLoggerNameSpace)
static void
setLoggerOutputFile(String pLoggerOutputFile)
static void
setLoggingEnabled(boolean pEnableLogging)
static void
setRetriesNumber(int pRetries)
static void
setTruststore(String pTruststore)
static void
setTruststore_password(String pNewPassword)
static void
setTruststore_password(char[] pNewPassword)
static void
setXmlParser(int parsingMode)

Field Details

DOM_PARSER

public static final int DOM_PARSER
Field Value:
2

PULL_PARSER

public static final int PULL_PARSER
Field Value:
0

SAX_PARSER

public static final int SAX_PARSER
Field Value:
1

Method Details

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)

Copyright © 2005, 2007 IBM Corporation. All Rights Reserved.