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 Aggregatablepublic Object getFirstFieldValue(String field)
getFirstFieldValue in interface Aggregatablepublic Aggregatable removeFields(String field)
removeFields in interface Aggregatablepublic Aggregatable setField(String field, Object value)
setField in interface Aggregatablepublic Aggregatable setFields(String field, Collection<?> values)
setFields in interface Aggregatablepublic Aggregatable addField(String field, Object value)
addField in interface Aggregatablepublic Aggregatable addFields(String field, Collection<?> values)
addFields in interface Aggregatablepublic Aggregatable clear()
clear in interface Aggregatablepublic Set<String> getFieldNames()
getFieldNames in interface Aggregatable