public class RestQuery
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
RestQuery.RestQueryBuilder |
Constructor and Description |
---|
RestQuery(RestMethod method,
java.lang.String path) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContent() |
java.lang.String |
getContentType() |
java.lang.String |
getFormattedQuery() |
RestMethod |
getMethod() |
com.google.common.base.Optional<? extends java.util.Map<java.lang.String,?>> |
getParameterMap() |
com.google.common.base.Optional<? extends java.util.List<java.lang.Object>> |
getParameters() |
java.lang.String |
getPath() |
java.lang.String |
getResponseBody() |
java.lang.Integer |
getStatusCode() |
boolean |
hasParameters() |
java.lang.String |
toString() |
RestQuery |
withContent(java.lang.String content) |
RestQuery |
withContentType(java.lang.String contentType) |
static RestQuery.RestQueryBuilder |
withMethod(RestMethod method) |
RestQuery |
withParameters(java.util.List<java.lang.Object> parameters) |
RestQuery |
withParameters(java.util.Map<java.lang.String,?> parameterMap) |
RestQuery |
withResponse(java.lang.String responseBody) |
RestQuery |
withStatusCode(java.lang.Integer statusCode) |
public RestQuery(RestMethod method, java.lang.String path)
public RestQuery withParameters(java.util.List<java.lang.Object> parameters)
public RestQuery withParameters(java.util.Map<java.lang.String,?> parameterMap)
public RestQuery withResponse(java.lang.String responseBody)
public RestQuery withStatusCode(java.lang.Integer statusCode)
public RestQuery withContent(java.lang.String content)
public RestQuery withContentType(java.lang.String contentType)
public RestMethod getMethod()
public java.lang.String getPath()
public com.google.common.base.Optional<? extends java.util.List<java.lang.Object>> getParameters()
public com.google.common.base.Optional<? extends java.util.Map<java.lang.String,?>> getParameterMap()
public java.lang.String getResponseBody()
public java.lang.String getContent()
public java.lang.String getContentType()
public java.lang.Integer getStatusCode()
public boolean hasParameters()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getFormattedQuery()
public static RestQuery.RestQueryBuilder withMethod(RestMethod method)