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

io.quarkiverse.quinoa.QuinoaDevProxyHandlerConfig Maven / Gradle / Ivy

package io.quarkiverse.quinoa;

import java.util.List;
import java.util.Objects;
import java.util.Set;

import io.quarkus.runtime.annotations.RecordableConstructor;

public class QuinoaDevProxyHandlerConfig {
    public final List ignoredPathPrefixes;
    public final String indexPage;
    public final boolean enableCompression;
    public final Set compressMediaTypes;

    public final boolean devServerDirectForwarding;

    @RecordableConstructor
    public QuinoaDevProxyHandlerConfig(List ignoredPathPrefixes, String indexPage, boolean enableCompression,
            Set compressMediaTypes, boolean devServerDirectForwarding) {
        this.ignoredPathPrefixes = ignoredPathPrefixes;
        this.indexPage = "/".equals(indexPage) ? "" : indexPage;
        this.enableCompression = enableCompression;
        this.compressMediaTypes = compressMediaTypes;
        this.devServerDirectForwarding = devServerDirectForwarding;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o)
            return true;
        if (o == null || getClass() != o.getClass())
            return false;
        QuinoaDevProxyHandlerConfig that = (QuinoaDevProxyHandlerConfig) o;
        return enableCompression == that.enableCompression
                && devServerDirectForwarding == that.devServerDirectForwarding
                && Objects.equals(ignoredPathPrefixes, that.ignoredPathPrefixes) && Objects.equals(indexPage, that.indexPage)
                && Objects.equals(compressMediaTypes, that.compressMediaTypes);
    }

    @Override
    public int hashCode() {
        return Objects.hash(ignoredPathPrefixes, indexPage, enableCompression, compressMediaTypes,
                devServerDirectForwarding);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy