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

tech.mhuang.pacebox.springboot.autoconfiguration.rest.RestProperties Maven / Gradle / Ivy

The newest version!
package tech.mhuang.pacebox.springboot.autoconfiguration.rest;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.net.Proxy;

/**
 * 基础类
 *
 * @author mhuang
 * @since 1.0.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class RestProperties {

    /**
     * read time out
     */
    private Integer readTimeOut = 30000;

    /**
     * connect time out
     */
    private Integer connectTimeOut = 5000;

    /**
     * is use proxy.
     * default 

false

*/ private boolean useProxy; /** * proxy host */ private String proxyHost; /** * proxy port */ private Integer proxyPort; /** * proxy type */ private Proxy.Type proxyType = Proxy.Type.HTTP; /** * trunk size */ private Integer chunkSize = 4096; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy