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

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()
           
 
Method Summary
 void buildBindings(Definition definition)
          Creates a Binding for each PortType in the definition, and calls populateBinding with it.
 void buildServices(Definition definition)
          Creates a single Service, and calls populateService() with it.
protected  void populateBinding(Binding binding, PortType portType)
          Called after the Binding has been created, but before any sub-elements are added.
protected  void populateBindingFault(BindingFault bindingFault, Fault fault)
          Called after the BindingFault has been created.
protected  void populateBindingInput(BindingInput bindingInput, Input input)
          Called after the BindingInput has been created.
protected  void populateBindingOperation(BindingOperation bindingOperation, Operation operation)
          Called after the BindingOperation has been created, but before any sub-elements are added.
protected  void populateBindingOutput(BindingOutput bindingOutput, Output output)
          Called after the BindingOutput has been created.
protected  void populatePort(Port port, Binding binding)
          Called after the Port has been created, but before any sub-elements are added.
protected  void populateService(Service service)
          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()
Method Detail

buildBindings

public void buildBindings(Definition definition)
                   throws WSDLException
Creates a Binding for each PortType in the definition, and calls populateBinding 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:
Binding, SOAPBinding, populateBinding(javax.wsdl.Binding,javax.wsdl.PortType), BindingOperation, populateBindingOperation(javax.wsdl.BindingOperation,javax.wsdl.Operation), BindingInput, populateBindingInput(javax.wsdl.BindingInput,javax.wsdl.Input), BindingOutput, populateBindingOutput(javax.wsdl.BindingOutput,javax.wsdl.Output), BindingFault, populateBindingFault(javax.wsdl.BindingFault,javax.wsdl.Fault)

populateBinding

protected void populateBinding(Binding binding,
                               PortType portType)
                        throws WSDLException
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
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
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
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
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
Creates a single Service, and calls populateService() with it. Creates a corresponding Port for each Binding, which is passed to populatePort().

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

populateService

protected void populateService(Service service)
                        throws WSDLException
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
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-2008 The Spring Web Services Framework. All Rights Reserved.