Package org.nuxeo.jaxrs.test
Class JerseyClientHelper.ApacheHttpClientBuilder
- java.lang.Object
-
- org.nuxeo.jaxrs.test.JerseyClientHelper.ApacheHttpClientBuilder
-
- Enclosing class:
- JerseyClientHelper
public static class JerseyClientHelper.ApacheHttpClientBuilder extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected int
connectionRequestTimeout
protected int
connectTimeout
protected String
password
protected boolean
redirectsEnabled
protected int
socketTimeout
protected String
username
-
Constructor Summary
Constructors Modifier Constructor Description protected
ApacheHttpClientBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.sun.jersey.api.client.Client
build()
JerseyClientHelper.ApacheHttpClientBuilder
setConnectionRequestTimeout(int connectionRequestTimeout)
JerseyClientHelper.ApacheHttpClientBuilder
setConnectTimeout(int connectTimeout)
JerseyClientHelper.ApacheHttpClientBuilder
setCredentials(String username, String password)
JerseyClientHelper.ApacheHttpClientBuilder
setRedirectsEnabled(boolean redirectsEnabled)
JerseyClientHelper.ApacheHttpClientBuilder
setSocketTimeout(int socketTimeout)
-
-
-
Method Detail
-
setSocketTimeout
public JerseyClientHelper.ApacheHttpClientBuilder setSocketTimeout(int socketTimeout)
-
setConnectTimeout
public JerseyClientHelper.ApacheHttpClientBuilder setConnectTimeout(int connectTimeout)
-
setConnectionRequestTimeout
public JerseyClientHelper.ApacheHttpClientBuilder setConnectionRequestTimeout(int connectionRequestTimeout)
-
setRedirectsEnabled
public JerseyClientHelper.ApacheHttpClientBuilder setRedirectsEnabled(boolean redirectsEnabled)
-
setCredentials
public JerseyClientHelper.ApacheHttpClientBuilder setCredentials(String username, String password)
-
build
public com.sun.jersey.api.client.Client build()
-
-