
com.github.dreamhead.moco.dumper.MessageContentSerializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of moco-core Show documentation
Show all versions of moco-core Show documentation
Moco is an easy setup stub framework, mainly focusing on testing and integration.
package com.github.dreamhead.moco.dumper;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;
import com.github.dreamhead.moco.model.MessageContent;
import java.io.IOException;
public class MessageContentSerializer extends JsonSerializer {
@Override
public void serialize(final MessageContent value, final JsonGenerator generator,
final SerializerProvider serializers) throws IOException {
generator.writeString(value.toString());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy