public class HeadersLogFilter extends AbstractLoggingFilter
AbstractLoggingFilter.Level
HttpSupport.HttpBuilder, HttpSupport.RenderBuilder
Constructor and Description |
---|
HeadersLogFilter()
Creates a filter with default "INFO" level.
|
HeadersLogFilter(AbstractLoggingFilter.Level level)
Creates a filter with preset log level.
|
HeadersLogFilter(AbstractLoggingFilter.Level level,
boolean printResponseHeaders)
Creates a filter with preset log level.
|
Modifier and Type | Method and Description |
---|---|
void |
after() |
protected String |
getMessage() |
before, getLevel, log, logAtLevel
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 HeadersLogFilter(AbstractLoggingFilter.Level level)
level
- log levelpublic HeadersLogFilter(AbstractLoggingFilter.Level level, boolean printResponseHeaders)
level
- log levelprintResponseHeaders
- true to print response headers too.public HeadersLogFilter()
protected String getMessage()
getMessage
in class AbstractLoggingFilter
public void after()
after
in class HttpSupportFilter
Copyright © 2019 JavaLite. All rights reserved.