Class CxfAutoConfiguration


  • @Configuration
    @ConditionalOnClass(org.apache.cxf.transport.servlet.CXFServlet.class)
    @PropertySource("classpath:spring-boot-starter-cxf.properties")
    @Import({XmlValidationConfiguration.class,SoapMessageLoggerConfiguration.class,TimeLoggingConfiguration.class})
    public class CxfAutoConfiguration
    extends java.lang.Object
    While booting up the CXF-Framework and Servlets, we don´t override the Bean "dispatcherServlet" here - because, if you want to use a second Servlet (e.g. because you need some REST-Endpoint via the @RestController Annotation), you just could use it. Otherwise, those Servlets would override themselfs.
    Author:
    jonashecht
    • Constructor Detail

      • CxfAutoConfiguration

        public CxfAutoConfiguration()
    • Method Detail

      • cxfDispatcherServlet

        @Bean
        @ConditionalOnProperty(name="endpoint.autoinit",
                               matchIfMissing=true)
        public org.springframework.boot.web.servlet.ServletRegistrationBean cxfDispatcherServlet()
      • springBus

        @Bean(name="cxf")
        @ConditionalOnProperty(name="endpoint.autoinit",
                               matchIfMissing=true)
        public org.apache.cxf.bus.spring.SpringBus springBus()
      • baseUrl

        public java.lang.String baseUrl()
        Returns:
        the base-URL, where the WebServices are configured (eihter via property or default-value)
      • serviceUrlEnding

        public java.lang.String serviceUrlEnding()
        Returns:
        the concrete Service URL-ending, where the WebService is configured according to your WSDL´s Service Name (e.g. "/Weather" when there is this inside your WSDL: <wsdl:service name="Weather">)
      • baseAndServiceEndingUrl

        public java.lang.String baseAndServiceEndingUrl()
        Returns:
        the base-URL, where the WebServices are configured (eihter via property or default-value) and appended the concrete Service URL-ending, where the WebService is configured according to your WSDL´s Service Name (e.g. "/Weather" when there is this inside your WSDL: <wsdl:service name="Weather">)