See the javadoc for ERXRestRequestHandler, ERXXmlRestResponseWriter, and ERXStandardRestEntityDelegate.