Class NotFoundMapper

  • All Implemented Interfaces:
    javax.ws.rs.ext.ExceptionMapper<javax.ws.rs.NotFoundException>

    @Provider
    public class NotFoundMapper
    extends AbstractMapper<javax.ws.rs.NotFoundException>
    Mapper for api not found exceptions to the NOT_FOUND response code.
    • Constructor Summary

      Constructors 
      Constructor Description
      NotFoundMapper()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected javax.ws.rs.core.Response.Status responseStatus()
      Returns the response status to be given when the exception occurs.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NotFoundMapper

        public NotFoundMapper()
    • Method Detail

      • responseStatus

        protected javax.ws.rs.core.Response.Status responseStatus()
        Description copied from class: AbstractMapper
        Returns the response status to be given when the exception occurs.
        Specified by:
        responseStatus in class AbstractMapper<javax.ws.rs.NotFoundException>
        Returns:
        response status