railo-context.Component coldbox.system.core.util.Util
The main ColdBox utility library filled with lots of nice goodies.
Method Summary | |
---|---|
Util
|
addMapping(string name, string path)
Add a CFML Mapping. |
struct
|
arrayToStruct(array in)
Convert an array to struct argument notation. |
void
|
convertToColdBox(any family, any target)
Decorate an object as a ColdBox Family object. |
string
|
fileLastModified(any filename)
Get the last modified date of a file. |
string
|
getAbsolutePath(any path)
Turn any system path, either relative or absolute, into a fully qualified one. |
any
|
getInheritedMetaData(any component, [any stopRecursions='[runtime expression]'], [any md='[runtime expression]'])
Returns a single-level metadata struct that includes all items inhereited from extending classes. |
any<MixerUtil>
|
getMixerUtil()
Get the mixer utility. |
boolean
|
inThread()
Check if you are in cfthread or not for any CFML Engine. |
boolean
|
isFamilyType(any family, any target)
Checks if an object is of the passed in family type. |
any
|
placeHolderReplacer(any str, any settings)
PlaceHolder Replacer for strings containing ${} patterns. |
string
|
ripExtension(any filename)
Rip the extension of a filename. |
private any<Boolean>
|
stopClassRecursion(any classname, any stopRecursions)
Should we stop recursion or not due to class name found: Boolean. |
void
|
throwInvalidHTTP(any className, any detail, any statusText, any statusCode)
Throw an invalid HTTP exception. |
Methods inherited from class railo-context.Component |
---|
None |
Method Detail |
---|
Add a CFML Mapping
name
- The name of the mappingpath
- The path to the mappingConvert an array to struct argument notation
in
- The array to convertDecorate an object as a ColdBox Family object
family
- The family to covert it to: handler, interceptortarget
- The target objectGet the last modified date of a file
filename
Turn any system path, either relative or absolute, into a fully qualified one
path
Returns a single-level metadata struct that includes all items inhereited from extending classes.
component
- A component instance, or the path to onestopRecursions
- An array of classes to stop recursionmd
- A structure containing a copy of the metadata for this level of recursion.Get the mixer utility
Check if you are in cfthread or not for any CFML Engine
Checks if an object is of the passed in family type
family
- The family to covert it to: handler, interceptortarget
- The target objectPlaceHolder Replacer for strings containing ${} patterns
str
- The string variable to look for replacementssettings
- The structure of settings to use in replacingRip the extension of a filename.
filename
Should we stop recursion or not due to class name found: Boolean
classname
- The class name to checkstopRecursions
- An array of classes to stop processing atThrow an invalid HTTP exception
className
- The class producing the exceptiondetail
- The throw detail argument to send outstatusText
- Invalid exception status textstatusCode
- The status code to send out.