Request options
| Key |
Description |
| url |
Agent URL (mandatory) |
| method |
Either "post" or "get" depending on the desired HTTP method
(case does not matter). Please note, that bulk requests are
not possible with "get". On the other hand, JSONP requests
are not possible with "post" (which obviously implies that
bulk request cannot be used with JSONP requests). Also, when
using a read type request for multiple
attributes, this also can only be sent as "post"
requests. If not given, a HTTP method is determined
dyamically. If a method is selected which doesn't fit to the
request, an error is raised.
|
| jsonp |
Whether the request should be sent via JSONP (a technique
for allowing cross domain request circumventing the infamous
"same-origin-policy"). This can be used only with HTTP "get"
requests.
|
| success |
Callback function which is called for a successful
request. The callback receives the response as single
argument. If no success callback is given, then
the request is performed synchronously and gives back the
response as return value. The value can be an array of
functions which is used for bulk requests to dispatch
multiple responses to multiple callbacks. See for details.
|
| error |
Callback in case a Jolokia error occurs. A Jolokia error is
one, in which the HTTP request suceeded with a status code
of 200, but the response object contains a status other than
OK (200) which happens if the request JMX operation
fails. This callback receives the full Jolokia response
object (with a key error set). If no error
callback is given, but an asynchronous operation is
performed, the error response is printed to the Javascript
console by default.
|
| ajaxError |
Global error callback called when the Ajax request itself
failed. It obtains the same arguments as the error callback
given for jQuery.ajax(), i.e. the
XmlHttpResonse, a text status and an
error thrown. Refer to the jQuery documentation for more
information about this error handler.
|
| username |
A username used for HTTP authentication |
| password |
A password used for HTTP authentication |
| timeout |
Timeout for the HTTP request |
| maxDepth |
Maximum traversal depth for serialization of complex return values |
| canonicalProperties |
Defaults to true for canonical (sorted) property lists on object names; if set to "false" then they are turned in their unsorted format. |
| maxCollectionSize |
Maximum size of collections returned during serialization.
If larger, the collection is returned truncated.
|
| maxObjects |
Maximum number of objects contained in the response.
|
| ignoreErrors |
If set to true, errors during JMX operations and JSON
serialization are ignored. Otherwise if a single
deserialization fails, the whole request returns with an
error. This works only for certain operations like pattern
reads.
|
| serializeException |
If true then in case of an error, the exception itself is returned in
it JSON representation under the key error_value
in the response object.
|
| includeStackTrace |
By default, a stacktrace is returned with every error (key: stacktrace)
This can be ommitted by setting the value of this option to false.
|
| ifModifiedSince |
The LIST operations provides an
optimization in that it remembers, when the set of
registered MBeans has been changes last. If a timestamp
(in epoch seconds) is provided with this parameter, then
the LIST operation returns an empty response
(i.e. value is null) and a
status code of 304 (Not Modified) if
the MBeans haven't changed. If you use the request
scheduler ()
then this feature can be used to get the callbacks called
only if a value is returned. For the normal request, the
error callback is called which must check the status itself.
|