@Provider
@Produces(value={"text/xml","text/*+xml","application/xml","application/*+xml"})
public class XmlJAXBContextFinder
extends AbstractJAXBContextFinder
implements javax.ws.rs.ext.ContextResolver<JAXBContextFinder>
AbstractJAXBContextFinder.CacheKeyOBJECT_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, getPackageNamepublic JAXBContext findCachedContext(Class type, javax.ws.rs.core.MediaType mediaType, Annotation[] parameterAnnotations) throws JAXBException
JAXBContextFinderfindCachedContext in interface JAXBContextFindertype - typemediaType - media typeparameterAnnotations - annotationsJAXBContextJAXBException - jaxb exceptionprotected JAXBContext createContextObject(Annotation[] parameterAnnotations, Class... classes) throws JAXBException
createContextObject in class AbstractJAXBContextFinderJAXBExceptionprotected JAXBContext createContextObject(Annotation[] parameterAnnotations, String contextPath) throws JAXBException
createContextObject in class AbstractJAXBContextFinderJAXBExceptionpublic JAXBContext findCacheContext(javax.ws.rs.core.MediaType mediaType, Annotation[] paraAnnotations, Class... classes) throws JAXBException
JAXBContextFinderfindCacheContext in interface JAXBContextFindermediaType - media typeparaAnnotations - annotationsclasses - classesJAXBContextJAXBException - jaxb exceptionpublic JAXBContext findCacheXmlTypeContext(javax.ws.rs.core.MediaType mediaType, Annotation[] paraAnnotations, Class... classes) throws JAXBException
JAXBContextFinderfindCacheXmlTypeContext in interface JAXBContextFindermediaType - media typeparaAnnotations - annotationsclasses - classesJAXBContextJAXBException - jaxb exceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.