Package org.graylog2.database
Class ObjectIdSerializer
java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<org.bson.types.ObjectId>
org.graylog2.database.ObjectIdSerializer
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable
public class ObjectIdSerializer
extends com.fasterxml.jackson.databind.JsonSerializer<org.bson.types.ObjectId>
- Author:
- Dennis Oelkers <[email protected]>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer
com.fasterxml.jackson.databind.JsonSerializer.None
-
Constructor Summary
-
Method Summary
Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer
acceptJsonFormatVisitor, getDelegatee, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId
-
Constructor Details
-
ObjectIdSerializer
public ObjectIdSerializer()
-
-
Method Details
-
handledType
- Overrides:
handledType
in classcom.fasterxml.jackson.databind.JsonSerializer<org.bson.types.ObjectId>
-
serialize
public void serialize(org.bson.types.ObjectId value, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException, com.fasterxml.jackson.core.JsonProcessingException - Specified by:
serialize
in classcom.fasterxml.jackson.databind.JsonSerializer<org.bson.types.ObjectId>
- Throws:
IOException
com.fasterxml.jackson.core.JsonProcessingException
-