public class Log extends Object implements Request<LogStreamResponse>
| Modifier and Type | Class and Description |
|---|---|
static class |
Log.LogRequestBuilder
Builder class for specifying log request parameters.
|
| Constructor and Description |
|---|
Log(Log.LogRequestBuilder logRequest) |
Log(String app) |
Log(String app,
boolean tail) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBody()
Value of the request body.
|
Map<String,Object> |
getBodyAsMap()
Value of the request body as a Map.
|
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,
Map<String,String> responseHeaders)
Response handler.
|
Http.Accept |
getResponseType()
HTTP Accept header.
|
boolean |
hasBody()
Whether or not the request has a body.
|
static Log.LogRequestBuilder |
logFor(String app) |
public Log(String app)
public Log(String app, boolean tail)
public Log(Log.LogRequestBuilder logRequest)
public static Log.LogRequestBuilder logFor(String app)
public Http.Method getHttpMethod()
RequestgetHttpMethod in interface Request<LogStreamResponse>public String getEndpoint()
RequestgetEndpoint in interface Request<LogStreamResponse>public boolean hasBody()
RequesthasBody in interface Request<LogStreamResponse>public String getBody()
RequestgetBody in interface Request<LogStreamResponse>public Map<String,Object> getBodyAsMap()
RequestgetBodyAsMap in interface Request<LogStreamResponse>public Http.Accept getResponseType()
RequestgetResponseType 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, Map<String,String> responseHeaders)
RequestgetResponse in interface Request<LogStreamResponse>bytes - Data returned from the request.status - HTTP status code.T as specified by an individual request.Copyright © 2018. All rights reserved.