Spring Web Services Framework

org.springframework.ws.wsdl.wsdl11.builder
Class AbstractBindingWsdl4jDefinitionBuilder

java.lang.Object
  extended by org.springframework.ws.wsdl.wsdl11.builder.AbstractWsdl4jDefinitionBuilder
      extended by org.springframework.ws.wsdl.wsdl11.builder.AbstractBindingWsdl4jDefinitionBuilder
All Implemented Interfaces:
Wsdl11DefinitionBuilder
Direct Known Subclasses:
AbstractSoap11Wsdl4jDefinitionBuilder, AbstractSoap12Wsdl4jDefinitionBuilder

Deprecated. as of Spring Web Services 1.5: superseded by DefaultWsdl11Definition and the org.springframework.ws.wsdl.wsdl11.provider package

public abstract class AbstractBindingWsdl4jDefinitionBuilder
extends AbstractWsdl4jDefinitionBuilder

Abstract base class for Wsdl11DefinitionBuilder implementations that use WSDL4J and contain a concrete part. Creates a binding that matches any present portType, and a service containing ports that match the bindings. Lets subclasses populate these through template methods.

Since:
1.0.0
Author:
Arjen Poutsma

Field Summary
 
Fields inherited from class org.springframework.ws.wsdl.wsdl11.builder.AbstractWsdl4jDefinitionBuilder
logger
 
Constructor Summary
AbstractBindingWsdl4jDefinitionBuilder()
          Deprecated.  
 
Method Summary
 void buildBindings(Definition definition)
          Deprecated. Creates a Binding for each PortType in the definition, and calls populateBinding(Binding, PortType) with it.
 void buildServices(Definition definition)
          Deprecated. Creates a single Service, and calls populateService(Service) with it.
protected  void populateBinding(Binding binding, PortType portType)
          Deprecated. Called after the Binding has been created, but before any sub-elements are added.
protected  void populateBindingFault(BindingFault bindingFault, Fault fault)
          Deprecated. Called after the BindingFault has been created.
protected  void populateBindingInput(BindingInput bindingInput, Input input)
          Deprecated. Called after the BindingInput has been created.
protected  void populateBindingOperation(BindingOperation bindingOperation, Operation operation)
          Deprecated. Called after the BindingOperation has been created, but before any sub-elements are added.
protected  void populateBindingOutput(BindingOutput bindingOutput, Output output)
          Deprecated. Called after the BindingOutput has been created.
protected  void populatePort(Port port, Binding binding)
          Deprecated. Called after the Port has been created, but before any sub-elements are added.
protected  void populateService(Service service)
          Deprecated. Called after the Binding has been created, but before any sub-elements are added.
 
Methods inherited from class org.springframework.ws.wsdl.wsdl11.builder.AbstractWsdl4jDefinitionBuilder
buildBindings, buildDefinition, buildImports, buildImports, buildMessages, buildMessages, buildPortTypes, buildPortTypes, buildServices, buildTypes, buildTypes, createExtension, getDefinition, populateDefinition, populateExtensionRegistry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractBindingWsdl4jDefinitionBuilder

public AbstractBindingWsdl4jDefinitionBuilder()
Deprecated. 
Method Detail

buildBindings

public void buildBindings(Definition definition)
                   throws WSDLException
Deprecated. 
Creates a Binding for each PortType in the definition, and calls populateBinding(Binding, PortType) with it. Creates a BindingOperation for each Operation in the port type, a BindingInput for each Input in the operation, etc.

Calls the various populate methods with the created WSDL4J objects.

Specified by:
buildBindings in class AbstractWsdl4jDefinitionBuilder
Parameters:
definition - the WSDL4J Definition
Throws:
WSDLException - in case of errors
See Also:
populateBinding(Binding, PortType), populateBindingOperation(BindingOperation, Operation), populateBindingInput(BindingInput, Input), populateBindingOutput(BindingOutput, Output), populateBindingFault(BindingFault, Fault)

populateBinding

protected void populateBinding(Binding binding,
                               PortType portType)
                        throws WSDLException
Deprecated. 
Called after the Binding has been created, but before any sub-elements are added. Subclasses can implement this method to define the binding name, or add extensions to it.

Default implementation sets the binding name to the port type name with the suffix Binding appended to it.

Parameters:
binding - the WSDL4J Binding
portType - the corresponding PortType
Throws:
WSDLException - in case of errors

populateBindingOperation

protected void populateBindingOperation(BindingOperation bindingOperation,
                                        Operation operation)
                                 throws WSDLException
Deprecated. 
Called after the BindingOperation has been created, but before any sub-elements are added. Subclasses can implement this method to define the binding name, or add extensions to it.

Default implementation sets the name of the binding operation to the name of the operation.

Parameters:
bindingOperation - the WSDL4J BindingOperation
operation - the corresponding WSDL4J Operation
Throws:
WSDLException - in case of errors

populateBindingInput

protected void populateBindingInput(BindingInput bindingInput,
                                    Input input)
                             throws WSDLException
Deprecated. 
Called after the BindingInput has been created. Subclasses can implement this method to define the name, or add extensions to it.

Default implementation set the name of the binding input to the name of the input.

Parameters:
bindingInput - the WSDL4J BindingInput
input - the corresponding WSDL4J Input
Throws:
WSDLException - in case of errors

populateBindingOutput

protected void populateBindingOutput(BindingOutput bindingOutput,
                                     Output output)
                              throws WSDLException
Deprecated. 
Called after the BindingOutput has been created. Subclasses can implement this method to define the name, or add extensions to it.

Default implementation set the name of the binding output to the name of the output.

Parameters:
bindingOutput - the WSDL4J BindingOutput
output - the corresponding WSDL4J Output
Throws:
WSDLException - in case of errors

populateBindingFault

protected void populateBindingFault(BindingFault bindingFault,
                                    Fault fault)
                             throws WSDLException
Deprecated. 
Called after the BindingFault has been created. Subclasses can implement this method to define the name, or add extensions to it.

Default implementation set the name of the binding fault to the name of the fault.

Parameters:
bindingFault - the WSDL4J BindingFault
fault - the corresponding WSDL4J Fault
Throws:
WSDLException - in case of errors

buildServices

public void buildServices(Definition definition)
                   throws WSDLException
Deprecated. 
Creates a single Service, and calls populateService(Service) with it. Creates a corresponding Port for each Binding, which is passed to populatePort(Port, Binding).

Specified by:
buildServices in class AbstractWsdl4jDefinitionBuilder
Parameters:
definition - the WSDL4J Definition
Throws:
WSDLException - in case of errors
See Also:
populatePort(Port, Binding)

populateService

protected void populateService(Service service)
                        throws WSDLException
Deprecated. 
Called after the Binding has been created, but before any sub-elements are added. Subclasses can implement this method to define the binding name, or add extensions to it.

Default implementation is empty.

Parameters:
service - the WSDL4J Service
Throws:
WSDLException - in case of errors

populatePort

protected void populatePort(Port port,
                            Binding binding)
                     throws WSDLException
Deprecated. 
Called after the Port has been created, but before any sub-elements are added. Subclasses can implement this method to define the port name, or add extensions to it.

Default implementation sets the port name to the port type name with the suffix Port appended to it.

Parameters:
port - the WSDL4J Port
binding - the corresponding WSDL4J Binding
Throws:
WSDLException - in case of errors

Spring Web Services Framework

Copyright © 2005-2010 The Spring Web Services Framework. All Rights Reserved.