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

restx.HttpSettings Maven / Gradle / Ivy

There is a newer version: 1.2.0-rc2
Show newest version
package restx;

import com.google.common.base.Optional;
import restx.config.SettingsKey;

import java.util.Collection;

/**
 * Date: 2/1/14
 * Time: 13:48
 */
public interface HttpSettings {
    @SettingsKey(key = "restx.http.XForwardedSupport", defaultValue = "127.0.0.1")
    Collection forwardedSupport();

    @SettingsKey(key = "restx.http.host")
    Optional host();

    @SettingsKey(key = "restx.http.scheme")
    Optional scheme();

    @SettingsKey(key = "restx.http.gzip.paths", defaultValue = "/{s:.+}")
    Collection gzipPaths();

    @SettingsKey(key = "restx.http.decode.url.path.params", defaultValue = "true",
            doc="Will issue a URLDecoder.decode() on every PATH parameters if true")
    boolean decodeURLPathParams();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy