org.surfnet.oaaas.auth
Class ObjectMapperProvider

java.lang.Object
  extended by org.surfnet.oaaas.auth.ObjectMapperProvider
All Implemented Interfaces:
javax.ws.rs.ext.ContextResolver<org.codehaus.jackson.map.ObjectMapper>

public class ObjectMapperProvider
extends Object
implements javax.ws.rs.ext.ContextResolver<org.codehaus.jackson.map.ObjectMapper>

We need to be able to set the ObjectMapper on the Client to make sure the MrBeanModule is used.


Constructor Summary
ObjectMapperProvider()
           
 
Method Summary
 org.codehaus.jackson.map.ObjectMapper getContext(Class<?> type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectMapperProvider

public ObjectMapperProvider()
Method Detail

getContext

public org.codehaus.jackson.map.ObjectMapper getContext(Class<?> type)
Specified by:
getContext in interface javax.ws.rs.ext.ContextResolver<org.codehaus.jackson.map.ObjectMapper>


Copyright © 2012-2013 SURFnet bv, The Netherlands. All Rights Reserved.