Package ch.autumo.beetroot.handler
Class ErrorHandler
java.lang.Object
org.nanohttpd.router.RouterNanoHTTPD.DefaultStreamHandler
org.nanohttpd.router.RouterNanoHTTPD.DefaultHandler
ch.autumo.beetroot.handler.BaseHandler
ch.autumo.beetroot.handler.ErrorHandler
- All Implemented Interfaces:
Handler,RouterNanoHTTPD.UriResponder
Default error handler.
-
Nested Class Summary
Nested classes/interfaces inherited from class ch.autumo.beetroot.handler.BaseHandler
BaseHandler.IfSectionHandler -
Field Summary
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
ConstructorsConstructorDescriptionErrorHandler(org.nanohttpd.protocols.http.response.Status status, String title, String message) -
Method Summary
Modifier and TypeMethodDescriptionGet web entity (use plural, e.g.Get web resource file as it lies on the file system relatively to the started server process.org.nanohttpd.protocols.http.response.IStatusvoidrender(BeetRootHTTPSession session) Overwrite to set your template variables.booleanShow template menu?Methods 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, getHandlerClass, getHtmlData, getHtmlHead, getInsertValues, getLayout, getMessageType, getMimeType, getNewScanner, getNewScanner, getPaginator, getRedirectHandler, getSimpleManagementUserRoles, getTableExport, getTemplateEngineErrorMessage, getTemplateEngineErrorTitle, getText, getText, getTitle, getTransientFields, getUpdateSetClause, getUpdateSetClause, hasAccess, hasExternalLinks, hasNoColumnsConfig, initialize, initialValue, initValuesSize, isCurrentUserUpdate, isCustomResponse, isNoContentResponse, isNoContentResponseButRoute, isPrecisionInputType, isRetryCall, loginMarker, parseAssociatedEntities, parseUnassociatedEntities, patchInputValue, readData, readSnippetResource, redirectedMarker, refreshUserRoles, registerDisplayField, registerRoutes, renderAll, saveData, setCurrentEntityDbId, setMessageType, setVar, setVarAll, showLangMenu, uniqueFields, uniqueTest, updateDataMethods inherited from class org.nanohttpd.router.RouterNanoHTTPD.DefaultStreamHandler
delete, other, post, put
-
Constructor Details
-
ErrorHandler
-
-
Method Details
-
getEntity
Description copied from class:BaseHandlerGet web entity (use plural, e.g. 'tasks', 'users'.- Overrides:
getEntityin classBaseHandler- Returns:
- web entity
-
render
Description copied from class:BaseHandlerOverwrite to set your template variables. Only use the pure names without bracket-limiters and $-sign; e.g., In template '{$name}' -> 'name' as variable. Example:setVar("name", "Gandalf").- Overrides:
renderin classBaseHandler- Parameters:
session- HTTP session
-
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
-
getStatus
public org.nanohttpd.protocols.http.response.IStatus getStatus()- Overrides:
getStatusin classBaseHandler
-
showMenu
Description copied from class:BaseHandlerShow template menu?- Overrides:
showMenuin classBaseHandler- Parameters:
userSession- user session, possible even a temporary session from a not logged in user- Returns:
- true if a menu should be shown
-