|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.filenet.wcm.toolkit.server.util.ConfigurationUtil
ConfigurationUtil is a utility class that will be used by both the upgrade scripts and by the web application. It returns values from web.xml to the scripts and locates configuration files for the web application.
Method Summary | |
static java.lang.String |
getBootstrapFileValue(java.lang.String webInfFolder)
Returns the bootstrap file value to the upgrade scripts. |
static java.lang.String |
getCofigFileFullPath(java.lang.String configFileName)
|
static java.lang.String |
getConfigDirPath(java.lang.String webInfFolder)
Returns the configuration directory path to the upgrade scripts. |
static java.io.InputStream |
getConfigFileInputStream(java.lang.String configFileName)
Returns the an inputstream to an input config file. |
static java.io.InputStream |
getConfigFileInputStream(java.lang.String configFileName,
javax.servlet.ServletContext servletContext)
Deprecated. - Use getConfigFileInputStream(configFileName) |
static java.io.OutputStream |
getConfigFileOutputStream(java.lang.String configFileName)
Returns the an outputstream to an input config file. |
static java.io.OutputStream |
getConfigFileOutputStream(java.lang.String configFileName,
javax.servlet.ServletContext servletContext)
Deprecated. - Use getConfigFileOutputStream(configFileName) |
static java.lang.String |
getConfigurationDirPath()
|
static java.io.InputStream |
getResourceFileInputStream(java.lang.String relFilePath)
Returns the an inputstream to a resource file. |
static void |
initialize(javax.servlet.ServletContext application)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void initialize(javax.servlet.ServletContext application) throws java.net.MalformedURLException, java.io.IOException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException
java.net.MalformedURLException
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
public static java.lang.String getConfigDirPath(java.lang.String webInfFolder) throws java.lang.Exception
webInfFolder
- The WEB-INF file path.
java.lang.Exception
public static java.lang.String getBootstrapFileValue(java.lang.String webInfFolder) throws java.lang.Exception
webInfFolder
- The WEB-INF file path.
java.lang.Exception
public static java.io.InputStream getConfigFileInputStream(java.lang.String configFileName, javax.servlet.ServletContext servletContext) throws java.lang.Exception
java.lang.Exception
public static java.lang.String getCofigFileFullPath(java.lang.String configFileName) throws java.lang.Exception
java.lang.Exception
public static java.io.InputStream getConfigFileInputStream(java.lang.String configFileName) throws java.lang.Exception
configFileName
- The configuration file name to be located.
java.lang.Exception
public static java.io.InputStream getResourceFileInputStream(java.lang.String relFilePath) throws java.lang.Exception
relFilePath
- The resource file name to be located.
java.lang.Exception
public static java.io.OutputStream getConfigFileOutputStream(java.lang.String configFileName, javax.servlet.ServletContext servletContext) throws java.lang.Exception
java.lang.Exception
public static java.io.OutputStream getConfigFileOutputStream(java.lang.String configFileName) throws java.lang.Exception
configFileName
- The configuration file name to be located.
java.lang.Exception
public static java.lang.String getConfigurationDirPath()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |