public final class ConfigWebFactory extends ConfigFactory
Modifier and Type | Class and Description |
---|---|
static class |
ConfigWebFactory.MonitorTemp |
Constructor and Description |
---|
ConfigWebFactory() |
Modifier and Type | Method and Description |
---|---|
static void |
createContextFiles(Resource configDir,
javax.servlet.ServletConfig servletConfig,
boolean doNew)
Creates all files for Lucee Context
|
static void |
createContextFilesPost(Resource configDir,
ConfigImpl config,
javax.servlet.ServletConfig servletConfig,
boolean isEventGatewayContext,
boolean doNew) |
static void |
createHtAccess(Resource htAccess) |
static String |
decrypt(String str) |
static void |
deployWebContext(ConfigServer cs,
ConfigWeb cw,
boolean throwError) |
static String |
encrypt(String str) |
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) |
createFileFromResourceEL, getChildByName, getChildByName, getChildByName, getChildren
public ConfigWebFactory()
public static ConfigWebImpl newInstance(CFMLFactoryImpl factory, ConfigServerImpl configServer, Resource configDir, boolean isConfigDirACustomSetting, javax.servlet.ServletConfig servletConfig) throws SAXException, ClassException, PageException, IOException, TagLibException, FunctionLibException, NoSuchAlgorithmException
configServer
- configDir
- servletConfig
- SAXException
ClassNotFoundException
PageException
IOException
TagLibException
FunctionLibException
NoSuchAlgorithmException
ClassException
public static void createHtAccess(Resource htAccess)
public static void reloadInstance(ConfigServerImpl cs, ConfigWebImpl cw, boolean force) throws SAXException, ClassException, PageException, IOException, TagLibException, FunctionLibException
cs
- force
- SAXException
ClassNotFoundException
PageException
IOException
TagLibException
FunctionLibException
NoSuchAlgorithmException
ClassException
public static void load(ConfigServerImpl cs, ConfigImpl config, Document doc, boolean isReload, boolean doNew) throws ClassException, PageException, IOException, TagLibException, FunctionLibException
cs
- config
- doc
- ClassNotFoundException
IOException
FunctionLibException
TagLibException
PageException
ClassException
public static void deployWebContext(ConfigServer cs, ConfigWeb cw, boolean throwError) throws IOException
IOException
public static void reloadLib(ConfigImpl config) throws IOException
IOException
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 int toInt(String value, int defaultValue)
value
- String value represent a int valuedefaultValue
- if can't cast to a int is value will be returnedCopyright © 2015 Lucee