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

com.github.dreamhead.moco.dumper.HttpProtocolVersionSerializer Maven / Gradle / Ivy

Go to download

Moco is an easy setup stub framework, mainly focusing on testing and integration.

There is a newer version: 1.5.0
Show newest version
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.HttpProtocolVersion;

import java.io.IOException;

public class HttpProtocolVersionSerializer extends JsonSerializer {
    @Override
    public void serialize(final HttpProtocolVersion value, final JsonGenerator generator,
                          final SerializerProvider provider) throws IOException {
        generator.writeString(value.text());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy