public interface IAPIHttpClient
Modifier and Type | Method and Description |
---|---|
org.apache.http.impl.client.CloseableHttpClient |
createNewClient()
Create a new HttpClient instance to use
|
String |
getAccept()
Retrieve the accept header value
|
String |
getAcceptLanguages()
Retrieve the Accept-Language header value
|
org.apache.http.impl.client.CloseableHttpClient |
getClient()
Retrieve a shared client instance to use
|
long |
getCrawlDelay()
Retrieve the crawl delay
|
org.apache.http.client.utils.URIBuilder |
getHost()
Retrieve the host
|
long |
getReadTimeout()
Retrieve the current socket read timeout value
|
String |
getUserAgent()
Retrieve the user agent
|
boolean |
isGzipAllowed()
Find out if gzip is allowed or not
|
org.apache.http.impl.client.CloseableHttpClient createNewClient() throws IllegalArgumentException, APIException
IllegalArgumentException
APIException
- If there is a problem creating the client or strategyString getAccept()
String getAcceptLanguages()
org.apache.http.impl.client.CloseableHttpClient getClient()
long getCrawlDelay()
org.apache.http.client.utils.URIBuilder getHost()
long getReadTimeout()
String getUserAgent()
boolean isGzipAllowed()
Copyright © 2017. All rights reserved.