@Import(value=CustomWebMvcConfiguration.class) public class InterNodeCommunicationWebApplication extends Object
SpringApplication that provides the
inter-node communication interface to the archive server. This configuration
takes care of setting up an embedded Tomcat server and configuring Spring Web
MVC and Spring Security as well as the other components making up the web
application.| Modifier and Type | Class and Description |
|---|---|
static class |
InterNodeCommunicationWebApplication.WebMvcConfiguration
Configuration for Spring Web MVC.
|
static class |
InterNodeCommunicationWebApplication.WebSecurityConfiguration
Spring Security configuration.
|
| Constructor and Description |
|---|
InterNodeCommunicationWebApplication() |
| Modifier and Type | Method and Description |
|---|---|
ApiController |
apiController()
Creates the controller that handles requests to the inter-node
communication API.
|
CharacterEncodingFilter |
characterEncodingFilter()
Creates a filter that sets the character encoding of requests and
responses.
|
DispatcherServlet |
dispatcherServlet()
Creates the dispatcher servlet.
|
TomcatEmbeddedServletContainerFactory |
servletContainerFactory()
Creates the Tomcat servlet-container factory.
|
void |
setServerProperties(ServerProperties serverProperties)
Sets the server properties used by this configuration.
|
public InterNodeCommunicationWebApplication()
@Autowired public void setServerProperties(ServerProperties serverProperties)
serverProperties - server properties to be used by this configuration.@Bean public CharacterEncodingFilter characterEncodingFilter()
@Bean public DispatcherServlet dispatcherServlet()
ApplicationContext.@Bean public TomcatEmbeddedServletContainerFactory servletContainerFactory()
ServerProperties.getInterNodeCommunicationPort().@Bean public ApiController apiController()
Copyright © 2011–2017 aquenos GmbH. All rights reserved.