pl.allegro.tech.hermes.api.jackson.EndpointAddressSerializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hermes-api Show documentation
Show all versions of hermes-api Show documentation
Fast and reliable message broker built on top of Kafka.
package pl.allegro.tech.hermes.api.jackson;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;
import pl.allegro.tech.hermes.api.EndpointAddress;
import java.io.IOException;
public class EndpointAddressSerializer extends JsonSerializer {
@Override
public void serialize(EndpointAddress value, JsonGenerator jgen, SerializerProvider provider) throws IOException {
jgen.writeString(value.getRawEndpoint());
}
}