All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pl.allegro.tech.hermes.api.jackson.EndpointAddressSerializer Maven / Gradle / Ivy

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 java.io.IOException;
import pl.allegro.tech.hermes.api.EndpointAddress;

public class EndpointAddressSerializer extends JsonSerializer {
  @Override
  public void serialize(EndpointAddress value, JsonGenerator jgen, SerializerProvider provider)
      throws IOException {
    jgen.writeString(value.getRawEndpoint());
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy