November 2017
Intermediate to advanced
420 pages
10h 29m
English
The @javax.ws.rs.OPTIONS annotation designates a method to respond to the HTTP OPTIONS requests. This method is useful for obtaining a list of HTTP methods allowed for a resource.
The JAX-RS runtime will offer a default implementation for the OPTIONS method type if the REST resource is missing an explicit implementation. The default implementation offered by the runtime sets the Allow response header to all the HTTP method types supported by the resource.