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, setServers
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setServers
public <T extends JestResult> T execute(Action<T> clientRequest) throws IOException
execute
in interface JestClient
IOException
public <T extends JestResult> void executeAsync(Action<T> clientRequest, JestResultHandler<T> resultHandler)
executeAsync
in interface JestClient
public void shutdownClient()
shutdownClient
in interface JestClient
shutdownClient
in class AbstractJestClient
protected 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.