de.smartics.resteasy.hypermedia.renderer
Class AbstractExceptionHandler

Package class diagram package AbstractExceptionHandler
java.lang.Object
  extended by de.smartics.resteasy.hypermedia.renderer.AbstractExceptionHandler
All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper< Throwable>

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

Base implementation for handlers of raised exceptions.


Field Summary
protected  org.jboss.resteasy.spi.HttpRequest request
          The request to access the request headers.
protected  org.jboss.resteasy.spi.HttpResponse response
          The response to write to.
protected  javax.servlet.http.HttpServletRequest servletRequest
          The HTTP request.
protected  javax.servlet.http.HttpServletResponse servletResponse
          The HTTP response.
protected  javax.ws.rs.core.UriInfo uriInfo
          Helper to construct paths.
 
Constructor Summary
AbstractExceptionHandler()
           
 
Method Summary
protected  ResourceContext createContext()
          Creates the resource context from injected information.
protected abstract  I18nProvider getI18nProvider()
          Provides access to internationalization information.
 javax.ws.rs.core.Response toResponse(Throwable exception)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

response

@Context
protected org.jboss.resteasy.spi.HttpResponse response
The response to write to.


request

@Context
protected org.jboss.resteasy.spi.HttpRequest request
The request to access the request headers.


servletRequest

@Context
protected javax.servlet.http.HttpServletRequest servletRequest
The HTTP request.


servletResponse

@Context
protected javax.servlet.http.HttpServletResponse servletResponse
The HTTP response.


uriInfo

@Context
protected javax.ws.rs.core.UriInfo uriInfo
Helper to construct paths.

Constructor Detail

AbstractExceptionHandler

public AbstractExceptionHandler()
Method Detail

getI18nProvider

protected abstract I18nProvider getI18nProvider()
Provides access to internationalization information.

Returns:
access to internationalization information.

createContext

protected ResourceContext createContext()
Creates the resource context from injected information.

Returns:
the resource context from injected information.

toResponse

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


Copyright © 2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.