Class JerseyAutoConfiguration
java.lang.Object
org.springframework.boot.autoconfigure.jersey.JerseyAutoConfiguration
- All Implemented Interfaces:
Aware
,ServletContextAware
@AutoConfiguration(before=DispatcherServletAutoConfiguration.class,
after=JacksonAutoConfiguration.class)
@ConditionalOnClass({org.glassfish.jersey.server.spring.SpringComponentProvider.class,jakarta.servlet.ServletRegistration.class})
@ConditionalOnBean(type="org.glassfish.jersey.server.ResourceConfig")
@ConditionalOnWebApplication(type=SERVLET)
@AutoConfigureOrder(-2147483648)
@EnableConfigurationProperties(JerseyProperties.class)
public class JerseyAutoConfiguration
extends Object
implements ServletContextAware
Auto-configuration
for Jersey.- Since:
- 1.2.0
- Author:
- Dave Syer, Andy Wilkinson, EddĂș MelĂ©ndez, Stephane Nicoll
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
-
Constructor Summary
ConstructorDescriptionJerseyAutoConfiguration
(JerseyProperties jersey, org.glassfish.jersey.server.ResourceConfig config, ObjectProvider<ResourceConfigCustomizer> customizers) -
Method Summary
Modifier and TypeMethodDescriptionFilterRegistrationBean<org.glassfish.jersey.servlet.ServletContainer>
jerseyFilterRegistration
(JerseyApplicationPath applicationPath) ServletRegistrationBean<org.glassfish.jersey.servlet.ServletContainer>
jerseyServletRegistration
(JerseyApplicationPath applicationPath) void
setServletContext
(ServletContext servletContext)
-
Constructor Details
-
JerseyAutoConfiguration
public JerseyAutoConfiguration(JerseyProperties jersey, org.glassfish.jersey.server.ResourceConfig config, ObjectProvider<ResourceConfigCustomizer> customizers)
-
-
Method Details
-
requestContextFilter
@Bean @ConditionalOnMissingFilterBean(org.springframework.web.filter.RequestContextFilter.class) public FilterRegistrationBean<RequestContextFilter> requestContextFilter() -
jerseyApplicationPath
-
jerseyFilterRegistration
@Bean @ConditionalOnMissingBean(name="jerseyFilterRegistration") @ConditionalOnProperty(prefix="spring.jersey", name="type", havingValue="filter") public 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 ServletRegistrationBean<org.glassfish.jersey.servlet.ServletContainer> jerseyServletRegistration(JerseyApplicationPath applicationPath) -
setServletContext
- Specified by:
setServletContext
in interfaceServletContextAware
-