net.sourceforge.rssowl.util.shop
Class ProxyShop

java.lang.Object
  extended bynet.sourceforge.rssowl.util.shop.ProxyShop

public class ProxyShop
extends Object

Factory class for proxy connection concerns in RSSOwl.

Version:
1.1.3
Author:
Benjamin Pasero

Field Summary
static Hashtable proxySettings
          The proxy settings (host, port, user, pw) in a hashtable
 
Constructor Summary
private ProxyShop()
          This utility class constructor is hidden
 
Method Summary
static boolean isProxyProtected()
          Check if the Proxy is protected with Authentication.
static boolean isUseProxy()
          Get wether the proxy should be used
static void setDomain(String domain)
          Set the Domain to use with the proxy
static void setHost(String host)
          Set the Host to use as proxy
static void setPassword(String password)
          Set the password to use with the proxy
static void setPort(String port)
          Set the port to use with the proxy
static void setUpProxy(org.apache.commons.httpclient.HttpClient client)
          Set up the proxy for a given HttpClient
static void setUseProxy(String use)
          Set wether to use the proxy at all
static void setUsername(String username)
          Set the username to use with the proxy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

proxySettings

public static Hashtable proxySettings
The proxy settings (host, port, user, pw) in a hashtable

Constructor Detail

ProxyShop

private ProxyShop()
This utility class constructor is hidden

Method Detail

isProxyProtected

public static boolean isProxyProtected()
Check if the Proxy is protected with Authentication.

Returns:
TRUE if the user has supplied Proxy Credentials.

isUseProxy

public static boolean isUseProxy()
Get wether the proxy should be used

Returns:
boolean TRUE if proxy should be used.

setDomain

public static void setDomain(String domain)
Set the Domain to use with the proxy

Parameters:
domain - The Domain to use with the proxy (NTLM)

setHost

public static void setHost(String host)
Set the Host to use as proxy

Parameters:
host - The host to use as proxy

setPassword

public static void setPassword(String password)
Set the password to use with the proxy

Parameters:
password - The password to use with the proxy

setPort

public static void setPort(String port)
Set the port to use with the proxy

Parameters:
port - The port to use with the proxy

setUpProxy

public static void setUpProxy(org.apache.commons.httpclient.HttpClient client)
Set up the proxy for a given HttpClient

Parameters:
client - The HttpClient to setup the Proxy Connection

setUseProxy

public static void setUseProxy(String use)
Set wether to use the proxy at all

Parameters:
use - If TRUE, use the proxy

setUsername

public static void setUsername(String username)
Set the username to use with the proxy

Parameters:
username - The username to use with the proxy


RSSOwl - RSS / RDF / Atom Newsreader

SourceForge.net Logo