io.quarkus.hal.HalLinkJsonbSerializer 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 jakarta.json.bind.serializer.JsonbSerializer;
import jakarta.json.bind.serializer.SerializationContext;
import jakarta.json.stream.JsonGenerator;
public class HalLinkJsonbSerializer implements JsonbSerializer {
@Override
public void serialize(HalLink value, JsonGenerator generator, SerializationContext context) {
generator.writeStartObject();
generator.write("href", value.getHref());
generator.writeEnd();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy