@Service(value=HtmlClientService.class) public class HtmlClientServiceImpl extends Object implements HtmlClientService
Constructor and Description |
---|
HtmlClientServiceImpl() |
Modifier and Type | Method and Description |
---|---|
HtmlClient |
getClient(org.apache.http.impl.client.CloseableHttpClient client,
String baseUrl)
Get the HtmlClient
|
HtmlClient |
getClient(String baseUrl)
|
HtmlClient |
getClient(String baseUrl,
String user,
String password)
|
public HtmlClient getClient(org.apache.http.impl.client.CloseableHttpClient client, String baseUrl)
getClient
in interface HtmlClientService
client
- The inner http clientbaseUrl
- the base URL as Stringpublic HtmlClient getClient(String baseUrl)
getClient
in interface HtmlClientService
baseUrl
- the base URL as Stringpublic HtmlClient getClient(String baseUrl, String user, String password)
getClient
in interface HtmlClientService
baseUrl
- the base URL as Stringuser
- the username to be used for basic authpassword
- the password to be used for basic authCopyright © 2007–2016 The Apache Software Foundation. All rights reserved.