|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object osdep.cache.CacheProxySource
public class CacheProxySource
It happens that the proxy host and port are checked more than once in this library. This means that ConsoleProxySource asks these information to the user more than once, which is not acceptable. Putting an instance of this class in the middle, the values are cached and so they are asked only once.
Constructor Summary | |
---|---|
CacheProxySource(IProxySource source)
|
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 |
---|
public CacheProxySource(IProxySource source)
source
- Method Detail |
---|
public java.lang.String getProxyHost()
IProxySource
getProxyHost
in interface IProxySource
public int getProxyPort()
IProxySource
getProxyPort
in interface IProxySource
public boolean needsProxy()
IProxySource
needsProxy
in interface IProxySource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |