Class ConstraintExceptionMapper<T extends org.fcrepo.kernel.api.exception.ConstraintViolationException>

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static javax.ws.rs.core.Link buildConstraintLink​(Class<? extends org.fcrepo.kernel.api.exception.ConstraintViolationException> clazz, javax.servlet.ServletContext context, javax.ws.rs.core.UriInfo uriInfo)
      Creates a constrainedBy link header with the appropriate RDF URL for the exception.
      static javax.ws.rs.core.Link buildConstraintLink​(org.fcrepo.kernel.api.exception.ConstraintViolationException e, javax.servlet.ServletContext context, javax.ws.rs.core.UriInfo uriInfo)
      Creates a constrainedBy link header with the appropriate RDF URL for the exception.
      • Methods inherited from interface javax.ws.rs.ext.ExceptionMapper

        toResponse
    • Method Detail

      • buildConstraintLink

        public static javax.ws.rs.core.Link buildConstraintLink​(org.fcrepo.kernel.api.exception.ConstraintViolationException e,
                                                                javax.servlet.ServletContext context,
                                                                javax.ws.rs.core.UriInfo uriInfo)
        Creates a constrainedBy link header with the appropriate RDF URL for the exception.
        Parameters:
        e - ConstraintViolationException Exception which implements the buildContraintUri method.
        context - ServletContext ServletContext that we're running in.
        uriInfo - UriInfo UriInfo from the ExceptionMapper.
        Returns:
        Link A http://www.w3.org/ns/ldp#constrainedBy link header
      • buildConstraintLink

        public static javax.ws.rs.core.Link buildConstraintLink​(Class<? extends org.fcrepo.kernel.api.exception.ConstraintViolationException> clazz,
                                                                javax.servlet.ServletContext context,
                                                                javax.ws.rs.core.UriInfo uriInfo)
        Creates a constrainedBy link header with the appropriate RDF URL for the exception.
        Parameters:
        clazz - the class of the exception to build the link for.
        context - ServletContext ServletContext that we're running in.
        uriInfo - UriInfo UriInfo from the ExceptionMapper.
        Returns:
        Link A http://www.w3.org/ns/ldp#constrainedBy link header