public abstract class AbstractLoggingFilter extends HttpSupportFilter
Modifier and Type | Class and Description |
---|---|
static class |
AbstractLoggingFilter.Level |
HttpSupport.HttpBuilder, HttpSupport.RenderBuilder
Constructor and Description |
---|
AbstractLoggingFilter()
Creates a filter with default "INFO" level.
|
AbstractLoggingFilter(AbstractLoggingFilter.Level level)
Creates a filter with preset log level.
|
Modifier and Type | Method and Description |
---|---|
void |
before() |
AbstractLoggingFilter.Level |
getLevel() |
protected abstract String |
getMessage() |
protected void |
log(String message) |
void |
logAtLevel(AbstractLoggingFilter.Level level)
Sets a log level at run time if needed.
|
after, onException
appContext, assign, blank, context, cookie, cookies, cookieValue, encoding, exists, flash, flash, flash, flash, format, getEncoding, getFile, getHttpServletRequest, getHttpServletResponse, getId, getLocale, getMap, getMap, getRealPath, getRequestBytes, getRequestHost, getRequestInputStream, getRequestPort, getRequestProtocol, getRequestStream, getRequestString, getResponseHeaders, getRoute, header, header, header, headers, host, ipAddress, ipForwardedFor, isDelete, isGet, isHead, isPost, isPut, isXhr, jsonList, jsonMap, jsonMaps, locale, locale, logDebug, logError, logError, logError, logInfo, logWarning, logWarning, merge, method, multipartFormItems, multipartFormItems, multipartFormItems, outputStream, outputStream, outputStream, param, param, params, params, params, params1st, params1st, path, port, protocol, queryString, redirect, redirect, redirect, redirect, redirect, redirect, redirect, redirect, redirectToReferrer, redirectToReferrer, remoteAddress, remoteHost, render, requestHas, respond, sanitize, sendCookie, sendCookie, sendFile, sendFile, sendPermanentCookie, session, session, session, sessionBoolean, sessionDouble, sessionFloat, sessionHas, sessionInteger, sessionLong, sessionObject, sessionString, setContentLength, setEncoding, setLocale, setRequestEncoding, setResponseEncoding, status, streamOut, uploadedFiles, uploadedFiles, uploadedFiles, uri, url, userAgent, values, view, view, view, writer, writer, xhr
public AbstractLoggingFilter(AbstractLoggingFilter.Level level)
level
- log levelpublic AbstractLoggingFilter()
public void logAtLevel(AbstractLoggingFilter.Level level)
level
- log levelpublic final void before()
before
in class HttpSupportFilter
protected void log(String message)
public AbstractLoggingFilter.Level getLevel()
protected abstract String getMessage()
Copyright © 2019 JavaLite. All rights reserved.