public class MessageKeySerializer extends com.fasterxml.jackson.databind.ser.std.StdSerializer<String>
@JsonSerialize
annotation.Modifier and Type | Field and Description |
---|---|
static String |
SERIALIZATION_ATTRIBUTE_HTTP_REQUEST
A JSON serialization context attribute containing the current HTTP request.
|
Constructor and Description |
---|
MessageKeySerializer()
Create an instance of the custom serializer.
|
Modifier and Type | Method and Description |
---|---|
void |
serialize(String messageKey,
com.fasterxml.jackson.core.JsonGenerator jsonGenerator,
com.fasterxml.jackson.databind.SerializerProvider serializerProvider)
The custom serialization implementation.
|
acceptJsonFormatVisitor, getSchema, getSchema, handledType, wrapAndThrow, wrapAndThrow
public static final String SERIALIZATION_ATTRIBUTE_HTTP_REQUEST
public MessageKeySerializer()
public void serialize(String messageKey, com.fasterxml.jackson.core.JsonGenerator jsonGenerator, com.fasterxml.jackson.databind.SerializerProvider serializerProvider) throws IOException, com.fasterxml.jackson.core.JsonProcessingException
serialize
in class com.fasterxml.jackson.databind.ser.std.StdSerializer<String>
messageKey
- The value of the field to be serialized.jsonGenerator
- JSON generator provided by Jackson.serializerProvider
- SerializerProvider provided by Jackson.IOException
com.fasterxml.jackson.core.JsonProcessingException
Copyright 2019 Ping Identity Corp. All rights reserved.