📄 xproxyserver.java
字号:
/****************************************************************
* XBrowser - eXtended web Browser *
* *
* Copyright (c) 2000-2001 Armond Avanes *
* Refer to ReadMe & License files for more information *
* *
* *
* By: Armond Avanes *
* Armond555@yahoo.com & Armond333@yahoo.com *
* http://xbrowser.sourceforge.net/ *
*****************************************************************/
package xbrowser.util;
public final class XProxyServer
{
public XProxyServer()
{
useProxy = false;
proxyAddress = "";
proxyPort = "";
}
public boolean getUseProxy()
{
return useProxy;
}
public void setUseProxy(boolean use)
{
useProxy = use;
}
public String getProxyAddress()
{
return proxyAddress;
}
public void setProxyAddress(String address)
{
proxyAddress = address.trim();
}
public String getProxyPort()
{
return proxyPort;
}
public void setProxyPort(String port)
{
proxyPort = port.trim();
}
public boolean equals(Object obj)
{
if( !(obj instanceof XProxyServer) )
return false;
XProxyServer proxy = (XProxyServer)obj;
return( useProxy==proxy.getUseProxy() && proxyAddress.equals(proxy.getProxyAddress()) && proxyPort.equals(proxy.getProxyPort()) );
}
// Attributes:
private boolean useProxy;
private String proxyAddress;
private String proxyPort;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -