Uses of Class
ch.autumo.beetroot.BeetRootHTTPSession
Packages that use BeetRootHTTPSession
Package
Description
Main classes for the beetRoot framework, web server and servlet (when running in a web-container).
All base handlers for different purposes.
Handler an entity for properties (aka settings) generated by PLANT.
System handlers.
User handlers; covers all necessary handlers including password reset, user settings and 2FA.
Task handlers for demonstration purposes.
User handlers; covers all necessary handlers including password reset, user settings and 2FA.
Mailing component with implementations (default: jakarta, javax).
-
Uses of BeetRootHTTPSession in ch.autumo.beetroot
Methods in ch.autumo.beetroot that return BeetRootHTTPSessionModifier and TypeMethodDescriptionprotected BeetRootHTTPSessionAbstractBeetRootServlet.findOrCreateHttpSession(jakarta.servlet.http.HttpServletRequest request) Lookup an existing or a new session for the request given.Methods in ch.autumo.beetroot with parameters of type BeetRootHTTPSessionModifier and TypeMethodDescriptionSessionManager.findOrCreate(BeetRootHTTPSession session) Get an existing user session or create a new one if it doesn't exist for the nano cookie.LanguageManager.getLanguageFromHttpSession(BeetRootHTTPSession session) Get language from the header of the HTTP session and use it if available in beetRoot, otherwise return default language.LanguageManager.loadPWValidationMessages(BeetRootHTTPSession session) Load translations for password checks.LanguageManager.retrieveLanguage(BeetRootHTTPSession session) Retrieve language when user is not or possibly not logged in.org.nanohttpd.protocols.http.response.ResponseBeetRootWebServer.serve(BeetRootHTTPSession session, jakarta.servlet.http.HttpServletRequest request) Main serve method for the beetroot-engine in a servlet contextorg.nanohttpd.protocols.http.response.ResponseBeetRootWebServer.serveAtLast(BeetRootHTTPSession session) Last call before the routed website is served.static org.nanohttpd.protocols.http.response.ResponseBeetRootWebServer.serverCommandResponse(BeetRootHTTPSession session, ClientAnswer answer) static org.nanohttpd.protocols.http.response.ResponseBeetRootWebServer.serverResponse(BeetRootHTTPSession session, Class<?> handlerClass, Object... initParameter) LanguageManager.translate(String key, BeetRootHTTPSession session, Object... arguments) Translate method.LanguageManager.translateFullEscape(String key, BeetRootHTTPSession session, Object... arguments) Translate method for the template engine and for users of this framework.LanguageManager.translateTemplate(String key, BeetRootHTTPSession session, String[] values, boolean escape) Translate method for the template engine.LanguageManager.translateTemplateFullEscape(String key, BeetRootHTTPSession session, String[] values) Translate method for the template engine. -
Uses of BeetRootHTTPSession in ch.autumo.beetroot.handler
Methods in ch.autumo.beetroot.handler that return BeetRootHTTPSessionModifier and TypeMethodDescriptionfinal BeetRootHTTPSessionBaseHandler.getCurrentSession()Get current HTTP session process.Methods in ch.autumo.beetroot.handler with parameters of type BeetRootHTTPSessionModifier and TypeMethodDescriptionprotected voidBaseHandler.addCheckBox(BeetRootHTTPSession session, String columnName) Add proper logic for check-boxes.BaseHandler.deleteData(BeetRootHTTPSession session, int id) Delete data from DB.DefaultDeleteHandler.deleteData(BeetRootHTTPSession session, int id) DefaultAddHandler.extractCustomSingleInputDiv(BeetRootHTTPSession session, String val, ResultSetMetaData rsmd, String columnName, String guiColName, int idx) Overwrite this method, if you need to add a custom field (HTML 'div'); e.g. when multiple user roles are used; in this case the 'div' is more likely consisting of 2 role assignment boxes instead of a simple input-'div' or use it for any custom 'div'.DefaultEditHandler.extractCustomSingleInputDiv(BeetRootHTTPSession session, String val, ResultSetMetaData rsmd, String columnName, String guiColName, int idx) Overwrite this method, if you need to add a custom field (HTML 'div'); e.g. when multiple user roles are used; in this case the 'div' is more likely consisting of 2 role assignment boxes instead of a simple input-'div' or use it for any custom 'div'.DefaultIndexHandler.extractCustomSingleTableData(BeetRootHTTPSession session, ResultSet rsmd, String columnName, int idx, Entity entity) Overwrite this method, if you need to add a custom data; e.g. when multiple user roles are used; in this case it is more likely that you combine more values that just one field value or use it for any custom value.DefaultViewHandler.extractCustomSingleTableData(BeetRootHTTPSession session, ResultSet rsmd, String columnName, int idx, Entity entity) Overwrite this method, if you need to add a custom data; e.g. when multiple user roles are used; in this case it is more likely that you combine more values that just one field value or use it for any custom value.protected StringDefaultAddHandler.extractSingleInputDiv(BeetRootHTTPSession session, ResultSetMetaData rsmd, String columnName, String guiColName, int idx) Extract one single input div with label and input tags from result set standing at current row.protected StringDefaultAddHandler.extractSingleInputDiv(BeetRootHTTPSession session, Map<String, String> data, ResultSetMetaData rsmd, String columnName, String guiColName, int idx) Extract one single input div with label and input tags from result set standing at current row.protected StringDefaultEditHandler.extractSingleInputDiv(BeetRootHTTPSession session, ResultSet set, Entity entity, String columnName, String guiColName, int sqlType, int idx) Extract one single input div with label and input tags from result set standing at current row.protected StringDefaultEditHandler.extractSingleInputDiv(BeetRootHTTPSession session, Map<String, String> data, ResultSetMetaData rsmd, String columnName, String guiColName, int idx) Extract one single input div with label and input tags from result set standing at current row.DefaultIndexHandler.extractSingleTableData(BeetRootHTTPSession session, ResultSet set, String columnName, int idx, Entity entity) Extract one single table data field from result set standing at current row.DefaultRESTIndexHandler.extractSingleTableData(BeetRootHTTPSession session, ResultSet set, String columnName, String guiColumnName, int idx, Entity entity) Extract one single table data field from result set standing at current row.DefaultViewHandler.extractSingleTableData(BeetRootHTTPSession session, ResultSet set, String columnName, int idx, Entity entity) Extract one single table data field from result set standing at current row.BaseHandler.formatSingleValueForDB(BeetRootHTTPSession session, String val, String columnname) Format single value before update / insert into DB.DefaultAddHandler.formatSingleValueForDB(BeetRootHTTPSession session, String val, String columnname) DefaultEditHandler.formatSingleValueForDB(BeetRootHTTPSession session, String val, String columnname) DefaultEditHandler.formatSingleValueForGUI(BeetRootHTTPSession session, Object dbObject, String preformattedValue, String columnName, int sqlType, int dbIdx, Entity entity) Format value for GUI.BaseHandler.getInsertValues(BeetRootHTTPSession session) Get SQL insert values.BaseHandler.getPaginator(BeetRootHTTPSession session) Get HTML paginator code.DefaultIndexHandler.getPaginator(BeetRootHTTPSession session) Get whole index paginator.DefaultRESTIndexHandler.getPaginator(BeetRootHTTPSession session) Get whole index paginator.BaseHandler.getTableExport(BeetRootHTTPSession session) Get HTML table export code.BaseHandler.getText(BeetRootHTTPSession session, int origId) Process handlers to get the whole HTML page.BaseHandler.getUpdateSetClause(BeetRootHTTPSession session) Get SQL update set clause.BaseHandler.getUpdateSetClause(BeetRootHTTPSession session, String onOffMapName) Get SQL update set clause.voidBaseHandler.initialize(BeetRootHTTPSession session) Every handler MUST be initialized!protected booleanBaseHandler.isCurrentUserUpdate(BeetRootHTTPSession session) Is the current user being updated?booleanBaseHandler.isRetryCall(BeetRootHTTPSession session) Is it a retry call?protected voidBaseHandler.parseAssociatedEntities(StringBuilder snippet, List<Model> list, BeetRootHTTPSession session) Parse associated list.protected voidBaseHandler.parseUnassociatedEntities(StringBuilder snippet, List<Model> list, BeetRootHTTPSession session) Parse un-associated list.voidDefaultEditHandler.prepare(BeetRootHTTPSession session, Entity entity) Prepare call to to something with the entity bean if necessary.voidDefaultIndexHandler.prepare(BeetRootHTTPSession session, Entity entity) Prepare call to to something with the current entity bean processed in the list if necessary.voidDefaultRESTIndexHandler.prepare(BeetRootHTTPSession session, Entity entity) Prepare call to to something with the current entity bean processed in the list if necessary.voidDefaultViewHandler.prepare(BeetRootHTTPSession session, Entity entity) Prepare call to to something with the entity bean if necessary.BaseHandler.readData(BeetRootHTTPSession session, int id) Read data from DB that must be filled when the template is parsed.DefaultAddHandler.readData(BeetRootHTTPSession session, int id) DefaultEditHandler.readData(BeetRootHTTPSession session, int id) DefaultIndexHandler.readData(BeetRootHTTPSession session, int id) DefaultRESTIndexHandler.readData(BeetRootHTTPSession session, int id) DefaultViewHandler.readData(BeetRootHTTPSession session, int id) ExampleDownloadHandler.readData(BeetRootHTTPSession session, int id) NoContent204Handler.readData(BeetRootHTTPSession session, int id) protected final voidBaseHandler.refreshUserRoles(int currentUserId, BeetRootHTTPSession session) Refresh user roles and permissions for current user.voidBaseHandler.render(BeetRootHTTPSession session) Overwrite to set your template variables.voidError404Handler.render(BeetRootHTTPSession session) voidErrorHandler.render(BeetRootHTTPSession session) voidExampleUploadHandler.render(BeetRootHTTPSession session) voidNotImplementedHandler.render(BeetRootHTTPSession session) voidBaseHandler.renderAll(BeetRootHTTPSession session) Overwrite to set your variables for the whole HTML page.BaseHandler.saveData(BeetRootHTTPSession session) Save data to DB.DefaultAddHandler.saveData(BeetRootHTTPSession session) ExampleUploadHandler.saveData(BeetRootHTTPSession session) BaseHandler.uniqueTest(BeetRootHTTPSession session, String preSql, String operation) Check if unique fields are unique.BaseHandler.updateData(BeetRootHTTPSession session, int id) Update data in DB.DefaultEditHandler.updateData(BeetRootHTTPSession session, int id) -
Uses of BeetRootHTTPSession in ch.autumo.beetroot.handler.properties
Methods in ch.autumo.beetroot.handler.properties with parameters of type BeetRootHTTPSessionModifier and TypeMethodDescriptionPropertiesDeleteHandler.deleteData(BeetRootHTTPSession session, int id) PropertiesIndexHandler.extractSingleTableData(BeetRootHTTPSession session, ResultSet set, String columnName, int idx, Entity entity) PropertiesViewHandler.extractSingleTableData(BeetRootHTTPSession session, ResultSet set, String columnName, int idx, Entity entity) -
Uses of BeetRootHTTPSession in ch.autumo.beetroot.handler.roles
Methods in ch.autumo.beetroot.handler.roles with parameters of type BeetRootHTTPSessionModifier and TypeMethodDescriptionRolesIndexHandler.extractSingleTableData(BeetRootHTTPSession session, ResultSet set, String columnName, int idx, Entity entity) RolesViewHandler.extractSingleTableData(BeetRootHTTPSession session, ResultSet set, String columnName, int idx, Entity entity) -
Uses of BeetRootHTTPSession in ch.autumo.beetroot.handler.system
Methods in ch.autumo.beetroot.handler.system with parameters of type BeetRootHTTPSessionModifier and TypeMethodDescriptionvoidLogHandler.render(BeetRootHTTPSession session) Replaces variables template only.voidLogHandler.renderAll(BeetRootHTTPSession session) Replaces variables in the whole page. -
Uses of BeetRootHTTPSession in ch.autumo.beetroot.handler.tasks
Methods in ch.autumo.beetroot.handler.tasks with parameters of type BeetRootHTTPSessionModifier and TypeMethodDescriptionTasksIndexHandler.extractSingleTableData(BeetRootHTTPSession session, ResultSet set, String columnName, int idx, Entity entity) TasksViewHandler.extractSingleTableData(BeetRootHTTPSession session, ResultSet set, String columnName, int idx, Entity entity) -
Uses of BeetRootHTTPSession in ch.autumo.beetroot.handler.users
Methods in ch.autumo.beetroot.handler.users with parameters of type BeetRootHTTPSessionModifier and TypeMethodDescriptionExtUsersAddHandler.extractCustomSingleInputDiv(BeetRootHTTPSession session, String val, ResultSetMetaData rsmd, String columnName, String guiColName, int idx) ExtUsersEditHandler.extractCustomSingleInputDiv(BeetRootHTTPSession session, String val, ResultSetMetaData rsmd, String columnName, String guiColName, int idx) ExtUsersIndexHandler.extractSingleTableData(BeetRootHTTPSession session, ResultSet set, String columnName, int idx, Entity entity) ExtUsersViewHandler.extractSingleTableData(BeetRootHTTPSession session, ResultSet set, String columnName, int idx, Entity entity) UsersIndexHandler.extractSingleTableData(BeetRootHTTPSession session, ResultSet set, String columnName, int idx, Entity entity) UsersViewHandler.extractSingleTableData(BeetRootHTTPSession session, ResultSet set, String columnName, int idx, Entity entity) protected StringUsersViewHandler.get2FAQRImage(BeetRootHTTPSession session, User user) Return the while image tag for the 2FA QR code imagestatic StringPasswordHelper.getHTMLMessages(org.passay.RuleResult result, BeetRootHTTPSession session) Get HTML messages.PasswordHelper.getMessages(org.passay.RuleResult result, BeetRootHTTPSession session) Get messages for result.static org.passay.RuleResultPasswordHelper.isValid(String password, BeetRootHTTPSession session) Password valid?ChangeHandler.readData(BeetRootHTTPSession session, int id) NewQRCodeHandler.readData(BeetRootHTTPSession session, int id) SettingsHandler.readData(BeetRootHTTPSession session, int id) voidChangeHandler.render(BeetRootHTTPSession session) voidExtUsersAddHandler.render(BeetRootHTTPSession session) voidExtUsersEditHandler.render(BeetRootHTTPSession session) voidUsersViewHandler.render(BeetRootHTTPSession session) ExtUsersAddHandler.saveData(BeetRootHTTPSession session) UsersAddHandler.saveData(BeetRootHTTPSession session) ChangeHandler.updateData(BeetRootHTTPSession session, int id) ExtUsersEditHandler.updateData(BeetRootHTTPSession session, int id) ResetHandler.updateData(BeetRootHTTPSession session, int id) UsersEditHandler.updateData(BeetRootHTTPSession session, int id) -
Uses of BeetRootHTTPSession in ch.autumo.beetroot.mailing
Methods in ch.autumo.beetroot.mailing with parameters of type BeetRootHTTPSessionModifier and TypeMethodDescriptionprotected StringAbstractMailer.loadTemplate(String templateName, BeetRootHTTPSession session, String extension) Load mail template.protected StringAbstractMailer.loadTemplateWithVariables(String templateName, BeetRootHTTPSession session, Map<String, String> variables, String format) Load language translated templates with variables replaced.abstract voidAbstractMailer.mail(String[] to, String subject, Map<String, String> variables, String templateName, BeetRootHTTPSession session) voidJakartaMailer.mail(String[] to, String subject, Map<String, String> variables, String templateName, BeetRootHTTPSession session) voidJavaxMailer.mail(String[] to, String subject, Map<String, String> variables, String templateName, BeetRootHTTPSession session) voidMailer.mail(String[] to, String subject, Map<String, String> variables, String templateName, BeetRootHTTPSession session) Mail.protected StringAbstractMailer.replaceAllLanguageVariables(String template, BeetRootHTTPSession session, String extension) Replace language variables in loaded mail template.