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

com.github.dreamhead.moco.parser.model.RestHeadSetting Maven / Gradle / Ivy

package com.github.dreamhead.moco.parser.model;

import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.github.dreamhead.moco.MocoRest;
import com.github.dreamhead.moco.RestSettingBuilder;

@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
public final class RestHeadSetting extends RestSingleSetting {
    @Override
    protected RestSettingBuilder doStartRestSetting() {
        if (hasId()) {
            return MocoRest.head(id());
        }

        return MocoRest.head();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy