public class ServerProxyFactory extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
AdmainHost |
Server |
adminServer |
static String[] |
CDNUrlfilter |
Server |
customServer |
static String[] |
CustomUrlfilte |
static String[] |
localUrlfilte |
static String[] |
OtherUrlfilter |
static String |
protPropertes |
ProxyServer |
proxyServer |
static String[] |
RADUrlfilter |
static ServerProxyFactory |
serverFactory |
static Map<String,Server> |
serverMap |
static Map<String,ProxyHost> |
serverProxyMap |
static String |
THREAD_LOCK |
Server |
webServer |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear() |
ProxyHost |
createProxy(ProxyHost hostProxy) |
ProxyHost |
createProxy(URL url,
String projectName,
String indexPage,
String proxyHost,
String localPort) |
Server |
getAdminServer() |
Server |
getCustomServer() |
static ServerProxyFactory |
getInstance() |
static String |
getLocalPort() |
ProxyHost |
getProxy(URL url) |
org.apache.http.HttpHost |
getProxyHost(org.apache.http.HttpRequest request) |
List<ProxyHost> |
getProxyList() |
ProxyServer |
getProxyServer() |
Server |
getWebServer() |
static boolean |
isLocalPortUsing(int port) |
static boolean |
isPortUsing(String host,
int port) |
void |
setAdminServer(Server adminServer) |
void |
setCustomServer(Server customServer) |
void |
setProxyServer(ProxyServer proxyServer) |
void |
setWebServer(Server webServer) |
void |
shutdown() |
public static ServerProxyFactory serverFactory
public static final String[] OtherUrlfilter
public static final String[] CDNUrlfilter
public static final String[] RADUrlfilter
public static final String[] localUrlfilte
public static final String[] CustomUrlfilte
public Server adminServer
public Server customServer
public Server webServer
public ProxyServer proxyServer
public static ServerProxyFactory getInstance()
public void clear()
public Server getWebServer()
public void setWebServer(Server webServer)
public ProxyServer getProxyServer()
public void setProxyServer(ProxyServer proxyServer)
public org.apache.http.HttpHost getProxyHost(org.apache.http.HttpRequest request)
public void shutdown()
public ProxyHost createProxy(URL url, String projectName, String indexPage, String proxyHost, String localPort) throws IOException
IOExceptionpublic static boolean isLocalPortUsing(int port)
public static boolean isPortUsing(String host, int port) throws UnknownHostException
public static String getLocalPort()
public Server getAdminServer()
public void setAdminServer(Server adminServer)
public Server getCustomServer()
public void setCustomServer(Server customServer)
Copyright © 2025 onecode. All rights reserved.