Package org.apache.sling.testing.clients
Class SlingClientConfig
java.lang.Object
org.apache.sling.testing.clients.SlingClientConfig
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.http.client.AuthCache
AuthCache for preemptive authprotected final org.apache.http.client.CookieStore
The cookie storeprotected final org.apache.http.client.CredentialsProvider
The credentials providerprotected final String
Password of the user that will be used to authenticate the requests.protected final URI
Base URI of the server under test.protected final String
Name of the user that will be used to authenticate the requests.Extra values to be used in interceptors, custom authentication mechanisms, etc. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
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) -
Method Summary
-
Field Details
-
url
Base URI of the server under test. -
user
Name of the user that will be used to authenticate the requests. -
password
Password of the user that will be used to authenticate the requests. -
cookieStore
protected final org.apache.http.client.CookieStore cookieStoreThe cookie store -
credsProvider
protected final org.apache.http.client.CredentialsProvider credsProviderThe credentials provider -
authCache
protected final org.apache.http.client.AuthCache authCacheAuthCache for preemptive auth -
values
Extra values to be used in interceptors, custom authentication mechanisms, etc.
-
-
Constructor Details
-
SlingClientConfig
-
-
Method Details
-
getUrl
- Returns:
- the base URL that the sling client is pointing to. It should always end with a "/"
-
getUser
- Returns:
- the user that the client is using.
-
getPassword
- Returns:
- the user that the client is using.
-
getValues
Get the map of extra custom values configured on the client
These may be used by interceptors, for example
- Returns:
- the reference to the map
-
getCookieStore
public org.apache.http.client.CookieStore getCookieStore()- Returns:
- a reference to the cookie store used by the client
-
getCredsProvider
public org.apache.http.client.CredentialsProvider getCredsProvider()- Returns:
- the reference to the CredentialsProvider used by the client
-
getAuthCache
public org.apache.http.client.AuthCache getAuthCache()- Returns:
- the reference the AuthCache used by the client
-