com.heroku.api.request.ps
Class Restart

java.lang.Object
  extended by com.heroku.api.request.ps.Restart
All Implemented Interfaces:
Request<Unit>
Direct Known Subclasses:
Restart.NamedProcessRestart, Restart.ProcessTypeRestart

public class Restart
extends Object
implements Request<Unit>

TODO: Javadoc

Author:
Naaman Newbold

Nested Class Summary
static class Restart.NamedProcessRestart
           
static class Restart.ProcessTypeRestart
           
 
Constructor Summary
Restart(String appName)
           
 
Method Summary
 String getBody()
           
 String getEndpoint()
           
 Map<String,String> getHeaders()
           
 Http.Method getHttpMethod()
           
 Unit 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

Restart

public Restart(String appName)
Method Detail

getHttpMethod

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

getEndpoint

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

hasBody

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

getBody

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

getResponseType

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

getHeaders

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

getResponse

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


Copyright © 2012. All Rights Reserved.