Package org.gbif.api.annotation
Annotation Type NullToNotFound
-
@Target(METHOD) @Retention(RUNTIME) public @interface NullToNotFound
Annotation that marks a resource method to throw a NotFoundException (becomes http 404) when null is returned by the method.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
useUrlMapping
Prepend the resource and method URL mapping to build the NotFound response.String
value
Resource URI which was not found.
-
-
-
-
useUrlMapping
boolean useUrlMapping
Prepend the resource and method URL mapping to build the NotFound response.- Default:
- false
-
-