io.quarkus.hal.HalCollectionWrapperJacksonSerializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-hal Show documentation
Show all versions of quarkus-hal Show documentation
Hypertext Application Language (HAL) support
package io.quarkus.hal;
import java.io.IOException;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;
public class HalCollectionWrapperJacksonSerializer extends JsonSerializer> {
@Override
public void serialize(HalCollectionWrapper> wrapper, JsonGenerator generator, SerializerProvider serializers)
throws IOException {
generator.writeStartObject();
writeEmbedded(wrapper, generator, serializers);
writeLinks(wrapper, generator);
generator.writeEndObject();
}
private void writeEmbedded(HalCollectionWrapper> wrapper, JsonGenerator generator, SerializerProvider serializers)
throws IOException {
JsonSerializer
© 2015 - 2025 Weber Informatics LLC | Privacy Policy