public class InitializationFilter extends StartupFilter
WebConstants.SETUP_PAGE_URL
if the
Listener
wasn't able to find any runtime propertiesModifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
log |
errors, filterConfig, velocityEngine
Constructor and Description |
---|
InitializationFilter() |
Modifier and Type | Method and Description |
---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest httpRequest,
javax.servlet.http.HttpServletResponse httpResponse)
Called by
StartupFilter.doFilter(ServletRequest, ServletResponse, FilterChain) on GET requests |
protected void |
doPost(javax.servlet.http.HttpServletRequest httpRequest,
javax.servlet.http.HttpServletResponse httpResponse)
Called by
StartupFilter.doFilter(ServletRequest, ServletResponse, FilterChain) on POST requests |
protected Object |
getModel()
The model that is used as the backer for all pages in this startup wizard.
|
protected String |
getTemplatePrefix()
This string is prepended to all templateNames passed to
StartupFilter.renderTemplate(String, Map, HttpServletResponse) |
void |
init(javax.servlet.FilterConfig filterConfig) |
static boolean |
initializationRequired()
Public method that returns true if database+runtime properties initialization is required
|
protected void |
setInitializationComplete(boolean initializationComplete) |
boolean |
skipFilter(javax.servlet.http.HttpServletRequest httpRequest)
If this returns true, this filter fails early and quickly.
|
destroy, doFilter, renderTemplate, toJSONString
protected void setInitializationComplete(boolean initializationComplete)
protected void doGet(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse) throws IOException, javax.servlet.ServletException
StartupFilter.doFilter(ServletRequest, ServletResponse, FilterChain)
on GET requestsdoGet
in class StartupFilter
httpRequest
- httpResponse
- IOException
javax.servlet.ServletException
protected void doPost(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse) throws IOException, javax.servlet.ServletException
StartupFilter.doFilter(ServletRequest, ServletResponse, FilterChain)
on POST requestsdoPost
in class StartupFilter
httpRequest
- httpResponse
- IOException
javax.servlet.ServletException
protected String getTemplatePrefix()
StartupFilter
StartupFilter.renderTemplate(String, Map, HttpServletResponse)
getTemplatePrefix
in class StartupFilter
StartupFilter.getTemplatePrefix()
protected Object getModel()
StartupFilter
getModel
in class StartupFilter
StartupFilter.getModel()
public boolean skipFilter(javax.servlet.http.HttpServletRequest httpRequest)
StartupFilter
skipFilter
in class StartupFilter
org.openmrs.web.filter.StartupFilter#skipFilter()
public static boolean initializationRequired()
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
init
in class StartupFilter
javax.servlet.ServletException
Filter.init(javax.servlet.FilterConfig)
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.