@Provider public final class WebDavContextResolver extends Object implements javax.ws.rs.ext.ContextResolver<JAXBContext>
| Constructor and Description |
|---|
WebDavContextResolver(Class<?>... additionalClasses)
Creates an instance of this resolver, registering the provided custom XML Elements and Properties.
|
public WebDavContextResolver(Class<?>... additionalClasses) throws JAXBException
additionalClasses - The custom extensions (JAXB classes) to be registered (can be left blank).JAXBException - if an error was encountered while creating the JAXBContext, such as (but not limited to): No JAXB implementation was discovered, Classes use
JAXB annotations incorrectly, Classes have colliding annotations (i.e., two classes with the same type name), The JAXB implementation was
unable to locate provider-specific out-of-band information (such as additional files generated at the development time.)public final JAXBContext getContext(Class<?> cls)
getContext in interface javax.ws.rs.ext.ContextResolver<JAXBContext>Copyright © 2008-2014 The java.net WebDAV Project. All Rights Reserved.