Class SimpleWsdl11Definition

java.lang.Object
org.springframework.ws.wsdl.wsdl11.SimpleWsdl11Definition
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean, Wsdl11Definition, WsdlDefinition

public class SimpleWsdl11Definition extends Object implements Wsdl11Definition, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean
The default Wsdl11Definition implementation.

Allows a WSDL to be set by the wsdl property, or directly in the constructor.

Since:
1.0.0
  • Constructor Details

    • SimpleWsdl11Definition

      public SimpleWsdl11Definition()
      Create a new instance of the SimpleWsdl11Definition class.

      A subsequent call to the setWsdl(Resource) method is required.

    • SimpleWsdl11Definition

      public SimpleWsdl11Definition(org.springframework.core.io.Resource wsdlResource)
      Create a new instance of the SimpleWsdl11Definition class with the specified resource.
      Parameters:
      wsdlResource - the WSDL resource; must not be null
      Throws:
      IllegalArgumentException - if the supplied wsdlResource is null
    • SimpleWsdl11Definition

      public SimpleWsdl11Definition(org.springframework.core.io.Resource wsdlResource, @Nullable String name)
      Create a new instance of the SimpleWsdl11Definition class with the specified resource, and name.
      Parameters:
      wsdlResource - the WSDL resource; must not be null
      name - the name of the definition
      Throws:
      IllegalArgumentException - if the supplied wsdlResource is null
      Since:
      5.1.0
  • Method Details

    • setBeanName

      public void setBeanName(String name)
      Specified by:
      setBeanName in interface org.springframework.beans.factory.BeanNameAware
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • getName

      public @Nullable String getName()
      Description copied from interface: WsdlDefinition
      Return the name of the definition, if known.
      Specified by:
      getName in interface WsdlDefinition
    • setName

      public void setName(@Nullable String name)
      Set the name of this definition.
      Parameters:
      name - the name
      Since:
      5.1.0
    • getSource

      public Source getSource()
      Description copied from interface: WsdlDefinition
      Returns the Source of the definition.
      Specified by:
      getSource in interface WsdlDefinition
      Returns:
      the Source of this WSDL definition
    • setWsdl

      public void setWsdl(org.springframework.core.io.Resource wsdlResource)
      Set the WSDL resource to be exposed by calls to this instances' getSource() method.
      Parameters:
      wsdlResource - the WSDL resource
    • toString

      public String toString()
      Overrides:
      toString in class Object