@Provider @Produces(value={"text/*+xml","application/*+xml"}) public class XmlJAXBContextFinder extends AbstractJAXBContextFinder implements javax.ws.rs.ext.ContextResolver<JAXBContextFinder>
AbstractJAXBContextFinder.CacheKey
OBJECT_FACTORY_NAME, providers
Constructor and Description |
---|
XmlJAXBContextFinder() |
Modifier and Type | Method and Description |
---|---|
protected JAXBContext |
createContextObject(Annotation[] parameterAnnotations,
Class... classes) |
protected JAXBContext |
createContextObject(Annotation[] parameterAnnotations,
String contextPath) |
JAXBContext |
findCacheContext(javax.ws.rs.core.MediaType mediaType,
Annotation[] paraAnnotations,
Class... classes)
This method creates a JAXBContext from a collection of classes.
|
JAXBContext |
findCachedContext(Class type,
javax.ws.rs.core.MediaType mediaType,
Annotation[] parameterAnnotations)
This method with find a JAXBContext for one type.
|
JAXBContext |
findCacheXmlTypeContext(javax.ws.rs.core.MediaType mediaType,
Annotation[] paraAnnotations,
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, getPackageName
public JAXBContext findCachedContext(Class type, javax.ws.rs.core.MediaType mediaType, Annotation[] parameterAnnotations) throws JAXBException
JAXBContextFinder
findCachedContext
in interface JAXBContextFinder
JAXBException
protected JAXBContext createContextObject(Annotation[] parameterAnnotations, Class... classes) throws JAXBException
createContextObject
in class AbstractJAXBContextFinder
JAXBException
protected JAXBContext createContextObject(Annotation[] parameterAnnotations, String contextPath) throws JAXBException
createContextObject
in class AbstractJAXBContextFinder
JAXBException
public JAXBContext findCacheContext(javax.ws.rs.core.MediaType mediaType, Annotation[] paraAnnotations, Class... classes) throws JAXBException
JAXBContextFinder
findCacheContext
in interface JAXBContextFinder
JAXBException
public JAXBContext findCacheXmlTypeContext(javax.ws.rs.core.MediaType mediaType, Annotation[] paraAnnotations, Class... classes) throws JAXBException
JAXBContextFinder
findCacheXmlTypeContext
in interface JAXBContextFinder
JAXBException
Copyright © 2017 JBoss by Red Hat. All rights reserved.