com.heroku.api.request.log
Class Log

java.lang.Object
  extended by com.heroku.api.request.log.Log
All Implemented Interfaces:
Request<LogStreamResponse>

public class Log
extends Object
implements Request<LogStreamResponse>


Nested Class Summary
static class Log.LogRequestBuilder
           
 
Constructor Summary
Log(String app)
           
Log(String app, boolean tail)
           
 
Method Summary
 String getBody()
           
 String getEndpoint()
           
 Map<String,String> getHeaders()
           
 Http.Method getHttpMethod()
           
 LogStreamResponse getResponse(byte[] bytes, int status)
           
 Http.Accept getResponseType()
           
 boolean hasBody()
           
static Log.LogRequestBuilder logFor(String app)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Log

public Log(String app)

Log

public Log(String app,
           boolean tail)
Method Detail

logFor

public static Log.LogRequestBuilder logFor(String app)

getHttpMethod

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

getEndpoint

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

hasBody

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

getBody

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

getResponseType

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

getHeaders

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

getResponse

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


Copyright © 2012. All Rights Reserved.