⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 proxyinfo.java

📁 这是linux下ssl vpn的实现程序
💻 JAVA
字号:
package com.sslexplorer.vpn.base;


public class ProxyInfo {
    String protocol;
    String username;
    String password;
    String hostname;
    int port;
    String sourceIdent;

    public String toUri() {
        StringBuffer buf = new StringBuffer(getProtocol());
        buf.append("://");
        if(username != null && !username.equals("")) {
            buf.append(username);
            if(password != null && !password.equals("")) {
                buf.append(":");
                buf.append(password);
            }
            buf.append("@");
        }
        buf.append(hostname);
        if(port != 0) {
            buf.append(":");
            buf.append(port);
        }
        return buf.toString();
    }

    /**
     * @return Returns the hostname.
     */
    public String getHostname() {
        return hostname;
    }

    /**
     * @return Returns the password.
     */
    public String getPassword() {
        return password;
    }

    /**
     * @return Returns the port.
     */
    public int getPort() {
        return port;
    }

    /**
     * @return Returns the protocol.
     */
    public String getProtocol() {
        return protocol;
    }

    /**
     * @return Returns the sourceIdent.
     */
    public String getSourceIdent() {
        return sourceIdent;
    }

    /**
     * @return Returns the username.
     */
    public String getUsername() {
        return username;
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -