org.glassfish.jersey.internal
Class ExceptionMapperFactory
java.lang.Object
org.glassfish.jersey.internal.ExceptionMapperFactory
- All Implemented Interfaces:
- ExceptionMappers
public class ExceptionMapperFactory
- extends Object
- implements ExceptionMappers
ExceptionMapperFactory class.
- Author:
- Paul Sandoz, Santiago.PericasGeertsen@oracle.com
|
Method Summary |
<T extends Throwable>
javax.ws.rs.ext.ExceptionMapper<T> |
|
find(Class<T> type)
Get an exception mapping provider for a particular class of exception. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExceptionMapperFactory
public ExceptionMapperFactory(Set<javax.ws.rs.ext.ExceptionMapper> mappers)
ExceptionMapperFactory
public ExceptionMapperFactory(ServiceProviders serviceProviders)
find
public <T extends Throwable> javax.ws.rs.ext.ExceptionMapper<T> find(Class<T> type)
- Description copied from interface:
ExceptionMappers
- Get an exception mapping provider for a particular class of exception.
Returns the provider whose generic type is the nearest superclass of
type.
- Specified by:
find in interface ExceptionMappers
- Type Parameters:
T - type of the exception handled by the exception mapping provider.- Parameters:
type - the class of exception.
- Returns:
- an
ExceptionMapper for the supplied type or null
if none is found.
Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.