Package de.codecentric.cxf.configuration
Class CxfAutoConfiguration
- java.lang.Object
-
- de.codecentric.cxf.configuration.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.ObjectWhile 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 Summary
Constructors Constructor Description CxfAutoConfiguration()
-
Method Summary
Modifier and Type Method Description java.lang.StringbaseAndServiceEndingUrl()java.lang.StringbaseUrl()org.springframework.boot.web.servlet.ServletRegistrationBeancxfDispatcherServlet()javax.xml.ws.Endpointendpoint()java.lang.ObjectseiImplementation()java.lang.StringserviceUrlEnding()voidsetUp()org.apache.cxf.bus.spring.SpringBusspringBus()WebServiceAutoDetectorwebServiceAutoDetector()javax.xml.ws.ServicewebServiceClient()
-
-
-
Method Detail
-
webServiceAutoDetector
@Bean public WebServiceAutoDetector webServiceAutoDetector() throws BootStarterCxfException
- Throws:
BootStarterCxfException
-
setUp
@PostConstruct public void setUp() throws BootStarterCxfException- Throws:
BootStarterCxfException
-
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()
-
seiImplementation
@Bean @ConditionalOnProperty(name="endpoint.autoinit", matchIfMissing=true) public java.lang.Object seiImplementation() throws BootStarterCxfException- Throws:
BootStarterCxfException
-
endpoint
@Bean @ConditionalOnProperty(name="endpoint.autoinit", matchIfMissing=true) public javax.xml.ws.Endpoint endpoint() throws BootStarterCxfException- Throws:
BootStarterCxfException
-
webServiceClient
@Bean public javax.xml.ws.Service webServiceClient() throws BootStarterCxfException- Throws:
BootStarterCxfException
-
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">)
-
-