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

io.quarkus.vertx.http.runtime.handlers.DevClasspathStaticHandlerOptions Maven / Gradle / Ivy

The newest version!
package io.quarkus.vertx.http.runtime.handlers;

import java.nio.charset.Charset;
import java.util.Set;

public class DevClasspathStaticHandlerOptions {

    private final Set compressMediaTypes;
    private final boolean enableCompression;
    private final String indexPage;
    private final Charset defaultEncoding;

    private DevClasspathStaticHandlerOptions(Set compressMediaTypes, boolean enableCompression,
            String indexPage, Charset defaultEncoding) {
        this.compressMediaTypes = compressMediaTypes;
        this.enableCompression = enableCompression;
        this.indexPage = indexPage;
        this.defaultEncoding = defaultEncoding;
    }

    public Set getCompressMediaTypes() {
        return compressMediaTypes;
    }

    public boolean isEnableCompression() {
        return enableCompression;
    }

    public String getIndexPage() {
        return indexPage;
    }

    public Charset getDefaultEncoding() {
        return defaultEncoding;
    }

    public static class Builder {
        private Set compressMediaTypes;
        private boolean enableCompression;
        private String indexPage;
        private Charset contentEncoding;

        public DevClasspathStaticHandlerOptions.Builder compressMediaTypes(Set compressMediaTypes) {
            this.compressMediaTypes = compressMediaTypes;
            return this;
        }

        public DevClasspathStaticHandlerOptions.Builder enableCompression(boolean enableCompression) {
            this.enableCompression = enableCompression;
            return this;
        }

        public DevClasspathStaticHandlerOptions.Builder indexPage(String indexPage) {
            this.indexPage = indexPage;
            return this;
        }

        public DevClasspathStaticHandlerOptions.Builder defaultEncoding(Charset contentEncoding) {
            this.contentEncoding = contentEncoding;
            return this;
        }

        public DevClasspathStaticHandlerOptions build() {
            return new DevClasspathStaticHandlerOptions(this.compressMediaTypes, this.enableCompression, this.indexPage,
                    this.contentEncoding);
        }

    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy