Package com.flowable.spring.boot.rest
Class BaseRestApiConfiguration
java.lang.Object
com.flowable.spring.boot.rest.BaseRestApiConfiguration
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
- Direct Known Subclasses:
RestApiAutoConfiguration.AppEngineRestApiConfiguration
,RestApiAutoConfiguration.CmmnEngineRestApiConfiguration
,RestApiAutoConfiguration.ContentEngineRestApiConfiguration
,RestApiAutoConfiguration.CoreRestApiConfiguration
,RestApiAutoConfiguration.DmnEngineRestApiConfiguration
,RestApiAutoConfiguration.EventRegistryRestApiConfiguration
,RestApiAutoConfiguration.ExternalJobRestApiConfiguration
,RestApiAutoConfiguration.FormEngineRestApiConfiguration
,RestApiAutoConfiguration.IdmEngineRestApiConfiguration
,RestApiAutoConfiguration.ProcessEngineRestApiConfiguration
,RestApiAutoConfiguration.ReportingRestApiConfiguration
public class BaseRestApiConfiguration
extends java.lang.Object
implements org.springframework.context.ApplicationContextAware
A common base rest api configuration for registering custom servlets.
- Author:
- Filip Hrisafov
-
Field Summary
Fields Modifier and Type Field Description protected org.springframework.context.ApplicationContext
applicationContext
protected javax.servlet.MultipartConfigElement
multipartConfigElement
-
Constructor Summary
Constructors Constructor Description BaseRestApiConfiguration()
-
Method Summary
Modifier and Type Method Description protected org.springframework.boot.web.servlet.ServletRegistrationBean<org.springframework.web.servlet.DispatcherServlet>
registerServlet(FlowableServlet servletProperties, java.lang.Class<?> baseConfig)
void
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
void
setMultipartConfigElement(javax.servlet.MultipartConfigElement multipartConfigElement)
-
Field Details
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext -
multipartConfigElement
protected javax.servlet.MultipartConfigElement multipartConfigElement
-
-
Constructor Details
-
BaseRestApiConfiguration
public BaseRestApiConfiguration()
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)- Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
-
registerServlet
protected org.springframework.boot.web.servlet.ServletRegistrationBean<org.springframework.web.servlet.DispatcherServlet> registerServlet(FlowableServlet servletProperties, java.lang.Class<?> baseConfig) -
setMultipartConfigElement
@Autowired(required=false) public void setMultipartConfigElement(javax.servlet.MultipartConfigElement multipartConfigElement)
-