
org.jboss.jbossts.star.provider.NotFoundMapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of restat-api Show documentation
Show all versions of restat-api Show documentation
A JAX-RS service that implements the RESTAT specification
/*
Copyright The Narayana Authors
SPDX-License-Identifier: Apache-2.0
*/
package org.jboss.jbossts.star.provider;
import jakarta.ws.rs.core.Response;
import jakarta.ws.rs.ext.ExceptionMapper;
import jakarta.ws.rs.ext.Provider;
import org.jboss.resteasy.spi.HttpResponseCodes;
/**
* 404 mapper
*/
@Provider
public class NotFoundMapper implements ExceptionMapper {
public Response toResponse(ResourceNotFoundException exception) {
return Response.status(HttpResponseCodes.SC_NOT_FOUND).build();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy