net.proxy.sunproxy
Class InternetProxyInfo

java.lang.Object
  extended by net.proxy.sunproxy.InternetProxyInfo

public class InternetProxyInfo
extends java.lang.Object

A simple container for all of the system information about the HTTP proxy servers address.

Version:
1.8, 07/11/02

Field Summary
static int AUTO
           
static int MANUAL
           
static int NONE
           
 
Constructor Summary
InternetProxyInfo()
           
 
Method Summary
 java.lang.String getAutoConfigURL()
           
 java.lang.String getHTTPHost()
           
 int getHTTPPort()
          Returns the HTTP port number or -1, if this property hasn't been set.
 java.lang.String getInvalidHTTPHost()
           
 int getInvalidHTTPPort()
           
 java.lang.String[] getOverrides()
           
 int getType()
          One of MANUAL, AUTO, or NONE.
 boolean isValidAutoHTTPConfiguration()
          If AUTO is set if we were able to determine the host.
 boolean isValidManualHTTPConfiguration()
          Return true if the HTTP proxy address was configured manually and the port/server properties are valid.
 void setHTTPHost(java.lang.String httpHost)
           
 void setHTTPPort(int httpPort)
           
 void setOverrides(java.util.List overrides)
           
 void setOverrides(java.lang.String[] overrides)
           
 void setType(int type)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NONE

public static final int NONE
See Also:
Constant Field Values

MANUAL

public static final int MANUAL
See Also:
Constant Field Values

AUTO

public static final int AUTO
See Also:
Constant Field Values
Constructor Detail

InternetProxyInfo

public InternetProxyInfo()
Method Detail

getType

public int getType()
One of MANUAL, AUTO, or NONE. If type is AUTO then only the autoconfig property is guaranteed to be valid. If type is NONE then a proxy server isn't being used.


setType

public void setType(int type)

getHTTPHost

public java.lang.String getHTTPHost()

getInvalidHTTPHost

public java.lang.String getInvalidHTTPHost()

setHTTPHost

public void setHTTPHost(java.lang.String httpHost)

getHTTPPort

public int getHTTPPort()
Returns the HTTP port number or -1, if this property hasn't been set.


setHTTPPort

public void setHTTPPort(int httpPort)

getInvalidHTTPPort

public int getInvalidHTTPPort()

getOverrides

public java.lang.String[] getOverrides()

setOverrides

public void setOverrides(java.lang.String[] overrides)

setOverrides

public void setOverrides(java.util.List overrides)

getAutoConfigURL

public java.lang.String getAutoConfigURL()

isValidManualHTTPConfiguration

public boolean isValidManualHTTPConfiguration()
Return true if the HTTP proxy address was configured manually and the port/server properties are valid. If this property is true, then it's safe to set the System HTTP proxy properties.


isValidAutoHTTPConfiguration

public boolean isValidAutoHTTPConfiguration()
If AUTO is set if we were able to determine the host.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object