osdep.console
Class ConsoleProxySource

java.lang.Object
  extended by osdep.console.ConsoleProxySource
All Implemented Interfaces:
IProxySource

public class ConsoleProxySource
extends java.lang.Object
implements IProxySource

The proxy source interface realized as requests to the user trough the console

Author:
SHZ Mar 6, 2008

Constructor Summary
ConsoleProxySource()
           
 
Method Summary
 java.lang.String getProxyHost()
          The proxy host, expressed as a http link
 int getProxyPort()
          The proxy port (normally 8080 or 8000)
 boolean needsProxy()
          Do we need a proxy, or the connection is direct
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleProxySource

public ConsoleProxySource()
Method Detail

getProxyHost

public java.lang.String getProxyHost()
Description copied from interface: IProxySource
The proxy host, expressed as a http link

Specified by:
getProxyHost in interface IProxySource
Returns:
the proxy link

getProxyPort

public int getProxyPort()
Description copied from interface: IProxySource
The proxy port (normally 8080 or 8000)

Specified by:
getProxyPort in interface IProxySource
Returns:
the proxy port

needsProxy

public boolean needsProxy()
Description copied from interface: IProxySource
Do we need a proxy, or the connection is direct

Specified by:
needsProxy in interface IProxySource
Returns:
true is a proxy is needed to connect to the internet, false otherwise