Package io.dropwizard.jersey.params
Class AbstractParamConverterProvider
- java.lang.Object
-
- io.dropwizard.jersey.params.AbstractParamConverterProvider
-
- All Implemented Interfaces:
javax.ws.rs.ext.ParamConverterProvider
public class AbstractParamConverterProvider extends Object implements javax.ws.rs.ext.ParamConverterProvider
Provides converters to Jersey for Dropwizard's *Param classes.When a param class is used as a resource parameter this converter will instantiate the parameter class with the value provided and the name of the parameter, so if value parsing fails the parameter name can be used in the error message. If the param class does not have a two-string constructor this provider will return null, causing jersey to use the single-string constructor for the parameter type as it normally would.
-
-
Constructor Summary
Constructors Constructor Description AbstractParamConverterProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> @Nullable javax.ws.rs.ext.ParamConverter<T>
getConverter(Class<T> rawType, Type genericType, Annotation[] annotations)
-
-
-
Method Detail
-
getConverter
public <T> @Nullable javax.ws.rs.ext.ParamConverter<T> getConverter(Class<T> rawType, Type genericType, Annotation[] annotations)
- Specified by:
getConverter
in interfacejavax.ws.rs.ext.ParamConverterProvider
-
-