@ThreadSafe public class SlingClientConfig extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SlingClientConfig.Builder |
Modifier and Type | Field and Description |
---|---|
protected org.apache.http.client.AuthCache |
authCache
AuthCache for preemptive auth
|
protected org.apache.http.client.CookieStore |
cookieStore
The cookie store
|
protected org.apache.http.client.CredentialsProvider |
credsProvider
The credentials provider
|
protected String |
password
Password of the user that will be used to authenticate the requests.
|
protected URI |
url
Base URI of the server under test.
|
protected String |
user
Name of the user that will be used to authenticate the requests.
|
protected Map<String,String> |
values
Extra values to be used in interceptors, custom auth mechanisms, etc.
|
Modifier | Constructor and Description |
---|---|
protected |
SlingClientConfig(URI url,
String user,
String password,
org.apache.http.client.CookieStore cookieStore,
org.apache.http.client.CredentialsProvider credentialsProvider,
org.apache.http.client.AuthCache authCache) |
Modifier and Type | Method and Description |
---|---|
org.apache.http.client.AuthCache |
getAuthCache() |
org.apache.http.client.CookieStore |
getCookieStore() |
org.apache.http.client.CredentialsProvider |
getCredsProvider() |
String |
getPassword() |
URI |
getUrl() |
String |
getUser() |
Map<String,String> |
getValues()
Get the map of extra custom values configured on the client
|
protected final URI url
protected final String user
protected final String password
protected final org.apache.http.client.CookieStore cookieStore
protected final org.apache.http.client.CredentialsProvider credsProvider
protected final org.apache.http.client.AuthCache authCache
public URI getUrl()
public String getUser()
public String getPassword()
public Map<String,String> getValues()
Get the map of extra custom values configured on the client
These may be used by interceptors, for example
public org.apache.http.client.CookieStore getCookieStore()
public org.apache.http.client.CredentialsProvider getCredsProvider()
public org.apache.http.client.AuthCache getAuthCache()
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.