public class HttpClientService extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpClientService.HttpClientServiceClientConnectionManagerFactory |
| Constructor and Description |
|---|
HttpClientService() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.http.StatusLine |
callURL(String relativeURL) |
String |
downloadAsString(String relativeURL) |
String |
encodeURL(String relativeURL) |
org.apache.http.HttpResponse |
execute(org.apache.http.client.methods.HttpUriRequest request) |
org.apache.http.impl.client.DefaultHttpClient |
getClient() |
org.apache.http.protocol.HttpContext |
getContext() |
String |
getPassword() |
String |
getProxyHost() |
Integer |
getProxyPort() |
String |
getServerURL() |
String |
getSynchroCode() |
String |
getUsername() |
String |
retrieveRemoteLoginId() |
void |
safeConsume(org.apache.http.HttpResponse resp) |
protected void |
setClient(org.apache.http.impl.client.DefaultHttpClient client) |
void |
setPassword(String password) |
void |
setProxyHost(String proxyHost) |
void |
setProxyPort(Integer proxyPort) |
void |
setServerURL(String serverURL) |
void |
setSynchroCode(String synchroCode) |
void |
setUsername(String username) |
public final Object lock
public String getServerURL()
public void setServerURL(String serverURL)
public String getSynchroCode()
public void setSynchroCode(String synchroCode)
public String getUsername()
public void setUsername(String username)
public String getPassword()
public void setPassword(String password)
public String getProxyHost()
public void setProxyHost(String proxyHost)
public Integer getProxyPort()
public void setProxyPort(Integer proxyPort)
public org.apache.http.impl.client.DefaultHttpClient getClient()
public org.apache.http.protocol.HttpContext getContext()
protected void setClient(org.apache.http.impl.client.DefaultHttpClient client)
public String downloadAsString(String relativeURL) throws IOException
IOExceptionpublic org.apache.http.StatusLine callURL(String relativeURL) throws org.apache.http.client.ClientProtocolException, IOException
org.apache.http.client.ClientProtocolExceptionIOExceptionpublic org.apache.http.HttpResponse execute(org.apache.http.client.methods.HttpUriRequest request)
throws org.apache.http.client.ClientProtocolException,
IOException
org.apache.http.client.ClientProtocolExceptionIOExceptionpublic void safeConsume(org.apache.http.HttpResponse resp)
public String retrieveRemoteLoginId() throws IOException
IOExceptionCopyright © 2012-2018. All Rights Reserved.