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, wrapAndThrowpublic 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.IOExceptioncom.fasterxml.jackson.core.JsonProcessingExceptionCopyright 2019 Ping Identity Corp. All rights reserved.