RestResponse

The {@link oajr.RestResponse} object is an extension of the HttpServletResponse class with various built-in convenience methods for use in building REST interfaces.
It can be accessed by passing it as a parameter on your REST Java method:

@RestMethod(...) public Object myMethod(RestResponse req) {...}

Some important methods on this class are:

- `{@link oajr.RestResponse} extends HttpServletResponse`
  - {@link oajr.RestResponse#setOutput(Object) setOutput(Object)} - Set response output programmatically.
  - {@link oajr.RestResponse#getHtmlDocBuilder() getHtmlDocBuilder()} - Set HTTP page contents programmatically.
  - {@link oajr.RestResponse#getDirectWriter(String) getDirectWriter(String)} - Direct access to underlying response writer.