Affects Version/s: None
Fix Version/s: 2.1
Operating System: All
JAX-RS specifies that a compliant implementation has to answer OPTIONS requests
by an Allows header created automatically by inspection which HttpMethods have
been found in the resource code.
Sometimes it is necessary that a resource implements OPTIONS to provide some
more headers. Example: A WebDAV resource must return the header "DAV: 1, 2" to
indicate it's "compliance class" (strange but true, since inspecting the Allows
header would provide the same information, but this discussion is out of scope).
The problem is that the automatic Allows header will not be provided as soon as
a OPTIONS implementation is found. So the implementation must not just provide
the additional headers, but also everything that JAX-RS would do automatically.
This is not very smart.
I want to suggest that the next release of JAX-RS specifies a away how to mix
both results, the automatic one of JAX-RS and the manual one of the