public class HttpProxy extends Proxy
Proxy.Typepublic HttpProxy(String host, int port)
host - 域名或IPport - 端口public String getHost()
public int getPort()
public HttpProxy setAuth(String user, char[] pass)
user - 用户名pass - 密码public HttpProxy setAuth(PasswordAuthentication auth)
auth - PasswordAuthenticationpublic PasswordAuthentication getAuth()
Copyright © 2023. All rights reserved.