com.heroku.api.request.run
public class Run extends Object implements Request<RunResponse>
| Constructor and Description |
|---|
Run(String app,
String command) |
Run(String app,
String command,
boolean attach) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBody()
Value of the request body.
|
String |
getEndpoint()
Path and query parameters of a URL.
|
Map<String,String> |
getHeaders()
Map of request-specific HTTP headers. |
Http.Method |
getHttpMethod()
HTTP method.
|
RunResponse |
getResponse(byte[] bytes,
int status)
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<RunResponse>public String getEndpoint()
RequestgetEndpoint in interface Request<RunResponse>public boolean hasBody()
RequesthasBody in interface Request<RunResponse>public String getBody()
RequestgetBody in interface Request<RunResponse>public Http.Accept getResponseType()
RequestgetResponseType in interface Request<RunResponse>Http.Acceptpublic Map<String,String> getHeaders()
RequestMap of request-specific HTTP headers.getHeaders in interface Request<RunResponse>public RunResponse getResponse(byte[] bytes, int status)
RequestgetResponse in interface Request<RunResponse>bytes - Data returned from the request.status - HTTP status code.T as specified by an individual request.Copyright © 2014. All Rights Reserved.