Class LogHandler
java.lang.Object
org.nanohttpd.router.RouterNanoHTTPD.DefaultStreamHandler
org.nanohttpd.router.RouterNanoHTTPD.DefaultHandler
ch.autumo.beetroot.handler.BaseHandler
ch.autumo.beetroot.handler.NoConfigHandler
ch.autumo.beetroot.handler.system.LogHandler
- All Implemented Interfaces:
Handler,RouterNanoHTTPD.UriResponder
Log extended handler.
-
Nested Class Summary
Nested classes/interfaces inherited from class ch.autumo.beetroot.handler.BaseHandler
BaseHandler.IfSectionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDefault log size .static final intIf there's a refresh time (tag: {$refreshTime}), this is the default value in seconds.static final intMinimum refresh rate for log refresh.Fields inherited from class ch.autumo.beetroot.handler.BaseHandler
action, columns, emptyBean, entity, htmlData, htmlHead, initialValues, insertServletNameInTemplateRefs, MSG_TYPE_ERR, MSG_TYPE_INFO, MSG_TYPE_WARN, PRECISION_INPUT_TYPES, servletName, TAG_PREFIX_LANG, transientFields, uniqueFields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformat(org.apache.logging.log4j.core.LogEvent event) Overwrite if you want to have a special layout for this handler.Get web resource file as it lies on the file system relatively to the started server process.Page title show left above the navigation area.voidrender(BeetRootHTTPSession session) Replaces variables template only.voidrenderAll(BeetRootHTTPSession session) Replaces variables in the whole page.Methods inherited from class ch.autumo.beetroot.handler.NoConfigHandler
hasNoColumnsConfigMethods inherited from class ch.autumo.beetroot.handler.BaseHandler
addCheckBox, addErrorMessage, addHtmlDataLine, addHtmlHeadLine, addSuccessMessage, addWarningMessage, columns, columnsSize, deleteData, formatSingleValueForDB, get, getBeanClass, getColumn, getColumnsForSql, getColumnsForSql, getCurrentEntityDbId, getCurrentSession, getCustomizedExceptionInformation, getData, getEmptyBean, getEntity, getHandlerClass, getHtmlData, getHtmlHead, getInsertValues, getMessageType, getMimeType, getNewScanner, getNewScanner, getPaginator, getRedirectHandler, getSimpleManagementUserRoles, getStatus, getTableExport, getTemplateEngineErrorMessage, getTemplateEngineErrorTitle, getText, getText, getTransientFields, getUpdateSetClause, getUpdateSetClause, hasAccess, hasExternalLinks, initialize, initialValue, initValuesSize, isCurrentUserUpdate, isCustomResponse, isNoContentResponse, isNoContentResponseButRoute, isPrecisionInputType, isRetryCall, loginMarker, parseAssociatedEntities, parseUnassociatedEntities, patchInputValue, readData, readSnippetResource, redirectedMarker, refreshUserRoles, registerDisplayField, registerRoutes, saveData, setCurrentEntityDbId, setMessageType, setVar, setVarAll, showLangMenu, showMenu, uniqueFields, uniqueTest, updateDataMethods inherited from class org.nanohttpd.router.RouterNanoHTTPD.DefaultStreamHandler
delete, other, post, put
-
Field Details
-
DEFAULT_LOG_SIZE
public static final int DEFAULT_LOG_SIZEDefault log size .- See Also:
-
DEFAULT_REFRESH_TIME
public static final int DEFAULT_REFRESH_TIMEIf there's a refresh time (tag: {$refreshTime}), this is the default value in seconds.- See Also:
-
MINIMUM_REFRESH_TIME
public static final int MINIMUM_REFRESH_TIMEMinimum refresh rate for log refresh.- See Also:
-
-
Constructor Details
-
LogHandler
- Parameters:
entity-
-
-
Method Details
-
renderAll
Replaces variables in the whole page.- Overrides:
renderAllin classBaseHandler- Parameters:
session- HTTP session
-
render
Replaces variables template only.- Overrides:
renderin classBaseHandler- Parameters:
session- HTTP session
-
format
-
getTitle
Description copied from class:BaseHandlerPage title show left above the navigation area. If not overwritten, the entity name is shown starting with an upper-case letter!- Overrides:
getTitlein classBaseHandler- Parameters:
userSession- user session- Returns:
- page title
-
getResource
Description copied from class:BaseHandlerGet web resource file as it lies on the file system relatively to the started server process.- Specified by:
getResourcein interfaceHandler- Specified by:
getResourcein classBaseHandler- Returns:
- web resource
-
getLayout
Description copied from class:BaseHandlerOverwrite if you want to have a special layout for this handler.- Overrides:
getLayoutin classBaseHandler- Parameters:
userSession- user session- Returns:
- layout file path; example: 'web/html/:lang/blocks/mylayout.html'
-