Class XmlValidationConfiguration


  • @Configuration
    @ConditionalOnBean(CustomFaultBuilder.class)
    @ConditionalOnProperty(name="endpoint.autoinit",
                           matchIfMissing=true)
    public class XmlValidationConfiguration
    extends java.lang.Object
    Configure extended XML-Schema validation incl. customizing of the responding SoapFaults. Could be activated by configuring your own FaultDetailBuilder as a Bean, which must implement CustomFaultBuilder. Additionally, a Bean of Type Endpoint which configures a EndpointImpl is needed.
    Author:
    Jonas Hecht
    • Field Summary

      Fields 
      Modifier and Type Field Description
      javax.xml.ws.Endpoint endpoint  
    • Method Summary

      Modifier and Type Method Description
      void configureInterceptor2Endpoint()  
      SoapFaultBuilder soapFaultBuilder()  
      org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor soapInterceptor()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • endpoint

        @Autowired
        public javax.xml.ws.Endpoint endpoint
    • Constructor Detail

      • XmlValidationConfiguration

        public XmlValidationConfiguration()
    • Method Detail

      • configureInterceptor2Endpoint

        @PostConstruct
        public void configureInterceptor2Endpoint()
      • soapInterceptor

        @Bean
        public org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor soapInterceptor()