|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.config.ConfigWebFactory
public final class ConfigWebFactory
Nested Class Summary | |
---|---|
static class |
ConfigWebFactory.MonitorTemp
|
Constructor Summary | |
---|---|
ConfigWebFactory()
|
Method Summary | |
---|---|
static void |
createContextFiles(Resource configDir,
javax.servlet.ServletConfig servletConfig,
boolean doNew)
Creates all files for Railo Context |
static void |
createContextFilesPost(Resource configDir,
ConfigImpl config,
javax.servlet.ServletConfig servletConfig,
boolean isEventGatewayContext,
boolean doNew)
|
static void |
createFileFromResourceEL(String resource,
Resource file)
|
static void |
createHtAccess(Resource htAccess)
|
static String |
decrypt(String str)
|
static String |
encrypt(String str)
|
static Element |
getChildByName(Node parent,
String nodeName)
return first direct child Elements of a Element with given Name |
static Element |
getChildByName(Node parent,
String nodeName,
boolean insertBefore)
|
static Element |
getChildByName(Node parent,
String nodeName,
boolean insertBefore,
boolean doNotCreate)
|
static Element[] |
getChildren(Node parent,
String nodeName)
return all direct child Elements of a Element with given Name |
static void |
load(ConfigServerImpl cs,
ConfigImpl config,
Document doc,
boolean isReload,
boolean doNew)
|
static ConfigWebImpl |
newInstance(CFMLFactoryImpl factory,
ConfigServerImpl configServer,
Resource configDir,
boolean isConfigDirACustomSetting,
javax.servlet.ServletConfig servletConfig)
creates a new ServletConfig Impl Object |
static void |
reloadInstance(ConfigServerImpl cs,
ConfigWebImpl cw,
boolean force)
reloads the Config Object |
static void |
reloadLib(ConfigImpl config)
|
static int |
toInt(String value,
int defaultValue)
cast a string value to a int |
static long |
toLong(String value,
long defaultValue)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigWebFactory()
Method Detail |
---|
public static ConfigWebImpl newInstance(CFMLFactoryImpl factory, ConfigServerImpl configServer, Resource configDir, boolean isConfigDirACustomSetting, javax.servlet.ServletConfig servletConfig) throws SAXException, ClassException, PageException, IOException, TagLibException, FunctionLibException
configServer
- configDir
- servletConfig
-
SAXException
ClassNotFoundException
PageException
IOException
TagLibException
FunctionLibException
ClassException
public static void createHtAccess(Resource htAccess)
public static void reloadInstance(ConfigServerImpl cs, ConfigWebImpl cw, boolean force) throws SAXException, ClassException, PageException, IOException, TagLibException, FunctionLibException
config
- force
-
SAXException
ClassNotFoundException
PageException
IOException
TagLibException
FunctionLibException
ClassException
public static void load(ConfigServerImpl cs, ConfigImpl config, Document doc, boolean isReload, boolean doNew) throws ClassException, PageException, IOException, TagLibException, FunctionLibException
configServer
- config
- doc
-
ClassNotFoundException
IOException
FunctionLibException
TagLibException
PageException
ClassException
public static void reloadLib(ConfigImpl config) throws IOException
IOException
public static void createFileFromResourceEL(String resource, Resource file)
public static void createContextFiles(Resource configDir, javax.servlet.ServletConfig servletConfig, boolean doNew) throws IOException
configDir
-
IOException
IOException
public static void createContextFilesPost(Resource configDir, ConfigImpl config, javax.servlet.ServletConfig servletConfig, boolean isEventGatewayContext, boolean doNew)
public static String decrypt(String str)
public static String encrypt(String str)
public static int toInt(String value, int defaultValue)
value
- String value represent a int valuedefaultValue
- if can't cast to a int is value will be returned
public static long toLong(String value, long defaultValue)
public static Element getChildByName(Node parent, String nodeName)
parent
- nodeName
-
public static Element getChildByName(Node parent, String nodeName, boolean insertBefore)
public static Element getChildByName(Node parent, String nodeName, boolean insertBefore, boolean doNotCreate)
public static Element[] getChildren(Node parent, String nodeName)
parent
- nodeName
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |