|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttwitter4j.internal.http.HttpClientImpl
public class HttpClientImpl
| Field Summary |
|---|
| Fields inherited from interface twitter4j.internal.http.HttpResponseCode |
|---|
BAD_GATEWAY, BAD_REQUEST, ENHANCE_YOUR_CLAIM, FORBIDDEN, FOUND, INTERNAL_SERVER_ERROR, MULTIPLE_CHOICES, NOT_ACCEPTABLE, NOT_FOUND, NOT_MODIFIED, OK, SERVICE_UNAVAILABLE, UNAUTHORIZED |
| Constructor Summary | |
|---|---|
HttpClientImpl()
|
|
HttpClientImpl(HttpClientConfiguration conf)
|
|
| Method Summary | |
|---|---|
static java.lang.String |
encode(java.lang.String str)
|
boolean |
equals(java.lang.Object o)
|
HttpResponse |
get(java.lang.String url)
|
int |
getConnectionTimeout()
|
static HttpClient |
getInstance(HttpClientConfiguration conf)
|
java.lang.String |
getProxyAuthPassword()
|
java.lang.String |
getProxyAuthUser()
|
java.lang.String |
getProxyHost()
|
int |
getProxyPort()
|
int |
getReadTimeout()
|
int |
hashCode()
|
HttpResponse |
post(java.lang.String url,
HttpParameter[] params)
|
HttpResponse |
request(HttpRequest req)
|
void |
setConnectionTimeout(int connectionTimeout)
Sets a specified timeout value, in milliseconds, to be used when opening a communications link to the resource referenced by this URLConnection. |
void |
setProxyAuthPassword(java.lang.String proxyAuthPassword)
Sets proxy authentication password. |
void |
setProxyAuthUser(java.lang.String proxyAuthUser)
Sets proxy authentication user. |
void |
setProxyHost(java.lang.String proxyHost)
Sets proxy host. |
void |
setProxyPort(int proxyPort)
Sets proxy port. |
void |
setReadTimeout(int readTimeout)
Sets the read timeout to a specified timeout, in milliseconds. |
void |
setRetryCount(int retryCount)
|
void |
setRetryIntervalSeconds(int retryIntervalSeconds)
|
void |
shutdown()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HttpClientImpl()
public HttpClientImpl(HttpClientConfiguration conf)
| Method Detail |
|---|
public void shutdown()
shutdown in interface HttpClientpublic static HttpClient getInstance(HttpClientConfiguration conf)
public java.lang.String getProxyHost()
public void setProxyHost(java.lang.String proxyHost)
proxyHost - public int getProxyPort()
public void setProxyPort(int proxyPort)
proxyPort - public java.lang.String getProxyAuthUser()
public void setProxyAuthUser(java.lang.String proxyAuthUser)
proxyAuthUser - public java.lang.String getProxyAuthPassword()
public void setProxyAuthPassword(java.lang.String proxyAuthPassword)
proxyAuthPassword - public int getConnectionTimeout()
public void setConnectionTimeout(int connectionTimeout)
connectionTimeout - - an int that specifies the connect timeout value in millisecondspublic int getReadTimeout()
public void setReadTimeout(int readTimeout)
readTimeout - - an int that specifies the timeout value to be used in millisecondspublic void setRetryCount(int retryCount)
public void setRetryIntervalSeconds(int retryIntervalSeconds)
public HttpResponse get(java.lang.String url)
throws TwitterException
TwitterException
public HttpResponse post(java.lang.String url,
HttpParameter[] params)
throws TwitterException
TwitterException
public HttpResponse request(HttpRequest req)
throws TwitterException
request in interface HttpClientTwitterExceptionpublic static java.lang.String encode(java.lang.String str)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||