|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.server.internal.inject.JaxbStringReaderProvider
org.glassfish.jersey.server.internal.inject.JaxbStringReaderProvider.RootElementProvider
public static class JaxbStringReaderProvider.RootElementProvider
Root element JAXB param converter.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.glassfish.jersey.server.internal.inject.JaxbStringReaderProvider |
|---|
JaxbStringReaderProvider.RootElementProvider |
| Constructor Summary | |
|---|---|
JaxbStringReaderProvider.RootElementProvider(javax.inject.Provider<javax.xml.parsers.SAXParserFactory> spfProvider,
Providers ps)
Creates new instance. |
|
| Method Summary | ||
|---|---|---|
|
getConverter(java.lang.Class<T> rawType,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations)
Obtain a ParamConverter that can provide from/to string conversion
for an instance of a particular Java type. |
|
| Methods inherited from class org.glassfish.jersey.server.internal.inject.JaxbStringReaderProvider |
|---|
getStoredJAXBContext, getUnmarshaller |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JaxbStringReaderProvider.RootElementProvider(@Context
javax.inject.Provider<javax.xml.parsers.SAXParserFactory> spfProvider,
@Context
Providers ps)
spfProvider - SAX parser factory injection provider.ps - used to obtain JAXBContext and Unmarshaller ContextResolvers| Method Detail |
|---|
public <T> ParamConverter<T> getConverter(java.lang.Class<T> rawType,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations)
ParamConverterProviderParamConverter that can provide from/to string conversion
for an instance of a particular Java type.
getConverter in interface ParamConverterProviderT - the supported Java type convertible to/from a String format.rawType - the raw type of the object to be converted.genericType - the type of object to be converted. E.g. if an String value
representing the injected request parameter
is to be converted into a method parameter, this will be the
formal type of the method parameter as returned by Class.getGenericParameterTypes.annotations - an array of the annotations associated with the convertible
parameter instance. E.g. if a string value is to be converted into a method parameter,
this would be the annotations on that parameter as returned by
Method.getParameterAnnotations().
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||