ApiObject

Implement subclasses of this inside your main provider class to do a more object oriented site.

Members

Functions

makeJsonValue
JSONValue makeJsonValue()

Override this to make json out of this object

Inherited Members

From WebDotDBaseType

cgi
Cgi cgi;

lower level access to the request

exceptionExaminer
void exceptionExaminer(Throwable e)

use this to look at exceptions and set up redirects and such. keep in mind it does NOT change the regular behavior

_postProcess
void _postProcess(Document document)

Override this if you want to do something special to the document You should probably call super._postProcess at some point since I might add some default transformations here. By default, it forwards the document root to _postProcess(Element).

_postProcessElement
void _postProcessElement(Element element)

Override this to do something special to returned HTML Elements. This is ONLY run if the return type is(: Element). It is NOT run if the return type is(: Document).

ensurePost
void ensurePost()

convenience function to enforce that the current method is POST. You should use this if you are going to commit to the database or something.

Suggestion Box / Bug Report