org.duelengine.duel.mvc
Class UncaughtErrorHandler

java.lang.Object
  extended by org.duelengine.duel.mvc.UncaughtErrorHandler
All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<Throwable>

public abstract class UncaughtErrorHandler
extends Object
implements javax.ws.rs.ext.ExceptionMapper<Throwable>

JAX-RS glue for mapping unhandled exceptions through error filters


Constructor Summary
UncaughtErrorHandler()
           
 
Method Summary
protected abstract  javax.ws.rs.core.MediaType getDefaultMediaType(com.sun.jersey.api.core.ExtendedUriInfo uriInfo)
           
protected abstract  javax.ws.rs.core.Response.Status getHTTPStatus(com.sun.jersey.api.core.ExtendedUriInfo uriInfo, Throwable ex)
           
protected abstract  Object getResult(com.sun.jersey.api.core.ExtendedUriInfo uriInfo, Throwable ex, javax.ws.rs.core.MediaType resultType)
           
protected  javax.ws.rs.core.MediaType getResultType(com.sun.jersey.api.core.ExtendedUriInfo uriInfo)
           
protected abstract  List<javax.ws.rs.core.MediaType> getSupportedMediaTypes(com.sun.jersey.api.core.ExtendedUriInfo uriInfo)
           
 javax.ws.rs.core.Response toResponse(Throwable error)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UncaughtErrorHandler

public UncaughtErrorHandler()
Method Detail

toResponse

public final javax.ws.rs.core.Response toResponse(Throwable error)
Specified by:
toResponse in interface javax.ws.rs.ext.ExceptionMapper<Throwable>

getResultType

protected javax.ws.rs.core.MediaType getResultType(com.sun.jersey.api.core.ExtendedUriInfo uriInfo)

getDefaultMediaType

protected abstract javax.ws.rs.core.MediaType getDefaultMediaType(com.sun.jersey.api.core.ExtendedUriInfo uriInfo)

getSupportedMediaTypes

protected abstract List<javax.ws.rs.core.MediaType> getSupportedMediaTypes(com.sun.jersey.api.core.ExtendedUriInfo uriInfo)

getHTTPStatus

protected abstract javax.ws.rs.core.Response.Status getHTTPStatus(com.sun.jersey.api.core.ExtendedUriInfo uriInfo,
                                                                  Throwable ex)

getResult

protected abstract Object getResult(com.sun.jersey.api.core.ExtendedUriInfo uriInfo,
                                    Throwable ex,
                                    javax.ws.rs.core.MediaType resultType)


Copyright © 2012. All Rights Reserved.