org.apache.hadoop.hbase.rest.provider
Class JAXBContextResolver
java.lang.Object
org.apache.hadoop.hbase.rest.provider.JAXBContextResolver
- All Implemented Interfaces:
- javax.ws.rs.ext.ContextResolver<JAXBContext>
@Provider
public class JAXBContextResolver
- extends Object
- implements javax.ws.rs.ext.ContextResolver<JAXBContext>
Plumbing for hooking up Jersey's JSON entity body encoding and decoding
support to JAXB. Modify how the context is created (by using e.g. a
different configuration builder) to control how JSON is processed and
created.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JAXBContextResolver
public JAXBContextResolver()
throws Exception
- Throws:
Exception
getContext
public JAXBContext getContext(Class<?> objectType)
- Specified by:
getContext
in interface javax.ws.rs.ext.ContextResolver<JAXBContext>
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.