railo.runtime.listener
Class AppListenerUtil

java.lang.Object
  extended by railo.runtime.listener.AppListenerUtil

public final class AppListenerUtil
extends Object


Constructor Summary
AppListenerUtil()
           
 
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, ApplicationContextPro ac, Struct sct)
           
static Mapping[] toCustomTagMappings(ConfigWeb cw, Object o)
           
static Mapping[] toCustomTagMappings(ConfigWeb cw, Object o, Mapping[] defaultValue)
           
static int toLocalMode(Object oMode, int defaultValue)
           
static int toLocalMode(String strMode)
           
static Mapping[] toMappings(ConfigWeb cw, Object o)
           
static Mapping[] toMappings(ConfigWeb cw, Object o, Mapping[] defaultValue)
           
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppListenerUtil

public AppListenerUtil()
Method Detail

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)

toMappings

public static Mapping[] toMappings(ConfigWeb cw,
                                   Object o,
                                   Mapping[] defaultValue)

toMappings

public static Mapping[] toMappings(ConfigWeb cw,
                                   Object o)
                            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 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,
                                       ApplicationContextPro 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