Class UnrecognizedPropertyExceptionHandler
- java.lang.Object
-
- org.jboss.resteasy.plugins.providers.jackson.UnrecognizedPropertyExceptionHandler
-
- All Implemented Interfaces:
ExceptionMapper<UnrecognizedPropertyException>
@Provider public class UnrecognizedPropertyExceptionHandler extends Object implements ExceptionMapper<UnrecognizedPropertyException>
(RESTEASY-1485) Address concerns of a possible XSS attack by removing some details of the exception. User: rsearls Date: 9/22/16
-
-
Constructor Summary
Constructors Constructor Description UnrecognizedPropertyExceptionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponsetoResponse(UnrecognizedPropertyException exception)Map an exception to aResponse.
-
-
-
Method Detail
-
toResponse
public Response toResponse(UnrecognizedPropertyException exception)
Description copied from interface:ExceptionMapperMap an exception to aResponse. Returningnullresults in aResponse.Status.NO_CONTENTresponse. Throwing a runtime exception results in aResponse.Status.INTERNAL_SERVER_ERRORresponse.- Specified by:
toResponsein interfaceExceptionMapper<UnrecognizedPropertyException>- Parameters:
exception- the exception to map to a response.- Returns:
- a response mapped from the supplied exception.
-
-