cbcommons

Class Utilities

railo-context.Component
        extended by cbcommons.Utilities
Class Attributes:
  • singleton
  •  
  • output : false
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  

    This is a Utilities CFC

    Constructor Summary
    init()
    Method Summary
    boolean isCFUUID(string inStr)
         Checks if a passed string is a valid UUID.
    boolean isSSL()
         Tells you if you are in SSL mode or not.
    any placeHolderReplacer(any str, any settings)
         PlaceHolder Replacer for strings containing ${} patterns.
    struct queryStringToStruct(string qs='')
         Converts a querystring into a struct of name value pairs.
    void sleeper(numeric milliseconds)
         Make the main thread of execution sleep for X amount of seconds.
     
    Methods inherited from class railo-context.Component
    None

    Constructor Detail

    init

    public init()


    Method Detail

    isCFUUID

    public boolean isCFUUID(string inStr)

    Checks if a passed string is a valid UUID.

    Parameters:
    inStr

    isSSL

    public boolean isSSL()

    Tells you if you are in SSL mode or not.


    placeHolderReplacer

    public any placeHolderReplacer(any str, any settings)

    PlaceHolder Replacer for strings containing ${} patterns

    Parameters:
    str - The string variable to look for replacements
    settings - The structure of settings to use in replacing

    queryStringToStruct

    public struct queryStringToStruct(string qs='')

    Converts a querystring into a struct of name value pairs

    Parameters:
    qs - The query string

    sleeper

    public void sleeper(numeric milliseconds)

    Make the main thread of execution sleep for X amount of seconds.

    Parameters:
    milliseconds - Milliseconds to sleep