public class QueryRequestAndResponse extends java.lang.Object implements com.lucidworks.apollo.aggregation.Aggregatable, com.lucidworks.apollo.common.Copyable<QueryRequestAndResponse>
Modifier and Type | Field and Description |
---|---|
Request |
request |
static java.lang.String |
REQUEST |
static java.lang.String |
REQUEST_HEADERS |
static java.lang.String |
REQUEST_HTTP_METHOD |
static java.lang.String |
REQUEST_PARAMS |
java.util.Optional<Response> |
response |
static java.lang.String |
RESPONSE |
static java.lang.String |
RESPONSE_ENTITY |
static java.lang.String |
RESPONSE_HEADERS |
static java.lang.String |
TOTAL_TIME |
long |
totalTime |
Modifier and Type | Method and Description |
---|---|
com.lucidworks.apollo.aggregation.Aggregatable |
addField(java.lang.String field,
java.lang.Object value) |
com.lucidworks.apollo.aggregation.Aggregatable |
addFields(java.lang.String field,
java.util.Collection<?> values) |
com.lucidworks.apollo.aggregation.Aggregatable |
clear() |
QueryRequestAndResponse |
copyOf() |
static QueryRequestAndResponse |
create(Request req,
Response resp,
long totalTime) |
java.util.Set<java.lang.String> |
getFieldNames() |
java.util.List<java.lang.Object> |
getFieldValues(java.lang.String field) |
java.lang.Object |
getFirstFieldValue(java.lang.String field) |
static QueryRequestAndResponse |
newRequest(<any> queryParams,
<any> headers,
java.lang.String httpMethod) |
static QueryRequestAndResponse |
newRequest(<any> queryParams,
<any> headers,
java.lang.String httpMethod,
byte[] entityBytes,
MediaType entityMediaType) |
com.lucidworks.apollo.aggregation.Aggregatable |
removeFields(java.lang.String field) |
com.lucidworks.apollo.aggregation.Aggregatable |
setField(java.lang.String field,
java.lang.Object value) |
com.lucidworks.apollo.aggregation.Aggregatable |
setFields(java.lang.String field,
java.util.Collection<?> values) |
QueryRequestAndResponse |
withResponse(<any> headers,
AbstractResponse response,
long totalTime) |
public final Request request
public final java.util.Optional<Response> response
public long totalTime
public static final java.lang.String REQUEST
public static final java.lang.String REQUEST_PARAMS
public static final java.lang.String REQUEST_HEADERS
public static final java.lang.String REQUEST_HTTP_METHOD
public static final java.lang.String RESPONSE
public static final java.lang.String RESPONSE_HEADERS
public static final java.lang.String RESPONSE_ENTITY
public static final java.lang.String TOTAL_TIME
public QueryRequestAndResponse withResponse(<any> headers, AbstractResponse response, long totalTime)
public static QueryRequestAndResponse newRequest(<any> queryParams, <any> headers, java.lang.String httpMethod)
public static QueryRequestAndResponse newRequest(<any> queryParams, <any> headers, java.lang.String httpMethod, byte[] entityBytes, MediaType entityMediaType)
public static QueryRequestAndResponse create(Request req, Response resp, long totalTime)
public QueryRequestAndResponse copyOf()
copyOf
in interface com.lucidworks.apollo.common.Copyable<QueryRequestAndResponse>
public java.util.List<java.lang.Object> getFieldValues(java.lang.String field)
getFieldValues
in interface com.lucidworks.apollo.aggregation.Aggregatable
public java.lang.Object getFirstFieldValue(java.lang.String field)
getFirstFieldValue
in interface com.lucidworks.apollo.aggregation.Aggregatable
public com.lucidworks.apollo.aggregation.Aggregatable removeFields(java.lang.String field)
removeFields
in interface com.lucidworks.apollo.aggregation.Aggregatable
public com.lucidworks.apollo.aggregation.Aggregatable setField(java.lang.String field, java.lang.Object value)
setField
in interface com.lucidworks.apollo.aggregation.Aggregatable
public com.lucidworks.apollo.aggregation.Aggregatable setFields(java.lang.String field, java.util.Collection<?> values)
setFields
in interface com.lucidworks.apollo.aggregation.Aggregatable
public com.lucidworks.apollo.aggregation.Aggregatable addField(java.lang.String field, java.lang.Object value)
addField
in interface com.lucidworks.apollo.aggregation.Aggregatable
public com.lucidworks.apollo.aggregation.Aggregatable addFields(java.lang.String field, java.util.Collection<?> values)
addFields
in interface com.lucidworks.apollo.aggregation.Aggregatable
public com.lucidworks.apollo.aggregation.Aggregatable clear()
clear
in interface com.lucidworks.apollo.aggregation.Aggregatable
public java.util.Set<java.lang.String> getFieldNames()
getFieldNames
in interface com.lucidworks.apollo.aggregation.Aggregatable