Class ArcgisRestHttpClient
java.lang.Object
org.n52.sensorweb.server.helgoland.adapters.web.SimpleHttpClient
org.n52.sensorweb.server.helgoland.adapters.web.ArcgisRestHttpClient
- All Implemented Interfaces:
HttpClient
Client for retrieving Data from ArcGIS Rest API.
-
Constructor Summary
ConstructorsConstructorDescriptionArcgisRestHttpClient(int connectionTimeout, int socketTimeout, String username, String password, String tokenUrl) ArcgisRestHttpClient(int connectionTimeout, int socketTimeout, Credentials credentials) ArcgisRestHttpClient(String username, String password, String tokenUrl) ArcgisRestHttpClient(Credentials credentials) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.hc.client5.http.impl.classic.HttpClientBuilderMay be overwritten by subclasses that e.g.protected org.apache.hc.client5.http.impl.classic.CloseableHttpClientCreates a new client if token is expired.Methods inherited from class SimpleHttpClient
doDelete, doGet, doGet, doPost, doPost, execute, execute, executeGet, executeMethod, executePost, executePost, executePost, recreateClient, setConnectionTimout, setProxyHost, setProxyPort, setProxySslKey, setSocketTimout
-
Constructor Details
-
ArcgisRestHttpClient
-
ArcgisRestHttpClient
-
ArcgisRestHttpClient
-
ArcgisRestHttpClient
-
-
Method Details
-
getClient
protected org.apache.hc.client5.http.impl.classic.CloseableHttpClient getClient()Creates a new client if token is expired. Returns the existing client otherwise.- Overrides:
getClientin classSimpleHttpClient- Returns:
- client
-
configureClient
protected org.apache.hc.client5.http.impl.classic.HttpClientBuilder configureClient()Description copied from class:SimpleHttpClientMay be overwritten by subclasses that e.g. require specialized Headers- Overrides:
configureClientin classSimpleHttpClient- Returns:
- builder for the client instance
-