|
ColdBox Platform Version 3.7.0 | ||||
FRAMES |
WEB-INF.cftags.componentcoldbox.system.plugins.Utilities
public class Utilities
This is a Utilities CFC
Constructor Summary | |
---|---|
init()
|
Method Summary | |
---|---|
Any |
_deserialize(string binaryString)
Deserialize a byte array |
Any |
_deserializeFromFile(string fileSource)
Deserialize a byte array from a file |
string |
_serialize(any complexObject)
Serialize complex objects that implement serializable |
void |
_serializeToFile(any complexObject, string fileDestination)
Serialize complex objects that implement serializable, into a file |
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 |
marshallData(string type, any data, [string encoding='utf-8'], [string jsonCallback=''], [string jsonQueryFormat='query'], [string xmlColumnList=''], [boolean xmlUseCDATA='false'], [string xmlListDelimiter=','], [string xmlRootName=''], [struct pdfArgs='[runtime expression]'])
Marshall data according to types or conventions on data objects |
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 WEB-INF.cftags.component |
---|
|
Constructor Detail |
---|
public init()
Method Detail |
---|
public Any _deserialize(string binaryString)
binaryString
- The byte array string to deserializepublic Any _deserializeFromFile(string fileSource)
fileSource
- The absolute path to the source file to deserializepublic string _serialize(any complexObject)
complexObject
- Any coldfusion primative data type and if cf8 componetns.public void _serializeToFile(any complexObject, string fileDestination)
complexObject
- Any coldfusion primative data type and if cf8 componetns.fileDestination
- The absolute path to the destination file to write topublic boolean isCFUUID(string inStr)
inStr
public boolean isSSL()
public any marshallData(string type, any data, [string encoding='utf-8'], [string jsonCallback=''], [string jsonQueryFormat='query'], [string xmlColumnList=''], [boolean xmlUseCDATA='false'], [string xmlListDelimiter=','], [string xmlRootName=''], [struct pdfArgs='[runtime expression]'])
type
- The type to marshal to. Valid values are JSON, XML, WDDX, PLAIN, HTML, TEXTdata
- The data to marshalencoding
- The default character encoding to usejsonCallback
- Only needed when using JSONP, this is the callback to add to the JSON packetjsonQueryFormat
- JSON Only: query or arrayxmlColumnList
- XML Only: Choose which columns to inspect, by default it uses all the columns in the query, if using a queryxmlUseCDATA
- XML Only: Use CDATA content for ALL values. The default is falsexmlListDelimiter
- XML Only: The delimiter in the list. Comma by defaultxmlRootName
- XML Only: The name of the initial root element of the XML packetpdfArgs
- All the PDF arguments to pass along to the CFDocument tag.public any placeHolderReplacer(any str, any settings)
str
- The string variable to look for replacementssettings
- The structure of settings to use in replacingpublic struct queryStringToStruct(string qs='')
qs
- The query stringpublic void sleeper(numeric milliseconds)
milliseconds
- Milliseconds to sleep
|
ColdBox Platform Version 3.7.0 | ||||
FRAMES |