@Configuration public class WebAdminConfigurer extends Object
AdminMvcConfig
,
AdminSecurityConfig
Modifier and Type | Field and Description |
---|---|
static String |
WEB_CONTEXT_ID
The ID of web context.
|
Constructor and Description |
---|
WebAdminConfigurer() |
Modifier and Type | Method and Description |
---|---|
org.springframework.boot.web.servlet.ServletRegistrationBean |
adminServlet(org.springframework.context.ConfigurableApplicationContext context,
org.springframework.web.servlet.DispatcherServlet dispatcherServlet)
Configures servlet for admin interface of OpenHub.
|
org.springframework.web.servlet.LocaleResolver |
localeResolver()
Defines default
LocaleResolver . |
org.springframework.boot.web.servlet.FilterRegistrationBean |
loggingRest()
Registers
RequestResponseLoggingFilter . |
public static final String WEB_CONTEXT_ID
@Bean public org.springframework.boot.web.servlet.FilterRegistrationBean loggingRest()
RequestResponseLoggingFilter
.@Bean @ConditionalOnMissingBean public org.springframework.web.servlet.LocaleResolver localeResolver()
LocaleResolver
.@Bean(name="WebContext") @ConditionalOnMissingBean(name="WebContext") public org.springframework.boot.web.servlet.ServletRegistrationBean adminServlet(org.springframework.context.ConfigurableApplicationContext context, org.springframework.web.servlet.DispatcherServlet dispatcherServlet)
context
- current contextdispatcherServlet
- as actually registered dispatcherDispatcherServlet
to handling RouteConstants.WEB_URI_PREFIX_MAPPING
.Copyright © 2018 Pivotal Software, Inc.. All rights reserved.