lucee.Component contentbox.models.system.Response
ContentBox - A Modular Content Platform Copyright since 2012 by Ortus Solutions, Corp www.ortussolutions.com/products/contentbox --- HTTP Response model, spice up as needed
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
boolean
|
binary
|
false
|
true
|
false
|
boolean
|
cachedResponse
|
false
|
true
|
false
|
string
|
contentType
|
true
|
false
|
|
any
|
data
|
true
|
false
|
|
boolean
|
error
|
false
|
true
|
false
|
numeric
|
errorCode
|
0
|
true
|
false
|
string
|
format
|
json
|
true
|
false
|
array
|
headers
|
true
|
false
|
|
string
|
jsonCallback
|
true
|
false
|
|
string
|
jsonQueryFormat
|
query
|
true
|
false
|
string
|
location
|
true
|
false
|
|
array
|
messages
|
true
|
false
|
|
numeric
|
responsetime
|
0
|
true
|
false
|
numeric
|
statusCode
|
200
|
true
|
false
|
string
|
statusText
|
OK
|
true
|
false
|
Constructor Summary | |
---|---|
init()
Constructor. |
Method Summary | |
---|---|
any
|
addHeader(string name, string value)
Add a header. |
any
|
addMessage(any message)
Add some messages. |
string
|
getBinary()
|
string
|
getCachedResponse()
|
string
|
getContentType()
|
string
|
getData()
|
any
|
getDataPacket()
Returns a standard response formatted data packet. |
string
|
getError()
|
string
|
getErrorCode()
|
string
|
getFormat()
|
string
|
getHeaders()
|
string
|
getJsonCallback()
|
string
|
getJsonQueryFormat()
|
string
|
getLocation()
|
string
|
getMessages()
|
string
|
getResponsetime()
|
string
|
getStatusCode()
|
string
|
getStatusText()
|
any
|
setBinary(boolean binary)
|
any
|
setCachedResponse(boolean cachedResponse)
|
any
|
setContentType(string contentType)
|
any
|
setData(any data)
|
any
|
setError(boolean error)
|
any
|
setErrorCode(numeric errorCode)
|
any
|
setFormat(string format)
|
any
|
setHeaders(array headers)
|
any
|
setJsonCallback(string jsonCallback)
|
any
|
setJsonQueryFormat(string jsonQueryFormat)
|
any
|
setLocation(string location)
|
any
|
setMessages(array messages)
|
any
|
setResponsetime(numeric responsetime)
|
any
|
setStatusCode(numeric statusCode)
|
any
|
setStatusText(string statusText)
|
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
Constructor
Property Detail |
---|
access
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueMethod Detail |
---|
Add a header
name
- header namevalue
- header valueAdd some messages
message
- Array or string of message to incorporateReturns a standard response formatted data packet
binary
cachedResponse
contentType
data
error
errorCode
format
headers
jsonCallback
jsonQueryFormat
location
messages
responsetime
statusCode
statusText