com.heroku.api.request.run
Class Run

java.lang.Object
  extended by com.heroku.api.request.run.Run
All Implemented Interfaces:
Request<RunResponse>

public class Run
extends Object
implements Request<RunResponse>


Constructor Summary
Run(String app, String command)
           
Run(String app, String command, boolean attach)
           
 
Method Summary
 String getBody()
           
 String getEndpoint()
           
 Map<String,String> getHeaders()
           
 Http.Method getHttpMethod()
           
 RunResponse getResponse(byte[] bytes, int status)
           
 Http.Accept getResponseType()
           
 boolean hasBody()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Run

public Run(String app,
           String command)

Run

public Run(String app,
           String command,
           boolean attach)
Method Detail

getHttpMethod

public Http.Method getHttpMethod()
Specified by:
getHttpMethod in interface Request<RunResponse>

getEndpoint

public String getEndpoint()
Specified by:
getEndpoint in interface Request<RunResponse>

hasBody

public boolean hasBody()
Specified by:
hasBody in interface Request<RunResponse>

getBody

public String getBody()
Specified by:
getBody in interface Request<RunResponse>

getResponseType

public Http.Accept getResponseType()
Specified by:
getResponseType in interface Request<RunResponse>

getHeaders

public Map<String,String> getHeaders()
Specified by:
getHeaders in interface Request<RunResponse>

getResponse

public RunResponse getResponse(byte[] bytes,
                               int status)
Specified by:
getResponse in interface Request<RunResponse>


Copyright © 2012. All Rights Reserved.