org.springframework.security.oauth2.common.util
Class JsonDateDeserializer

java.lang.Object
  extended by org.codehaus.jackson.map.JsonDeserializer<Date>
      extended by org.springframework.security.oauth2.common.util.JsonDateDeserializer

public class JsonDateDeserializer
extends org.codehaus.jackson.map.JsonDeserializer<Date>

JSON deserializer for Jackson to handle regular date instances as timestamps in ISO format.

Author:
Dave Syer

Nested Class Summary
 
Nested classes/interfaces inherited from class org.codehaus.jackson.map.JsonDeserializer
org.codehaus.jackson.map.JsonDeserializer.None
 
Constructor Summary
JsonDateDeserializer()
           
 
Method Summary
 Date deserialize(org.codehaus.jackson.JsonParser parser, org.codehaus.jackson.map.DeserializationContext context)
           
 
Methods inherited from class org.codehaus.jackson.map.JsonDeserializer
deserialize, deserializeWithType, getEmptyValue, getNullValue, unwrappingDeserializer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonDateDeserializer

public JsonDateDeserializer()
Method Detail

deserialize

public Date deserialize(org.codehaus.jackson.JsonParser parser,
                        org.codehaus.jackson.map.DeserializationContext context)
                 throws IOException,
                        org.codehaus.jackson.JsonProcessingException
Specified by:
deserialize in class org.codehaus.jackson.map.JsonDeserializer<Date>
Throws:
IOException
org.codehaus.jackson.JsonProcessingException


Copyright © 2013. All rights reserved.