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 Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    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 useUrlMapping
      Prepend the resource and method URL mapping to build the NotFound response.
      Default:
      false