Annotation Type Method


Annotation that can be applied to a parameter of a @RestOp annotated method to identify it as the HTTP method.

Typically used for HTTP method handlers of type "*" (i.e. handle all requests).

Example:

@RestOp(method="*") public void doAnything(RestRequest req, RestResponse res, @Method String method) { ... }

This is functionally equivalent to the following code...

@RestOp(method="*") public void doAnything(RestRequest req, RestResponse res) { String method = req.getMethod(); ... }

See Also: