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(type=SERVLET) @AutoConfigureOrder(-2147483648) @AutoConfigureBefore(DispatcherServletAutoConfiguration.class) @AutoConfigureAfter(JacksonAutoConfiguration.class) @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<ResourceConfigCustomizer> customizers)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JerseyApplicationPath
jerseyApplicationPath()
org.springframework.boot.web.servlet.FilterRegistrationBean<org.glassfish.jersey.servlet.ServletContainer>
jerseyFilterRegistration(JerseyApplicationPath applicationPath)
org.springframework.boot.web.servlet.ServletRegistrationBean<org.glassfish.jersey.servlet.ServletContainer>
jerseyServletRegistration(JerseyApplicationPath applicationPath)
void
path()
void
setServletContext(javax.servlet.ServletContext servletContext)
Constructor Detail
JerseyAutoConfiguration
public JerseyAutoConfiguration(JerseyProperties jersey, org.glassfish.jersey.server.ResourceConfig config, org.springframework.beans.factory.ObjectProvider<ResourceConfigCustomizer> customizers)
Method Detail
path
@PostConstruct public void path()
jerseyApplicationPath
@Bean @ConditionalOnMissingBean public JerseyApplicationPath jerseyApplicationPath()
jerseyFilterRegistration
@Bean @ConditionalOnMissingBean(name="jerseyFilterRegistration") @ConditionalOnProperty(prefix="spring.jersey", name="type", havingValue="filter") public org.springframework.boot.web.servlet.FilterRegistrationBean<org.glassfish.jersey.servlet.ServletContainer> jerseyFilterRegistration(JerseyApplicationPath applicationPath)
jerseyServletRegistration
@Bean @ConditionalOnMissingBean(name="jerseyServletRegistration") @ConditionalOnProperty(prefix="spring.jersey", name="type", havingValue="servlet", matchIfMissing=true) public org.springframework.boot.web.servlet.ServletRegistrationBean<org.glassfish.jersey.servlet.ServletContainer> jerseyServletRegistration(JerseyApplicationPath applicationPath)
setServletContext
public void setServletContext(javax.servlet.ServletContext servletContext)
- Specified by:
setServletContext
in interfaceorg.springframework.web.context.ServletContextAware