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 -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponsetoResponse(org.glassfish.jersey.message.internal.HeaderValueException e) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.fcrepo.http.commons.exceptionhandlers.ExceptionDebugLogging
debugException
-
Constructor Details
-
HeaderValueExceptionMapper
public HeaderValueExceptionMapper()
-
-
Method Details
-
toResponse
public javax.ws.rs.core.Response toResponse(org.glassfish.jersey.message.internal.HeaderValueException e) - Specified by:
toResponsein interfacejavax.ws.rs.ext.ExceptionMapper<org.glassfish.jersey.message.internal.HeaderValueException>
-