Package org.gbif.api.annotation
Annotation 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 ElementsModifier and TypeOptional ElementDescriptionboolean
Prepend the resource and method URL mapping to build the NotFound response.Resource URI which was not found.
-
Element Details
-
value
Resource URI which was not found.- Default:
- "/"
-
useUrlMapping
boolean useUrlMappingPrepend the resource and method URL mapping to build the NotFound response.- Default:
- false
-