com.sun.jersey.server.impl.application
Class ExceptionMapperFactory

java.lang.Object
  extended by com.sun.jersey.server.impl.application.ExceptionMapperFactory
All Implemented Interfaces:
ExceptionMapperContext

public class ExceptionMapperFactory
extends Object
implements ExceptionMapperContext

Author:
Paul.Sandoz@Sun.Com

Constructor Summary
ExceptionMapperFactory()
           
 
Method Summary
 ExceptionMapper find(Class<? extends Throwable> c)
          Find an exception mapper for a class of throwable that is capable of converting a throwable to a response.
 void init(ProviderServices providerServices)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionMapperFactory

public ExceptionMapperFactory()
Method Detail

init

public void init(ProviderServices providerServices)

find

public ExceptionMapper find(Class<? extends Throwable> c)
Description copied from interface: ExceptionMapperContext
Find an exception mapper for a class of throwable that is capable of converting a throwable to a response.

Specified by:
find in interface ExceptionMapperContext
Parameters:
c - the throwable class.
Returns:
the exception mapper, otherwise null.


Copyright © 2013 Oracle Corporation. All Rights Reserved.