public class JestDroidClient extends AbstractJestClient implements JestClient
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.http.entity.ContentType |
requestContentType |
ELASTIC_SEARCH_DATE_FORMAT, gson| Constructor and Description |
|---|
JestDroidClient() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.http.client.methods.HttpUriRequest |
constructHttpMethod(String methodName,
String url,
String payload) |
<T extends JestResult> |
execute(Action<T> clientRequest) |
<T extends JestResult> |
executeAsync(Action<T> clientRequest,
JestResultHandler<T> resultHandler) |
com.google.gson.Gson |
getGson() |
org.apache.http.client.HttpClient |
getHttpClient() |
void |
setGson(com.google.gson.Gson gson) |
void |
setHttpClient(org.apache.http.client.HttpClient httpClient) |
void |
shutdownClient() |
getNextServer, getRequestURL, getServerPoolSize, isRequestCompressionEnabled, setIdleConnectionReaper, setNodeChecker, setRequestCompressionEnabled, setServersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetServerspublic <T extends JestResult> T execute(Action<T> clientRequest) throws IOException
execute in interface JestClientIOExceptionpublic <T extends JestResult> void executeAsync(Action<T> clientRequest, JestResultHandler<T> resultHandler)
executeAsync in interface JestClientpublic void shutdownClient()
shutdownClient in interface JestClientshutdownClient in class AbstractJestClientprotected org.apache.http.client.methods.HttpUriRequest constructHttpMethod(String methodName, String url, String payload)
public org.apache.http.client.HttpClient getHttpClient()
public void setHttpClient(org.apache.http.client.HttpClient httpClient)
public com.google.gson.Gson getGson()
public void setGson(com.google.gson.Gson gson)
Copyright © 2015. All rights reserved.