public abstract class AbstractLoggingFilter extends HttpSupportFilter
Modifier and Type | Class and Description |
---|---|
static class |
AbstractLoggingFilter.Level |
HttpSupport.HttpBuilder, HttpSupport.RenderBuilder
LOGGER
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
assign, blank, encoding, flash, flash, flash, flash, getEncoding, getFile, getHttpServletRequest, getHttpServletResponse, getMap, getMap, getRealPath, getRequestBytes, getRequestInputStream, getRequestStream, getRequestString, getResponseHeaders, header, header, jsonList, jsonMap, jsonMaps, locale, logDebug, logError, logError, logError, logInfo, logWarning, logWarning, merge, multipartForm, multipartForm, multipartFormItems, multipartFormItems, multipartFormItems, outputStream, outputStream, outputStream, redirect, redirect, redirect, redirect, redirect, redirect, redirect, redirect, redirectToReferrer, redirectToReferrer, render, respond, sanitize, sendCookie, sendCookie, sendFile, sendFile, sendPermanentCookie, session, session, sessionBoolean, sessionDouble, sessionFloat, sessionHas, sessionInteger, sessionLong, sessionObject, sessionString, setContentLength, setEncoding, setLocale, setRequestEncoding, setResponseEncoding, status, streamOut, uploadedFiles, uploadedFiles, uploadedFiles, values, view, view, view, writer, writer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
appContext, context, cookie, cookies, cookieValue, exists, format, getId, getLocale, getRequestHost, getRequestPort, getRequestProperties, getRequestProtocol, getRoute, header, headers, host, ipAddress, ipForwardedFor, isDelete, isGet, isHead, isMethod, isMultipartContent, isPost, isPut, isXhr, locale, method, param, param, params, params, params, params1st, params1st, path, port, protocol, queryString, remoteAddress, remoteHost, requestHas, servletPath, session, session, uri, url, userAgent, 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 © 2020 JavaLite. All rights reserved.