@Provider
@Produces(value={"application/json","application/*+json"})
public class JsonJAXBContextFinder
extends AbstractJAXBContextFinder
implements javax.ws.rs.ext.ContextResolver<JAXBContextFinder>
AbstractJAXBContextFinder.CacheKeyOBJECT_FACTORY_NAME, providers| Constructor and Description |
|---|
JsonJAXBContextFinder() |
| Modifier and Type | Method and Description |
|---|---|
protected JAXBContext |
createContextObject(Annotation[] annotations,
Class... classes) |
protected JAXBContext |
createContextObject(Annotation[] annotations,
String contextPath) |
protected JAXBContext |
find(Class<?> type,
javax.ws.rs.core.MediaType mediaType,
ConcurrentHashMap<Class<?>,JAXBContext> cache,
Mapped mapped,
BadgerFish badger) |
JAXBContext |
findCacheContext(javax.ws.rs.core.MediaType mediaType,
Annotation[] annotations,
Class... classes)
This method creates a JAXBContext from a collection of classes.
|
JAXBContext |
findCachedContext(Class type,
javax.ws.rs.core.MediaType mediaType,
Annotation[] annotations)
This method with find a JAXBContext for one type.
|
JAXBContext |
findCacheXmlTypeContext(javax.ws.rs.core.MediaType mediaType,
Annotation[] annotations,
Class... classes)
This method will find a JAXBContext from a set of XmlTypes that use an ObjectFactory for creation (i.e. from xjc).
|
createContext, createXmlTypeContext, findDefaultObjectFactoryClass, findProvidedJAXBContext, getContext, getPackageNameprotected JAXBContext createContextObject(Annotation[] annotations, Class... classes) throws JAXBException
createContextObject in class AbstractJAXBContextFinderJAXBExceptionprotected JAXBContext createContextObject(Annotation[] annotations, String contextPath) throws JAXBException
createContextObject in class AbstractJAXBContextFinderJAXBExceptionpublic JAXBContext findCacheXmlTypeContext(javax.ws.rs.core.MediaType mediaType, Annotation[] annotations, Class... classes) throws JAXBException
JAXBContextFinderfindCacheXmlTypeContext in interface JAXBContextFindermediaType - media typeannotations - annotationsclasses - classesJAXBContextJAXBException - jaxb exceptionpublic JAXBContext findCachedContext(Class type, javax.ws.rs.core.MediaType mediaType, Annotation[] annotations) throws JAXBException
JAXBContextFinderfindCachedContext in interface JAXBContextFindertype - typemediaType - media typeannotations - annotationsJAXBContextJAXBException - jaxb exceptionpublic JAXBContext findCacheContext(javax.ws.rs.core.MediaType mediaType, Annotation[] annotations, Class... classes) throws JAXBException
JAXBContextFinderfindCacheContext in interface JAXBContextFindermediaType - media typeannotations - annotationsclasses - classesJAXBContextJAXBException - jaxb exceptionprotected JAXBContext find(Class<?> type, javax.ws.rs.core.MediaType mediaType, ConcurrentHashMap<Class<?>,JAXBContext> cache, Mapped mapped, BadgerFish badger) throws JAXBException
JAXBExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.