Example usage for Java org.springframework.web.servlet DispatcherServlet fields, constructors, methods, implement or subclass
The text is from its open source code.
String | LOCALE_RESOLVER_BEAN_NAME Well-known name for the LocaleResolver object in the bean factory for this namespace. |
String | HANDLER_MAPPING_BEAN_NAME Well-known name for the HandlerMapping object in the bean factory for this namespace. |
String | HANDLER_ADAPTER_BEAN_NAME Well-known name for the HandlerAdapter object in the bean factory for this namespace. |
String | HANDLER_EXCEPTION_RESOLVER_BEAN_NAME Well-known name for the HandlerExceptionResolver object in the bean factory for this namespace. |
String | VIEW_RESOLVER_BEAN_NAME Well-known name for the ViewResolver object in the bean factory for this namespace. |
String | WEB_APPLICATION_CONTEXT_ATTRIBUTE Request attribute to hold the current web application context. |
String | LOCALE_RESOLVER_ATTRIBUTE Request attribute to hold the current LocaleResolver, retrievable by views. |
String | THEME_RESOLVER_ATTRIBUTE Request attribute to hold the current ThemeResolver, retrievable by views. |
String | THEME_SOURCE_ATTRIBUTE Request attribute to hold the current ThemeSource, retrievable by views. |
String | OUTPUT_FLASH_MAP_ATTRIBUTE Name of request attribute that holds the "output" FlashMap with attributes to save for a subsequent request. |
String | EXCEPTION_ATTRIBUTE Name of request attribute that exposes an Exception resolved with an HandlerExceptionResolver but where no view was rendered (e.g. |
DispatcherServlet(WebApplicationContext webApplicationContext) Create a new DispatcherServlet with the given web application context. | |
DispatcherServlet() Create a new DispatcherServlet that will create its own internal web application context based on defaults and values provided through servlet init-params. |
WebApplicationContext | getWebApplicationContext() Return this servlet's WebApplicationContext. |
void | init(ServletConfig config) Called by the servlet container to indicate to a servlet that the servlet is being placed into service. |
void | onApplicationEvent(ContextRefreshedEvent event) Callback that receives refresh events from this servlet's WebApplicationContext. |
void | service(HttpServletRequest request, HttpServletResponse response) Override the parent class implementation in order to intercept PATCH requests. |
void | setApplicationContext(ApplicationContext applicationContext) Called by Spring via ApplicationContextAware to inject the current application context. |
void | setContextClass(Class> contextClass) Set a custom context class. |
void | setContextConfigLocation(@Nullable String contextConfigLocation) Set the context config location explicitly, instead of relying on the default location built from the namespace. |
void | setDetectAllHandlerAdapters(boolean detectAllHandlerAdapters) Set whether to detect all HandlerAdapter beans in this servlet's context. |
void | setDetectAllHandlerExceptionResolvers(boolean detectAllHandlerExceptionResolvers) Set whether to detect all HandlerExceptionResolver beans in this servlet's context. |
void | setDetectAllHandlerMappings(boolean detectAllHandlerMappings) Set whether to detect all HandlerMapping beans in this servlet's context. |
void | setDetectAllViewResolvers(boolean detectAllViewResolvers) Set whether to detect all ViewResolver beans in this servlet's context. |
void | setDispatchOptionsRequest(boolean dispatchOptionsRequest) Set whether this servlet should dispatch an HTTP OPTIONS request to the #doService method. |
void | setThrowExceptionIfNoHandlerFound(boolean throwExceptionIfNoHandlerFound) Set whether to throw a NoHandlerFoundException when no Handler was found for this request. |