railo-context.Component coldbox.system.core.conversion.DataMarshaller
Ability to serialize/deserialize data.
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
xmlConverter
|
true
|
false
|
Constructor Summary | |
---|---|
init()
Constructor. |
Method Summary | |
---|---|
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
|
renderContent(any type, [any variable], [any encoding='utf-8'], [boolean reset='false'])
Facade to cfcontent as stupid CF does not allow via script. |
any
|
resetContent()
Reset the CF content. |
Methods inherited from class railo-context.Component |
---|
None |
Constructor Detail |
---|
Constructor
Property Detail |
---|
required
- falseinject
- xmlConverter@coldboxserializable
- trueMethod Detail |
---|
Marshall data according to types or conventions on data objects.
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.Facade to cfcontent as stupid CF does not allow via script
type
- The content typevariable
- The variable to render content fromencoding
- The encodingreset
- Reset the conten or notReset the CF content