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 booleanuseUrlMappingPrepend the resource and method URL mapping to build the NotFound response.StringvalueResource URI which was not found.
-
-
-
-
useUrlMapping
boolean useUrlMapping
Prepend the resource and method URL mapping to build the NotFound response.- Default:
- false
-
-