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