@Configuration @ConditionalOnClass(value={org.glassfish.jersey.server.spring.SpringComponentProvider.class,javax.servlet.ServletRegistration.class}) @ConditionalOnBean(type="org.glassfish.jersey.server.ResourceConfig") @ConditionalOnWebApplication(type=SERVLET) @AutoConfigureOrder(value=-2147483648) @AutoConfigureBefore(value=DispatcherServletAutoConfiguration.class) @AutoConfigureAfter(value=JacksonAutoConfiguration.class) @EnableConfigurationProperties(value=JerseyProperties.class) public class JerseyAutoConfiguration extends Object implements org.springframework.web.context.ServletContextAware
Auto-configuration
for Jersey.Modifier and Type | Class and Description |
---|---|
static class |
JerseyAutoConfiguration.JerseyWebApplicationInitializer |
Constructor and Description |
---|
JerseyAutoConfiguration(JerseyProperties jersey,
org.glassfish.jersey.server.ResourceConfig config,
org.springframework.beans.factory.ObjectProvider<ResourceConfigCustomizer> customizers) |
Modifier and Type | Method and Description |
---|---|
JerseyApplicationPath |
jerseyApplicationPath() |
FilterRegistrationBean<org.glassfish.jersey.servlet.ServletContainer> |
jerseyFilterRegistration(JerseyApplicationPath applicationPath) |
ServletRegistrationBean<org.glassfish.jersey.servlet.ServletContainer> |
jerseyServletRegistration(JerseyApplicationPath applicationPath) |
void |
path() |
FilterRegistrationBean<org.springframework.web.filter.RequestContextFilter> |
requestContextFilter() |
void |
setServletContext(javax.servlet.ServletContext servletContext) |
public JerseyAutoConfiguration(JerseyProperties jersey, org.glassfish.jersey.server.ResourceConfig config, org.springframework.beans.factory.ObjectProvider<ResourceConfigCustomizer> customizers)
@PostConstruct public void path()
@Bean @ConditionalOnMissingFilterBean(value=org.springframework.web.filter.RequestContextFilter.class) public FilterRegistrationBean<org.springframework.web.filter.RequestContextFilter> requestContextFilter()
@Bean @ConditionalOnMissingBean public JerseyApplicationPath jerseyApplicationPath()
@Bean @ConditionalOnMissingBean(name="jerseyFilterRegistration") @ConditionalOnProperty(prefix="spring.jersey", name="type", havingValue="filter") public FilterRegistrationBean<org.glassfish.jersey.servlet.ServletContainer> jerseyFilterRegistration(JerseyApplicationPath applicationPath)
@Bean @ConditionalOnMissingBean(name="jerseyServletRegistration") @ConditionalOnProperty(prefix="spring.jersey", name="type", havingValue="servlet", matchIfMissing=true) public ServletRegistrationBean<org.glassfish.jersey.servlet.ServletContainer> jerseyServletRegistration(JerseyApplicationPath applicationPath)
public void setServletContext(javax.servlet.ServletContext servletContext)
setServletContext
in interface org.springframework.web.context.ServletContextAware
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.