manager.js | |
bbop. | Generic BBOP manager for dealing with basic generic REST calls. |
Functions | |
manager | Contructor for the REST manager |
debug | Turn on or off the verbose messages. |
resource | The base target URL for our operations. |
payload | The information to deliver to the resource. |
method | The method to use to get the resource, as a string. |
action | This method is the most fundamental operation. |
to_string | Output writer for this object/class. |
assemble | Assemble the resource and arguments into a URL string. |
update | The user code to select the type of update (and thus the type of callbacks to be called on data return). |
Generic BBOP manager for dealing with basic generic REST calls. This specific one is designed to be overridden by its subclasses. This one pretty much just uses its incoming resource string as the data. Mostly for testing purposes.
Both a bbop.rest.response (or clean error data) and the manager itself (this as anchor) should be passed to the callbacks.
Functions | |
manager | Contructor for the REST manager |
debug | Turn on or off the verbose messages. |
resource | The base target URL for our operations. |
payload | The information to deliver to the resource. |
method | The method to use to get the resource, as a string. |
action | This method is the most fundamental operation. |
to_string | Output writer for this object/class. |
assemble | Assemble the resource and arguments into a URL string. |
update | The user code to select the type of update (and thus the type of callbacks to be called on data return). |
this.debug = function( p )
Turn on or off the verbose messages. Uses bbop.logger, so they should come out everywhere.
p | [optional] true or false for debugging |
boolean; the current state of debugging
this.action = function( url, payload, method )
This method is the most fundamental operation. It should combine the URL, payload, and method in the ways appropriate to the subclass engine. This one merely combines the string.
The method argument is naturally ignored in this dummy class.
url | [optional] update resource target with string |
payload | [serially optional] object to represent arguments |
method | [serially optional] (GET, POST, etc.) |
the combined URL argument as string
Contructor for the REST manager
bbop.rest.manager = function( response_handler )
Turn on or off the verbose messages.
this.debug = function( p )
The base target URL for our operations.
this.resource = function( url )
The information to deliver to the resource.
this.payload = function( payload )
The method to use to get the resource, as a string.
this.method = function( method )
This method is the most fundamental operation.
this.action = function( url, payload, method )
Output writer for this object/class.
bbop.rest.manager.prototype.to_string = function ()
Assemble the resource and arguments into a URL string.
bbop.rest.manager.prototype.assemble = function()
The user code to select the type of update (and thus the type of callbacks to be called on data return).
bbop.rest.manager.prototype.update = function( callback_type )