{title:'v9.0 Migration Guide'}

The following guide can be used to help migrate your code to v9.0. Note that you can also refer to the Release Notes for changes as well.

Old New
@RestMethod annotation. Has been replaced with {@link oajr.annotation.RestOp}, {@link oajr.annotation.RestGet}, {@link oajr.annotation.RestPut}, {@link oajr.annotation.RestPost}, {@link oajr.annotation.RestDelete}, {@link oajr.annotation.RestOptions}
@RemoteMethod annotation. Has been replaced with {@link oaj.http.remote.RemoteOp}, {@link oaj.http.remote.RemoteGet}, {@link oaj.http.remote.RemotePut}, {@link oaj.http.remote.RemotePost}, {@link oaj.http.remote.RemoteDelete}.
BasicRestServletJena, BasicRestServletJenaGroup classes. These have been removed in 9.0 due to the removal of the Jena packages (due to security issues). Replace with {@link oajr.servlet.BasicRestServlet} and {@link oajr.servlet.BasicRestServletGroup}.
@Body annotation. Has been renamed to @Content (to better match HTTP naming conventions such as Content-Type/Content-Encoding headers).
@Query(_default), @FormData(_default). Has been renamed to {@link oaj.http.annotation.Query#def} / {@link oaj.http.annotation.FormData#def}. Note however that @RestOp-annotated parameters now also support use of Optional parameters which simplifies the coding of default values.
@Rest(reqHeaders). Has been renamed to {@link oajr.annotation.Rest#defaultRequestHeaders} and added {@link oajr.annotation.Rest#defaultResponseHeaders}.
@Rest(staticFiles). Changed from a string array to a Class<? extends StaticFiles>. If you're extending from {@link oajr.servlet.BasicRestServlet}/{@link oajr.servlet.BasicRestObject}, the {@link oajr.servlet.BasicRestOperations#getHtdoc(String,Locale)} is already implemented for you to provide static files under the sub-URI /htdocs/*. The default implementation for finding static files is {@link oajr.staticfile.BasicStaticFiles} which provides basic out-of-the-box functionality, so you can usually just remove the previous @Rest(staticFiles) value.