August 2019
Intermediate to advanced
560 pages
13h 41m
English
Let's take a look at the returned org.elasticsearch.client.Response object, as described in the following table. We can use the methods provided to get the desired contents to construct our returned object:
|
Method |
Description |
|
public org.apache.http.HttpEntity() |
Returns the response body in theorg.apache.http.HttpEntity type |
|
public java.lang.String setHeader(String name) |
Returns the value of the response header corresponding to the name |
|
public org.apache.http.Header[] getHeaders() |
Returns an array of the org.apache.http.Header response header |
|
public org.apache.http.RequestLine getRequestLine() |
Returns the org.apache.http.RequestLine object that generates the response |
|
public org.apache.http.httpHost ... |
Read now
Unlock full access