com.heroku.api.request.stack
Constructor and Description |
---|
StackMigrate(String appName,
Heroku.Stack stack) |
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.
|
String |
getResponse(byte[] bytes,
int status)
Response handler.
|
Http.Accept |
getResponseType()
HTTP Accept header.
|
boolean |
hasBody()
Whether or not the request has a body.
|
public StackMigrate(String appName, Heroku.Stack stack)
public Http.Method getHttpMethod()
Request
getHttpMethod
in interface Request<String>
public String getEndpoint()
Request
getEndpoint
in interface Request<String>
public boolean hasBody()
Request
public String getBody()
Request
public Http.Accept getResponseType()
Request
getResponseType
in interface Request<String>
Http.Accept
public Map<String,String> getHeaders()
Request
Map
of request-specific HTTP headers.getHeaders
in interface Request<String>
public String getResponse(byte[] bytes, int status)
Request
getResponse
in interface Request<String>
bytes
- Data returned from the request.status
- HTTP status code.T
as specified by an individual request.Copyright © 2014. All Rights Reserved.