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() |
java.util.Optional<? extends java.util.Map<java.lang.String,?>> |
getParameterMap() |
java.util.Optional<? extends java.util.List<java.lang.Object>> |
getParameters() |
java.lang.String |
getPath() |
java.lang.String |
getRequestCookies() |
java.lang.String |
getRequestHeaders() |
java.lang.String |
getResponseBody() |
java.lang.String |
getResponseCookies() |
java.lang.String |
getResponseHeaders() |
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 |
withRequestCookies(java.lang.String requestCookies) |
RestQuery |
withRequestHeaders(java.lang.String requestHeaders) |
RestQuery |
withResponse(java.lang.String responseBody) |
RestQuery |
withResponseCookies(java.lang.String responseCookies) |
RestQuery |
withResponseHeaders(java.lang.String responseHeaders) |
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 RestQuery withResponseCookies(java.lang.String responseCookies)
public RestQuery withResponseHeaders(java.lang.String responseHeaders)
public RestQuery withRequestCookies(java.lang.String requestCookies)
public RestQuery withRequestHeaders(java.lang.String requestHeaders)
public RestMethod getMethod()
public java.lang.String getPath()
public java.util.Optional<? extends java.util.List<java.lang.Object>> getParameters()
public java.util.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 java.lang.String getRequestHeaders()
public java.lang.String getRequestCookies()
public java.lang.String getResponseHeaders()
public java.lang.String getResponseCookies()
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)