@Provider public class NotAcceptableExceptionMapper extends Object implements javax.ws.rs.ext.ExceptionMapper<javax.ws.rs.NotAcceptableException>
This mapper let us reply to the user with a pre-determined message format if, for example, receive a HTTP GET request with unsupported media type.
| Constructor and Description |
|---|
NotAcceptableExceptionMapper() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
toResponse(javax.ws.rs.NotAcceptableException exception) |
Copyright © 2014–2018 Red Hat, Inc.. All rights reserved.