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