public class RequestLoggerImpl extends Object implements RequestLogger
Constructor and Description |
---|
RequestLoggerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addSql(String sql)
Adds a SQL statement generated during request processing.
|
List<String> |
getSql()
Returns list of SQL statements generated during request processing.
|
void |
log(int responseCode)
Logs exceptional response without an exception.
|
void |
log(int responseCode,
Exception exception)
Logs exceptional response with an exception.
|
void |
log(String responseBody)
Logs normal response.
|
void |
setHttpRequestAttributes(HttpRequestAttributes httpAttributes)
Sets attributes of an HTTP request.
|
void |
setRequest(Request request)
Sets request.
|
public void addSql(String sql)
addSql
in interface RequestLogger
public List<String> getSql()
getSql
in interface RequestLogger
public void log(int responseCode)
log
in interface RequestLogger
public void log(int responseCode, Exception exception)
log
in interface RequestLogger
public void log(String responseBody)
log
in interface RequestLogger
public void setHttpRequestAttributes(HttpRequestAttributes httpAttributes)
Request
creation.setHttpRequestAttributes
in interface RequestLogger
public void setRequest(Request request)
Request
implementation.setRequest
in interface RequestLogger
Copyright © 2011-2018 restSQL Project Contributors