railo.runtime.listener
Class AppListenerUtil
java.lang.Object
railo.runtime.listener.AppListenerUtil
public final class AppListenerUtil
- extends Object
Method Summary |
static PageSource |
getApplicationPageSource(PageContext pc,
PageSource requestedPage,
int mode,
RefBoolean isCFC)
|
static PageSource |
getApplicationPageSource(PageContext pc,
PageSource requestedPage,
String filename,
int mode)
|
static PageSource |
getApplicationPageSourceCurr2Root(PageContext pc,
PageSource requestedPage,
RefBoolean isCFC)
|
static PageSource |
getApplicationPageSourceCurr2Root(PageContext pc,
PageSource requestedPage,
String filename)
|
static PageSource |
getApplicationPageSourceCurrent(PageSource requestedPage,
RefBoolean isCFC)
|
static PageSource |
getApplicationPageSourceCurrent(PageSource requestedPage,
String filename)
|
static PageSource |
getApplicationPageSourceRoot(PageContext pc,
RefBoolean isCFC)
|
static PageSource |
getApplicationPageSourceRoot(PageContext pc,
String filename)
|
static void |
setORMConfiguration(PageContext pc,
ApplicationContext ac,
Struct sct)
|
static Mapping[] |
toCustomTagMappings(ConfigWeb cw,
Object o)
|
static Mapping[] |
toCustomTagMappings(ConfigWeb cw,
Object o,
Mapping[] defaultValue)
|
static DataSource |
toDataSource(String name,
Struct data)
|
static DataSource[] |
toDataSources(Object o)
|
static DataSource[] |
toDataSources(Object o,
DataSource[] defaultValue)
|
static String |
toLocalMode(int mode,
String defaultValue)
|
static int |
toLocalMode(Object oMode,
int defaultValue)
|
static int |
toLocalMode(String strMode)
|
static Mapping[] |
toMappings(ConfigWeb cw,
Object o,
Mapping[] defaultValue,
Resource source)
|
static Mapping[] |
toMappings(ConfigWeb cw,
Object o,
Resource source)
|
static Properties |
toS3(String accessKeyId,
String awsSecretKey,
String defaultLocation,
String host)
|
static Properties |
toS3(Struct sct)
|
static short |
toSessionType(String str)
|
static short |
toSessionType(String str,
short defaultValue)
|
static String |
toStringMode(int mode)
|
static String |
toStringType(ApplicationListener listener)
|
static String |
translateLoginStorage(int loginStorage)
|
static int |
translateLoginStorage(String strLoginStorage)
|
static int |
translateLoginStorage(String strLoginStorage,
int defaultValue)
|
static String |
translateScriptProtect(int scriptProtect)
translate int definition of script protect to string definition |
static int |
translateScriptProtect(String strScriptProtect)
translate string definition of script protect to int definition |
ACCESS_KEY_ID
public static final Collection.Key ACCESS_KEY_ID
AWS_SECRET_KEY
public static final Collection.Key AWS_SECRET_KEY
DEFAULT_LOCATION
public static final Collection.Key DEFAULT_LOCATION
CONNECTION_STRING
public static final Collection.Key CONNECTION_STRING
BLOB
public static final Collection.Key BLOB
CLOB
public static final Collection.Key CLOB
CONNECTION_LIMIT
public static final Collection.Key CONNECTION_LIMIT
CONNECTION_TIMEOUT
public static final Collection.Key CONNECTION_TIMEOUT
META_CACHE_TIMEOUT
public static final Collection.Key META_CACHE_TIMEOUT
TIMEZONE
public static final Collection.Key TIMEZONE
ALLOW
public static final Collection.Key ALLOW
STORAGE
public static final Collection.Key STORAGE
READ_ONLY
public static final Collection.Key READ_ONLY
DATABASE
public static final Collection.Key DATABASE
AppListenerUtil
public AppListenerUtil()
getApplicationPageSource
public static PageSource getApplicationPageSource(PageContext pc,
PageSource requestedPage,
String filename,
int mode)
getApplicationPageSourceCurrent
public static PageSource getApplicationPageSourceCurrent(PageSource requestedPage,
String filename)
getApplicationPageSourceRoot
public static PageSource getApplicationPageSourceRoot(PageContext pc,
String filename)
getApplicationPageSourceCurr2Root
public static PageSource getApplicationPageSourceCurr2Root(PageContext pc,
PageSource requestedPage,
String filename)
getApplicationPageSource
public static PageSource getApplicationPageSource(PageContext pc,
PageSource requestedPage,
int mode,
RefBoolean isCFC)
getApplicationPageSourceCurrent
public static PageSource getApplicationPageSourceCurrent(PageSource requestedPage,
RefBoolean isCFC)
getApplicationPageSourceRoot
public static PageSource getApplicationPageSourceRoot(PageContext pc,
RefBoolean isCFC)
getApplicationPageSourceCurr2Root
public static PageSource getApplicationPageSourceCurr2Root(PageContext pc,
PageSource requestedPage,
RefBoolean isCFC)
toStringMode
public static String toStringMode(int mode)
toStringType
public static String toStringType(ApplicationListener listener)
toDataSources
public static DataSource[] toDataSources(Object o,
DataSource[] defaultValue)
toDataSources
public static DataSource[] toDataSources(Object o)
throws PageException,
ClassException
- Throws:
PageException
ClassException
toDataSource
public static DataSource toDataSource(String name,
Struct data)
throws PageException,
ClassException
- Throws:
PageException
ClassException
toMappings
public static Mapping[] toMappings(ConfigWeb cw,
Object o,
Mapping[] defaultValue,
Resource source)
toMappings
public static Mapping[] toMappings(ConfigWeb cw,
Object o,
Resource source)
throws PageException
- Throws:
PageException
toCustomTagMappings
public static Mapping[] toCustomTagMappings(ConfigWeb cw,
Object o,
Mapping[] defaultValue)
toCustomTagMappings
public static Mapping[] toCustomTagMappings(ConfigWeb cw,
Object o)
throws PageException
- Throws:
PageException
toLocalMode
public static String toLocalMode(int mode,
String defaultValue)
toLocalMode
public static int toLocalMode(Object oMode,
int defaultValue)
toLocalMode
public static int toLocalMode(String strMode)
throws ApplicationException
- Throws:
ApplicationException
toSessionType
public static short toSessionType(String str,
short defaultValue)
toSessionType
public static short toSessionType(String str)
throws ApplicationException
- Throws:
ApplicationException
toS3
public static Properties toS3(Struct sct)
toS3
public static Properties toS3(String accessKeyId,
String awsSecretKey,
String defaultLocation,
String host)
setORMConfiguration
public static void setORMConfiguration(PageContext pc,
ApplicationContext ac,
Struct sct)
throws PageException
- Throws:
PageException
translateScriptProtect
public static String translateScriptProtect(int scriptProtect)
- translate int definition of script protect to string definition
- Parameters:
scriptProtect
-
- Returns:
translateScriptProtect
public static int translateScriptProtect(String strScriptProtect)
- translate string definition of script protect to int definition
- Parameters:
scriptProtect
-
- Returns:
translateLoginStorage
public static String translateLoginStorage(int loginStorage)
translateLoginStorage
public static int translateLoginStorage(String strLoginStorage,
int defaultValue)
translateLoginStorage
public static int translateLoginStorage(String strLoginStorage)
throws ApplicationException
- Throws:
ApplicationException
Copyright © 2012 Railo