public class BundleSpecificDispatcherServlet
extends org.springframework.web.servlet.DispatcherServlet
implements org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
Initializes the Spring MVC infrastructure, if required, and adds NEBA-specific customizations.
Since this servlet is initialized for individual bundles in a single, global servlet container the lifecycle methods
of this servlet, e.g. HttpServletBean.init() or GenericServlet.init(ServletConfig) must not be called as they attempt to manage
a WebApplicationContext exclusive to this servlet, whereas the context is managed by the
blueprint framework on behalf of a bundle.
Instead, this servlet is initialized upon initialization of it's application context via
onApplicationEvent(ApplicationEvent).
EXCEPTION_ATTRIBUTE, FLASH_MAP_MANAGER_ATTRIBUTE, FLASH_MAP_MANAGER_BEAN_NAME, HANDLER_ADAPTER_BEAN_NAME, HANDLER_EXCEPTION_RESOLVER_BEAN_NAME, HANDLER_MAPPING_BEAN_NAME, INPUT_FLASH_MAP_ATTRIBUTE, LOCALE_RESOLVER_ATTRIBUTE, LOCALE_RESOLVER_BEAN_NAME, MULTIPART_RESOLVER_BEAN_NAME, OUTPUT_FLASH_MAP_ATTRIBUTE, PAGE_NOT_FOUND_LOG_CATEGORY, pageNotFoundLogger, REQUEST_TO_VIEW_NAME_TRANSLATOR_BEAN_NAME, THEME_RESOLVER_ATTRIBUTE, THEME_RESOLVER_BEAN_NAME, THEME_SOURCE_ATTRIBUTE, VIEW_RESOLVER_BEAN_NAME, WEB_APPLICATION_CONTEXT_ATTRIBUTE| Modifier and Type | Method and Description |
|---|---|
javax.servlet.ServletConfig |
getServletConfig() |
boolean |
hasHandlerFor(javax.servlet.http.HttpServletRequest request) |
void |
onApplicationEvent(org.springframework.context.ApplicationEvent event)
Configures the context's bean factory with MVC infrastructure beans.
|
buildLocaleContext, checkMultipart, cleanupMultipart, createDefaultStrategy, doDispatch, doService, getDefaultStrategies, getDefaultStrategy, getDefaultViewName, getHandler, getHandlerAdapter, getHandlerMappings, getMultipartResolver, getThemeSource, initStrategies, noHandlerFound, onRefresh, processHandlerException, render, resolveViewName, setCleanupAfterInclude, setDetectAllHandlerAdapters, setDetectAllHandlerExceptionResolvers, setDetectAllHandlerMappings, setDetectAllViewResolvers, setThrowExceptionIfNoHandlerFoundapplyInitializers, buildRequestAttributes, configureAndRefreshWebApplicationContext, createWebApplicationContext, createWebApplicationContext, destroy, doDelete, doGet, doOptions, doPost, doPut, doTrace, findWebApplicationContext, getContextAttribute, getContextClass, getContextConfigLocation, getContextId, getNamespace, getServletContextAttributeName, getUsernameForRequest, getWebApplicationContext, initFrameworkServlet, initServletBean, initWebApplicationContext, isEnableLoggingRequestDetails, onApplicationEvent, postProcessWebApplicationContext, processRequest, refresh, service, setApplicationContext, setContextAttribute, setContextClass, setContextConfigLocation, setContextId, setContextInitializerClasses, setContextInitializers, setDispatchOptionsRequest, setDispatchTraceRequest, setEnableLoggingRequestDetails, setNamespace, setPublishContext, setPublishEvents, setThreadContextInheritableaddRequiredProperty, createEnvironment, getEnvironment, getServletName, init, initBeanWrapper, setEnvironmentgetInitParameter, getInitParameterNames, getServletContext, getServletInfo, init, log, logpublic void onApplicationEvent(@Nonnull org.springframework.context.ApplicationEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>event - can be null, in which case the event is ignored.public javax.servlet.ServletConfig getServletConfig()
getServletConfig in interface javax.servlet.ServletgetServletConfig in class javax.servlet.GenericServletpublic boolean hasHandlerFor(javax.servlet.http.HttpServletRequest request)
request - must not be null.Copyright © 2024. All rights reserved.