Class JerseyAutoConfiguration
- java.lang.Object
- org.springframework.boot.autoconfigure.jersey.JerseyAutoConfiguration
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.web.context.ServletContextAware
@Configuration @ConditionalOnClass(name={"org.glassfish.jersey.server.spring.SpringComponentProvider","javax.servlet.ServletRegistration"}) @ConditionalOnBean(type="org.glassfish.jersey.server.ResourceConfig") @ConditionalOnWebApplication @EnableConfigurationProperties(JerseyProperties.class) public class JerseyAutoConfiguration extends Object implements org.springframework.web.context.ServletContextAware
Auto-configuration
for Jersey.
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JerseyAutoConfiguration.JerseyWebApplicationInitializer
Constructor Summary
Constructors Constructor Description JerseyAutoConfiguration(JerseyProperties jersey, org.glassfish.jersey.server.ResourceConfig config, org.springframework.beans.factory.ObjectProvider<List<ResourceConfigCustomizer>> customizers)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.boot.web.servlet.FilterRegistrationBean
jerseyFilterRegistration()
org.springframework.boot.web.servlet.ServletRegistrationBean
jerseyServletRegistration()
void
path()
org.springframework.boot.web.servlet.FilterRegistrationBean
requestContextFilter()
void
setServletContext(javax.servlet.ServletContext servletContext)
Constructor Detail
JerseyAutoConfiguration
public JerseyAutoConfiguration(JerseyProperties jersey, org.glassfish.jersey.server.ResourceConfig config, org.springframework.beans.factory.ObjectProvider<List<ResourceConfigCustomizer>> customizers)
Method Detail
path
@PostConstruct public void path()
requestContextFilter
@Bean @ConditionalOnMissingBean public org.springframework.boot.web.servlet.FilterRegistrationBean requestContextFilter()
jerseyFilterRegistration
@Bean @ConditionalOnMissingBean(name="jerseyFilterRegistration") @ConditionalOnProperty(prefix="spring.jersey", name="type", havingValue="filter") public org.springframework.boot.web.servlet.FilterRegistrationBean jerseyFilterRegistration()
jerseyServletRegistration
@Bean @ConditionalOnMissingBean(name="jerseyServletRegistration") @ConditionalOnProperty(prefix="spring.jersey", name="type", havingValue="servlet", matchIfMissing=true) public org.springframework.boot.web.servlet.ServletRegistrationBean jerseyServletRegistration()
setServletContext
public void setServletContext(javax.servlet.ServletContext servletContext)
- Specified by:
setServletContext
in interfaceorg.springframework.web.context.ServletContextAware