Current response and its associated information.
Platform Support
| Jaxer Server Framework | Jaxer Client Framework | 0.9 | no |
|---|
Constructors
| Constructor | Action | Jaxer Server Framework | Jaxer Client Framework | |||||
|---|---|---|---|---|---|---|---|---|
|
Jaxer.Response Constructor(Object evt) : Jaxer.Response
An instance of this object has the lifecycle of the current response and contains information about it.
|
Show Details | 0.9 | no | |||||
Jaxer.Response(Object evt) : Jaxer.ResponseAn instance of this object has the lifecycle of the current response and contains information about it. Parameters
Returns
|
||||||||
Functions
![]() |
||||||||||||
| Method | Action | Jaxer Server Framework | Jaxer Client Framework | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
getContents() : String
Gets the contents (body) of the response. This is ONLY effective at the very end of callback processing, when the contents
have been explicitly set using the setContents method.
(Advanced) |
Show Details | 0.9 | no | |||||||||
|
Returns
|
||||||||||||
|
getDomTouched() : Boolean
Has the DOM possibly been modified in any way?
(Advanced) |
Show Details | 0.9 | no | |||||||||
|
Returns
|
||||||||||||
|
getSideEffect() : Boolean
Has there been any possible side effect (e.g. database accessed, etc.)?
(Advanced) |
Show Details | 0.9 | no | |||||||||
|
Returns
|
||||||||||||
|
Remembers that the DOM has been altered in some way, which ensures that the final response will be the Jaxer-produced one
rather than the original document Jaxer received.
(Advanced) |
No Details | 0.9 | no | |||||||||
|
|
||||||||||||
|
Remembers that processing this page has had some side effect, which ensures that the final response will be treated as having
been processed by Jaxer, whether or not its contents have been modified.
(Advanced) |
No Details | 0.9 | no | |||||||||
|
|
||||||||||||
|
addHeader(String name, String value, Boolean replaceExisting) :
void
Adds an HTTP header to the response, possibly replacing any existing one of the same name
|
Show Details | 0.9 | no | |||||||||
|
Parameters
|
||||||||||||
|
If Jaxer.Config.EXPOSE_JAXER, this sets an "X-Powered-By" header on the response indicating that Jaxer processing has occurred
and noting the build number.
|
No Details | 0.9 | no | |||||||||
|
|
||||||||||||
|
Gets the error, if any, of which the framework has been notified during the handling of this request and generation of this
response.
|
No Details | 0.9 | no | |||||||||
|
|
||||||||||||
|
getHeader(Object nameOrIndex) : String
Gets the value of a header on the current response.
Known Limitation: only response headers set by the Jaxer framework are currently accessible. Any previous handler's or filter's headers are not. |
Show Details | 0.9 | no | |||||||||
|
Parameters
Returns
|
||||||||||||
|
getHeaderCount() : Number
Gets the number of headers in the response.
Known Limitation: only response headers set by the Jaxer framework are currently accessible. Any previous handler's or filter's headers are not. |
Show Details | 0.9 | no | |||||||||
|
Returns
|
||||||||||||
|
getHeaderName(Number index) : String
Gets the name of the header with the given index.
Known Limitation: only response headers set by the Jaxer framework are currently accessible. Any previous handler's or filter's headers are not. |
Show Details | 0.9 | no | |||||||||
|
Parameters
Returns
|
||||||||||||
|
getOverriddenClientFramework() : Object
Gets the parameters of the alternate client framework that will be injected into this response, if the default client framework
has been overridden using setClientFramework().
|
Show Details | 0.9 | no | |||||||||
|
Returns
|
||||||||||||
|
hasError() : Boolean
Has the framework been notified of an error during the handling of this request and generation of this response?
|
Show Details | 0.9 | no | |||||||||
|
Returns
|
||||||||||||
|
isClientFrameworkOverridden() : Boolean
Checks whether the client framework has been overridden for this response, i.e. whether setClientFramework has been called.
|
Show Details | 0.9 | no | |||||||||
|
Returns
|
||||||||||||
|
notifyError(Object newError, [Boolean avoidLogging]) :
void
Notifies the framework that an error has occurred during the handling of this request and generation of this response. How
this is handled is then determined by the Jaxer.Config settings.
|
Show Details | 0.9 | no | |||||||||
|
Parameters
|
||||||||||||
|
Notifies the framework that an error has already been reported in the output page so it need not be reported in the output
page again.
|
No Details | 0.9 | no | |||||||||
|
|
||||||||||||
|
Restores the use of the default client framework (using the Jaxer.Config settings), undoing any previous calls to setClientFramework().
|
No Details | 0.9 | no | |||||||||
|
|
||||||||||||
|
setClientFramework([String src,] [String contents]) :
void
Overrides the automatic injection of the client framework into the response page. If neither src nor contents are given, then
NO client framework is injected into the page. Make sure you do not rely (implicitly or explicitly) on the presence of the
default Jaxer client framework if you call this method!
|
Show Details | 0.9 | no | |||||||||
|
Parameters
|
||||||||||||
|
setContents(String contents) :
void
Sets the contents (body) of the response. This ONLY affects the response during a callback, otherwise the contents will be
set to the serialized DOM or to the original response's contents.
|
Show Details | 0.9 | no | |||||||||
|
Parameters
|
||||||||||||
|
Sets headers on this response to mark it as a dynamic one and avoid its being cached. This will always be called by the framework
during callback processing. For regular (non-callback) requests, this will only be called by the framework if the DOM has
been changed or a side-effect has (or could have) occurred during the processing of this request and the generation of the
response.
|
No Details | 0.9 | no | |||||||||
|
|
||||||||||||
|
Once this is called, the contents of the response will be the same as the contents that Jaxer received in this request, i.e.
all DOM changes will be discarded. This is ONLY effective for regular requests, not callbacks.
|
No Details | 0.9 | no | |||||||||
|
|
||||||||||||
|
wasErrorShown() : Boolean
True if an error has already been reported in the output page so it need not be reported in the output page again.
|
Show Details | 0.9 | no | |||||||||
|
Returns
|
||||||||||||

