|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.scheisseichfindemalkeinen.settings.ProxyManager
public class ProxyManager
Class which provides method to get a preconfigured HttpClient, so that in the hole program the proxysettings can be used.
| Field Summary | |
|---|---|
static int |
DIRECT_CONNECTION
Direct connection |
static int |
HTTP_PROXY
Connection over a proxy |
static java.lang.String |
USER_AGENT
Deprecated. User-Agent is now configurable by the user. Please use SettingsManager.instance().getUserAgent() |
| Method Summary | |
|---|---|
org.apache.http.client.HttpClient |
getHTTPClient()
Returns a preconfigured HttpClient |
int |
getMode()
Returns the mode |
org.apache.http.client.HttpClient |
getNonMultithreadedHTTPClient()
Returns a preconfigured HttpClient, but without usage of the Mutli Threaded Connection Manager I need this, because of some problems on download and import html files. |
java.lang.String |
getProxyname()
Returns the proxyname |
java.lang.String |
getProxypassword()
Returns the proxypassword |
int |
getProxyport()
Returns the proxyport |
java.lang.String |
getProxyuser()
Returns the proxyuser |
static ProxyManager |
instance()
Returns the Singleton |
boolean |
isAuth()
Returns the auth |
void |
readFromSettings()
Read the settings |
void |
setAuth(boolean auth)
Sets the auth |
void |
setMode(int mode)
Sets the mode |
void |
setProxyname(java.lang.String proxyname)
Sets the proxyname |
void |
setProxypassword(java.lang.String proxypassword)
Sets the proxypassword |
void |
setProxyport(int proxyport)
Sets the proxyport |
void |
setProxyuser(java.lang.String proxyuser)
Sets the proxyuser |
void |
writeToSettings()
Save the settings |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String USER_AGENT
public static final int DIRECT_CONNECTION
public static final int HTTP_PROXY
| Method Detail |
|---|
public static ProxyManager instance()
public org.apache.http.client.HttpClient getHTTPClient()
public org.apache.http.client.HttpClient getNonMultithreadedHTTPClient()
ImportHTML.ImportHTML(String, String)public void writeToSettings()
public void readFromSettings()
public java.lang.String getProxyuser()
public void setProxyuser(java.lang.String proxyuser)
proxyuser - proxyuserpublic int getMode()
public void setMode(int mode)
mode - modepublic java.lang.String getProxyname()
public void setProxyname(java.lang.String proxyname)
proxyname - proxynamepublic int getProxyport()
public void setProxyport(int proxyport)
proxyport - proxyportpublic java.lang.String getProxypassword()
public void setProxypassword(java.lang.String proxypassword)
proxypassword - proxypasswordpublic boolean isAuth()
public void setAuth(boolean auth)
auth - auth
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||