net.stepniak.api.response.exception
Class BaseExceptionMapper

java.lang.Object
  extended by net.stepniak.api.response.exception.BaseExceptionMapper
Direct Known Subclasses:
BadRequestExceptionMapper, EntityNotFoundMapper, ForbiddenExceptionMapper, HttpsRequiredExceptionMapper, InternalServerExceptionMapper, MethodNotAllowedExceptionMapper, NoSuchAlgorithmExceptionMapper, NoSuchMethodExceptionMapper, NotAuthorizedExceptionMapper, NotFoundExceptionMapper, RuntimeExceptionMapper, ThrowableExceptionMapper, UnsupportedMediaTypeExceptionMapper

public class BaseExceptionMapper
extends Object


Constructor Summary
BaseExceptionMapper()
           
 
Method Summary
static net.stepniak.api.json.JsonMapper getJsonMapper()
           
protected  StringBuilder getLogMessage(javax.ws.rs.core.UriInfo uriInfo, Throwable cause)
           
protected  javax.ws.rs.core.Response prepareInternalErrorResponse(Throwable exception)
           
protected  javax.ws.rs.core.Response prepareResponse(net.stepniak.common.error.http.ServerBaseException exception)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseExceptionMapper

public BaseExceptionMapper()
Method Detail

getJsonMapper

public static net.stepniak.api.json.JsonMapper getJsonMapper()

getLogMessage

protected StringBuilder getLogMessage(javax.ws.rs.core.UriInfo uriInfo,
                                      Throwable cause)

prepareResponse

protected javax.ws.rs.core.Response prepareResponse(net.stepniak.common.error.http.ServerBaseException exception)

prepareInternalErrorResponse

protected javax.ws.rs.core.Response prepareInternalErrorResponse(Throwable exception)


Copyright © 2013. All Rights Reserved.