| Constructor and Description |
|---|
AppUpdate(String appName,
Boolean maintenance) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBody()
Value of the request body.
|
Map<String,Object> |
getBodyAsMap()
Value of the request body as a Map.
|
String |
getEndpoint()
Path and query parameters of a URL.
|
Map<String,String> |
getHeaders()
Map of request-specific HTTP headers. |
Http.Method |
getHttpMethod()
HTTP method.
|
App |
getResponse(byte[] in,
int code,
Map<String,String> responseHeaders)
Response handler.
|
Http.Accept |
getResponseType()
HTTP Accept header.
|
boolean |
hasBody()
Whether or not the request has a body.
|
public Http.Method getHttpMethod()
RequestgetHttpMethod in interface Request<App>public String getEndpoint()
RequestgetEndpoint in interface Request<App>public boolean hasBody()
Requestpublic String getBody()
Requestpublic Map<String,Object> getBodyAsMap()
RequestgetBodyAsMap in interface Request<App>public Http.Accept getResponseType()
RequestgetResponseType in interface Request<App>Http.Acceptpublic Map<String,String> getHeaders()
RequestMap of request-specific HTTP headers.getHeaders in interface Request<App>public App getResponse(byte[] in, int code, Map<String,String> responseHeaders)
RequestgetResponse in interface Request<App>in - Data returned from the request.code - HTTP status code.T as specified by an individual request.Copyright © 2018. All rights reserved.