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 RequestLoggerpublic List<String> getSql()
getSql in interface RequestLoggerpublic void log(int responseCode)
log in interface RequestLoggerpublic void log(int responseCode,
Exception exception)
log in interface RequestLoggerpublic void log(String responseBody)
log in interface RequestLoggerpublic void setHttpRequestAttributes(HttpRequestAttributes httpAttributes)
Request
creation.setHttpRequestAttributes in interface RequestLoggerpublic void setRequest(Request request)
Request implementation.setRequest in interface RequestLoggerCopyright © 2011-2018 restSQL Project Contributors