|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.heroku.api.request.log.Log
public class Log
| Nested Class Summary | |
|---|---|
static class |
Log.LogRequestBuilder
Builder class for specifying log request parameters. |
| Constructor Summary | |
|---|---|
Log(Log.LogRequestBuilder logRequest)
|
|
Log(String app)
|
|
Log(String app,
boolean tail)
|
|
| Method Summary | |
|---|---|
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. |
LogStreamResponse |
getResponse(byte[] bytes,
int status)
Response handler. |
Http.Accept |
getResponseType()
HTTP Accept header. |
boolean |
hasBody()
Whether or not the request has a body. |
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 |
|---|
public Log(String app)
public Log(String app,
boolean tail)
public Log(Log.LogRequestBuilder logRequest)
| Method Detail |
|---|
public static Log.LogRequestBuilder logFor(String app)
public Http.Method getHttpMethod()
Request
getHttpMethod in interface Request<LogStreamResponse>public String getEndpoint()
Request
getEndpoint in interface Request<LogStreamResponse>public boolean hasBody()
Request
hasBody in interface Request<LogStreamResponse>public String getBody()
Request
getBody in interface Request<LogStreamResponse>public Http.Accept getResponseType()
Request
getResponseType in interface Request<LogStreamResponse>Http.Acceptpublic Map<String,String> getHeaders()
RequestMap of request-specific HTTP headers.
getHeaders in interface Request<LogStreamResponse>
public LogStreamResponse getResponse(byte[] bytes,
int status)
Request
getResponse in interface Request<LogStreamResponse>bytes - Data returned from the request.status - HTTP status code.
T as specified by an individual request.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||