com.filenet.wcm.toolkit.server.util
Class WcmApiConfig

java.lang.Object
  extended bycom.filenet.wcm.toolkit.server.util.WcmApiConfig

public class WcmApiConfig
extends java.lang.Object


Field Summary
protected static WcmString configNotInitialized
           
 
Constructor Summary
WcmApiConfig()
           
 
Method Summary
protected static java.lang.String getConfigValue(java.lang.String appId, java.lang.String key)
          Get a value out of the configuration file based on appId/key.
protected static java.lang.String getJAASConfigurationName(java.util.Locale clientLocale, java.lang.String appId)
           
protected static java.lang.String getJAASConfigurationName(java.util.Properties props, java.lang.String key)
          Get the JAASConfigurationName value based on the key returned from getJAASConfigurationNameKey
protected static java.lang.String getJAASConfigurationNameKey(java.util.Properties props, java.lang.String appId)
           
protected static java.lang.String getKey(java.util.Properties props, java.lang.String appId, java.lang.String key)
           
static java.io.InputStream getWcmApiConfigProperties(java.util.Locale clientLocale, javax.servlet.ServletContext servletContext, java.lang.String appId, boolean containerJAASMode)
          Get an InputStream that contains the content of the WcmApiConfig.properties to use.
static java.io.InputStream getWcmApiConfigProperties(java.util.Locale clientLocale, java.lang.String appId, boolean containerJAASMode)
          Get an InputStream that contains the content of the WcmApiConfig.properties to use.
static void initializeWcmApiConfig(java.util.Locale clientLocale, javax.servlet.ServletContext servletContext)
          Finds the WcmApiConfig.properties to use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

configNotInitialized

protected static final WcmString configNotInitialized
Constructor Detail

WcmApiConfig

public WcmApiConfig()
Method Detail

getKey

protected static java.lang.String getKey(java.util.Properties props,
                                         java.lang.String appId,
                                         java.lang.String key)

getJAASConfigurationNameKey

protected static java.lang.String getJAASConfigurationNameKey(java.util.Properties props,
                                                              java.lang.String appId)

getConfigValue

protected static java.lang.String getConfigValue(java.lang.String appId,
                                                 java.lang.String key)
Get a value out of the configuration file based on appId/key. The key is first qualified by the appId, so that the correct value will be picked up.

Parameters:
appId -
key -
Returns:

getJAASConfigurationName

protected static java.lang.String getJAASConfigurationName(java.util.Properties props,
                                                           java.lang.String key)
Get the JAASConfigurationName value based on the key returned from getJAASConfigurationNameKey

Parameters:
props -
key -
Returns:

getJAASConfigurationName

protected static java.lang.String getJAASConfigurationName(java.util.Locale clientLocale,
                                                           java.lang.String appId)
                                                    throws java.io.IOException
Throws:
java.io.IOException

initializeWcmApiConfig

public static void initializeWcmApiConfig(java.util.Locale clientLocale,
                                          javax.servlet.ServletContext servletContext)
                                   throws WcmException
Finds the WcmApiConfig.properties to use. Looks first for /WEB-INF/WcmApiConfig.properties in the WAR from where this call is made. Then, searches the webapp context classpath for WcmApiConfig.properties, and lastly searches the System classpath.

Parameters:
clientLocale -
servletContext -
Throws:
WcmException

getWcmApiConfigProperties

public static java.io.InputStream getWcmApiConfigProperties(java.util.Locale clientLocale,
                                                            javax.servlet.ServletContext servletContext,
                                                            java.lang.String appId,
                                                            boolean containerJAASMode)
                                                     throws WcmException,
                                                            java.io.IOException
Get an InputStream that contains the content of the WcmApiConfig.properties to use. This call also performs initialization to locate the WcmApiConfig.properties file to use, if necessary.

Parameters:
clientLocale -
appId -
containerJAASMode -
Returns:
Throws:
java.io.IOException
WcmException

getWcmApiConfigProperties

public static java.io.InputStream getWcmApiConfigProperties(java.util.Locale clientLocale,
                                                            java.lang.String appId,
                                                            boolean containerJAASMode)
                                                     throws java.io.IOException
Get an InputStream that contains the content of the WcmApiConfig.properties to use. This call requires that a call to initializeWcmApiConfig has been made previously.

Parameters:
clientLocale -
appId -
containerJAASMode -
Returns:
Throws:
java.io.IOException


© Copyright IBM Corp. 2002, 2007. All Rights Reserved.