001/*
002 * ===========================================================================================
003 * = COPYRIGHT
004 *          PAX Computer Technology (Shenzhen) Co., Ltd. PROPRIETARY INFORMATION
005 *   This software is supplied under the terms of a license agreement or nondisclosure
006 *   agreement with PAX Computer Technology (Shenzhen) Co., Ltd. and may not be copied or
007 *   disclosed except in accordance with the terms in that agreement.
008 *     Copyright (C) 2017-2023 PAX Computer Technology (Shenzhen) Co., Ltd. All rights reserved.
009 * Description: // Detail description about the function of this module,
010 *             // interfaces with the other modules, and dependencies.
011 * Revision History:
012 * Date                         Author                        Action
013 * 2017/04/01                   PAX                     Create/Add/Modify/Delete
014 * ===========================================================================================
015 */
016package com.pax.dal.entity;
017
018/**
019 * <div class="zh">以太网代理。</div>
020 * <div class="en">Ethernet proxy.</div>
021 */
022public class LanProxyInfo {
023    private int type;
024    private String host;
025    private String port;
026    private String exclusionList;
027    private String pac;
028
029    public LanProxyInfo() {
030    }
031
032    public LanProxyInfo(int type, String host, String port, String exclusionList, String pac) {
033        this.type = type;
034        this.host = host;
035        this.port = port;
036        this.exclusionList = exclusionList;
037        this.pac = pac;
038    }
039
040    /**
041     * <div class="zh">以太网网络代理类型。</div> <div class="en">Ethernet proxy type.</div>
042     *
043     * @return <div class="zh">
044     *      <ul>
045     *          <li>0:代表没有网络代理,以前设置的网络代理也将被清空,其他成员变量请赋值为null。</li>
046     *          <li>1:代表手动配置网络代理,需要代理服务器主机名(host),端口(port),不使用代理的网址(exclusionList,没有则赋值为null),其他成员变量请赋值为null。</li>
047     *          <li>2:代表自动配置网络代理,需要自动配置代理服务器网址(pac),其他成员变量请赋值null。</li>
048     *      </ul>
049     *     </div>
050     * <div class="en">
051     *       <ul>
052     *          <li>0:Represents that there is no network proxy, and the previously set network proxy will also be cleared. Please assign null to other member variables.</li>
053     *          <li>1:Represents manually configure the network proxy, which requires the host name and port of the proxy server, and the URL of the proxy not to be used (if there is no proxy, the value will be null). For other member variables, the value will be null.</li>
054     *          <li>2:Represents the automatic configuration of network proxy. The proxy server URL needs to be automatically configured. Please assign null to other member variables.</li>
055     *       </ul>
056     *     </div>
057     */
058    public int getType() {
059        return this.type;
060    }
061
062    /**
063     * <div class="zh">以太网网络代理类型。</div> <div class="en">Ethernet proxy type.</div>
064     *
065     * @param type <div class="zh">
066     *       <ul>
067     *           <li>0:代表没有网络代理,以前设置的网络代理也将被清空,其他成员变量请赋值为null。</li>
068     *           <li>1:代表手动配置网络代理,需要代理服务器主机名(host),端口(port),不使用代理的网址(exclusionList,没有则赋值为null),其他成员变量请赋值为null。</li>
069     *           <li>2:代表自动配置网络代理,需要自动配置代理服务器网址(pac),其他成员变量请赋值null。</li>
070     *       </ul>
071     *      </div>
072     *  <div class="en">
073     *        <ul>
074     *           <li>0:Represents that there is no network proxy, and the previously set network proxy will also be cleared. Please assign null to other member variables.</li>
075     *           <li>1:Represents manually configure the network proxy, which requires the host name (host) and port (port)of the proxy server, and the URL that not use proxy. (exclusionList, if there is no proxy, the value will be null). For other member variables, the value will be null.</li>
076     *           <li>2:Represents the automatic configuration of network proxy. need automatically configured URL of proxy(pac). Please assign null to other member variables.</li>
077     *        </ul>
078     *      </div>
079     */
080    public void setType(int type) {
081        this.type = type;
082    }
083
084    /**
085     *
086     * @return <div class="zh">代理服务器主机名。</div> <div class="en">Proxy server host name.</div>
087     */
088    public String getHost() {
089        return this.host;
090    }
091
092    /**
093     *
094     * @param host <div class="zh">代理服务器主机名。</div> <div class="en">Proxy server host name.</div>
095     */
096    public void setHost(String host) {
097        this.host = host;
098    }
099
100    /**
101     *
102     * @return <div class="zh">代理服务器端口。</div> <div class="en">Proxy server port.</div>
103     */
104    public String getPort() {
105        return this.port;
106    }
107
108    /**
109     *
110     * @param port <div class="zh">代理服务器端口。</div> <div class="en">Proxy server port.</div>
111     */
112    public void setPort(String port) {
113        this.port = port;
114    }
115
116    /**
117     *
118     * @return <div class="zh">不使用代理的网址。</div> <div class="en">The URL that not use proxy.</div>
119     */
120    public String getExclusionList() {
121        return this.exclusionList;
122    }
123
124    /**
125     *
126     * @param exclusionList <div class="zh">不使用代理的网址。</div> <div class="en">The URL that not use proxy.</div>
127     */
128    public void setExclusionList(String exclusionList) {
129        this.exclusionList = exclusionList;
130    }
131
132    /**
133     *
134     * @return <div class="zh">代理自动配置的网址。</div> <div class="en">Automatically configured URL of proxy.</div>
135     */
136    public String getPac() {
137        return this.pac;
138    }
139
140    /**
141     *
142     * @param pac <div class="zh">代理自动配置的网址。</div> <div class="en">Automatically configured URL of proxy.</div>
143     */
144    public void setPac(String pac) {
145        this.pac = pac;
146    }
147}