org.jfrog.build.client
Class PreemptiveHttpClient
java.lang.Object
org.jfrog.build.client.PreemptiveHttpClient
public class PreemptiveHttpClient
- extends java.lang.Object
Wrapper of HttpClient that forces preemptive BASIC authentication if user credentials exist.
|
Method Summary |
org.apache.http.HttpResponse |
execute(org.apache.http.client.methods.HttpUriRequest request)
|
void |
setHttpParams(org.apache.http.params.HttpParams httpParams)
|
void |
setProxyConfiguration(java.lang.String host,
int port,
java.lang.String username,
java.lang.String password)
|
void |
shutdown()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PreemptiveHttpClient
public PreemptiveHttpClient(int timeout)
PreemptiveHttpClient
public PreemptiveHttpClient(java.lang.String userName,
java.lang.String password,
int timeout)
setProxyConfiguration
public void setProxyConfiguration(java.lang.String host,
int port,
java.lang.String username,
java.lang.String password)
execute
public org.apache.http.HttpResponse execute(org.apache.http.client.methods.HttpUriRequest request)
throws java.io.IOException
- Throws:
java.io.IOException
shutdown
public void shutdown()
setHttpParams
public void setHttpParams(org.apache.http.params.HttpParams httpParams)