Class HeaderValueExceptionMapper
- java.lang.Object
-
- org.fcrepo.http.commons.exceptionhandlers.HeaderValueExceptionMapper
-
- All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<org.glassfish.jersey.message.internal.HeaderValueException>
,ExceptionDebugLogging
@Provider public class HeaderValueExceptionMapper extends Object implements javax.ws.rs.ext.ExceptionMapper<org.glassfish.jersey.message.internal.HeaderValueException>, ExceptionDebugLogging
If a client-provided header value fails to parse, return an HTTP 400 Bad Request.- Since:
- 2015-08-06
- Author:
- awoods
-
-
Constructor Summary
Constructors Constructor Description HeaderValueExceptionMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
toResponse(org.glassfish.jersey.message.internal.HeaderValueException e)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.fcrepo.http.commons.exceptionhandlers.ExceptionDebugLogging
debugException
-
-
-
-
Constructor Detail
-
HeaderValueExceptionMapper
public HeaderValueExceptionMapper()
-
-
Method Detail
-
toResponse
public javax.ws.rs.core.Response toResponse(org.glassfish.jersey.message.internal.HeaderValueException e)
- Specified by:
toResponse
in interfacejavax.ws.rs.ext.ExceptionMapper<org.glassfish.jersey.message.internal.HeaderValueException>
-
-