ColdBox Platform Version 2.6.3

coldbox.system.extras.lightwire.util
Class Utility

WEB-INF.cftags.component
        extended by coldbox.system.extras.lightwire.util.Utility

public class Utility
extends WEB-INF.cftags.component

A basic utility object for LightWire


Method Summary
 void abortit()
          Facade for cfabort
 any decodeJSON(string data)
          Converts data from JSON to CF format
 void dumpit(any var, [boolean abort='false'])
          Facade for cfmx dump
 any placeHolderReplacer(any str, any settings)
          PlaceHolder Replacer for strings containing ${} patterns
 Any readFile(String FileToRead)
          Facade to Read a file's content
 void rethrowit(any throwObject)
          Rethrow facade
 any throwit(string message, [string detail=''], [string type='Framework'])
          Facade for cfthrow
 
Methods inherited from class WEB-INF.cftags.component
 

Method Detail

abortit

public void abortit()
Facade for cfabort


decodeJSON

public any decodeJSON(string data)
Converts data from JSON to CF format

Parameters:
data - JSON Packet

dumpit

public void dumpit(any var, [boolean abort='false'])
Facade for cfmx dump

Parameters:
var
abort

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

readFile

public Any readFile(String FileToRead)
Facade to Read a file's content

Parameters:
FileToRead - The absolute path to the file.

rethrowit

public void rethrowit(any throwObject)
Rethrow facade

Parameters:
throwObject - The cfcatch object

throwit

public any throwit(string message, [string detail=''], [string type='Framework'])
Facade for cfthrow

Parameters:
message
detail
type

ColdBox Platform Version 2.6.3