Class HeadersLogFilter
java.lang.Object
org.javalite.activeweb.HttpSupport
org.javalite.activeweb.controller_filters.HttpSupportFilter
org.javalite.activeweb.controller_filters.AbstractLoggingFilter
org.javalite.activeweb.controller_filters.HeadersLogFilter
- All Implemented Interfaces:
RequestAccess
Use this filter to log HTTP request (and response) headers to a log system.
- Author:
- Igor Polevoy
-
Nested Class Summary
Nested classes/interfaces inherited from class org.javalite.activeweb.controller_filters.AbstractLoggingFilter
AbstractLoggingFilter.Level
Nested classes/interfaces inherited from class org.javalite.activeweb.HttpSupport
HttpSupport.HttpBuilder, HttpSupport.RenderBuilder
-
Field Summary
Fields inherited from interface org.javalite.activeweb.RequestAccess
LOGGER
-
Constructor Summary
ConstructorDescriptionCreates a filter with default "INFO" level.Creates a filter with preset log level.HeadersLogFilter(AbstractLoggingFilter.Level level, boolean printResponseHeaders)
Creates a filter with preset log level. -
Method Summary
Methods inherited from class org.javalite.activeweb.controller_filters.AbstractLoggingFilter
before, getLevel, log, logAtLevel
Methods inherited from class org.javalite.activeweb.controller_filters.HttpSupportFilter
onException
Methods inherited from class org.javalite.activeweb.HttpSupport
applicationJSON, 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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.javalite.activeweb.RequestAccess
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
-
Constructor Details
-
HeadersLogFilter
Creates a filter with preset log level. By default, response headers are not printed.- Parameters:
level
- log level
-
HeadersLogFilter
Creates a filter with preset log level.- Parameters:
level
- log levelprintResponseHeaders
- true to print response headers too.
-
HeadersLogFilter
public HeadersLogFilter()Creates a filter with default "INFO" level. By default, response headers are not printed.
-
-
Method Details
-
getMessage
- Specified by:
getMessage
in classAbstractLoggingFilter
-
after
public void after()- Overrides:
after
in classHttpSupportFilter
-