public interface HtmlClientService
Modifier and Type | Method and Description |
---|---|
HtmlClient |
getClient(org.apache.http.impl.client.CloseableHttpClient client,
String baseUrl)
Get an HtmlClient that internally uses a CloseableHttpClient
|
HtmlClient |
getClient(String baseUrl)
Get an HtmlClient.
|
HtmlClient |
getClient(String baseUrl,
String user,
String password)
Get an HtmlClient that uses BasicAuth for all requests
|
HtmlClient getClient(org.apache.http.impl.client.CloseableHttpClient client, String baseUrl)
client
- the inner CloseableHttpClient
. The client should take care of any timeouts, authentication, pre/post
processing, etc.baseUrl
- The address prefix to all the http requests (e.g. http://localhost:8080/myapp/)HtmlClient getClient(String baseUrl)
baseUrl
- The address prefix to all the http requests (e.g. http://localhost:8080/myapp/)HtmlClient getClient(String baseUrl, String user, String password)
baseUrl
- The address prefix to all the http requests (e.g. http://localhost:8080/myapp/)user
- The username for BasicAuthpassword
- The password for BasicAuthCopyright © 2007–2016 The Apache Software Foundation. All rights reserved.