Class DefaultConcretePartProvider
- All Implemented Interfaces:
BindingsProvider
,ServicesProvider
- Direct Known Subclasses:
Soap11Provider
,Soap12Provider
BindingsProvider
and ServicesProvider
interfaces.
Creates a binding
that matches any present portType
, and a service containing port
s that
match the binding
s. Lets subclasses populate these through template methods. *
- Since:
- 1.5.0
- Author:
- Arjen Poutsma
-
Field Summary
Modifier and TypeFieldDescriptionprotected final org.apache.commons.logging.Log
Logger available to subclasses. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBindings
(javax.wsdl.Definition definition) Creates aBinding
for eachPortType
in the definition, and callspopulateBinding(Definition,javax.wsdl.Binding)
with it.void
addServices
(javax.wsdl.Definition definition) Creates a singleService
if not present, and callspopulateService(Definition, Service)
with it.Returns the suffix to append to the port type name to obtain the binding name.Returns the service name.protected void
populateBinding
(javax.wsdl.Definition definition, javax.wsdl.Binding binding) Called after theBinding
has been created, but before any sub-elements are added.protected void
populateBindingFault
(javax.wsdl.Definition definition, javax.wsdl.BindingFault bindingFault, javax.wsdl.Fault fault) Called after theBindingFault
has been created.protected void
populateBindingInput
(javax.wsdl.Definition definition, javax.wsdl.BindingInput bindingInput, javax.wsdl.Input input) Called after theBindingInput
has been created.protected void
populateBindingOperation
(javax.wsdl.Definition definition, javax.wsdl.BindingOperation bindingOperation) Called after theBindingOperation
has been created, but before any sub-elements are added.protected void
populateBindingOutput
(javax.wsdl.Definition definition, javax.wsdl.BindingOutput bindingOutput, javax.wsdl.Output output) Called after theBindingOutput
has been created.protected void
populatePort
(javax.wsdl.Definition definition, javax.wsdl.Port port) Called after thePort
has been created, but before any sub-elements are added.protected void
populateService
(javax.wsdl.Definition definition, javax.wsdl.Service service) Called after theService
has been created, but before any sub-elements are added.void
setBindingSuffix
(String bindingSuffix) Sets the suffix to append to the port type name to obtain the binding name.void
setServiceName
(String serviceName) Sets the service name.
-
Field Details
-
logger
protected final org.apache.commons.logging.Log loggerLogger available to subclasses.
-
-
Constructor Details
-
DefaultConcretePartProvider
public DefaultConcretePartProvider()
-
-
Method Details
-
getServiceName
Returns the service name. -
setServiceName
Sets the service name. -
getBindingSuffix
Returns the suffix to append to the port type name to obtain the binding name. -
setBindingSuffix
Sets the suffix to append to the port type name to obtain the binding name. -
addBindings
public void addBindings(javax.wsdl.Definition definition) throws javax.wsdl.WSDLException Creates aBinding
for eachPortType
in the definition, and callspopulateBinding(Definition,javax.wsdl.Binding)
with it. Creates aBindingOperation
for eachOperation
in the port type, aBindingInput
for eachInput
in the operation, etc.Calls the various
populate
methods with the created WSDL4J objects.- Specified by:
addBindings
in interfaceBindingsProvider
- Parameters:
definition
- the WSDL4JDefinition
- Throws:
javax.wsdl.WSDLException
- in case of errors- See Also:
-
populateBinding(Definition,javax.wsdl.Binding)
populateBindingOperation(Definition,javax.wsdl.BindingOperation)
populateBindingInput(Definition,javax.wsdl.BindingInput,javax.wsdl.Input)
populateBindingOutput(Definition,javax.wsdl.BindingOutput,javax.wsdl.Output)
populateBindingFault(Definition,javax.wsdl.BindingFault,javax.wsdl.Fault)
-
populateBinding
protected void populateBinding(javax.wsdl.Definition definition, javax.wsdl.Binding binding) throws javax.wsdl.WSDLException Called after theBinding
has been created, but before any sub-elements are added. Subclasses can override 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
appended to it.- Parameters:
definition
- the WSDL4JDefinition
binding
- the WSDL4JBinding
- Throws:
javax.wsdl.WSDLException
-
populateBindingOperation
protected void populateBindingOperation(javax.wsdl.Definition definition, javax.wsdl.BindingOperation bindingOperation) throws javax.wsdl.WSDLException Called after theBindingOperation
has been created, but before any sub-elements are added. Subclasses can override 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:
definition
- the WSDL4JDefinition
bindingOperation
- the WSDL4JBindingOperation
- Throws:
javax.wsdl.WSDLException
- in case of errors
-
populateBindingInput
protected void populateBindingInput(javax.wsdl.Definition definition, javax.wsdl.BindingInput bindingInput, javax.wsdl.Input input) throws javax.wsdl.WSDLException Called after theBindingInput
has been created. Subclasses can override 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:
definition
- the WSDL4JDefinition
bindingInput
- the WSDL4JBindingInput
input
- the corresponding WSDL4JInput
@throws WSDLException in case of errors- Throws:
javax.wsdl.WSDLException
-
populateBindingOutput
protected void populateBindingOutput(javax.wsdl.Definition definition, javax.wsdl.BindingOutput bindingOutput, javax.wsdl.Output output) throws javax.wsdl.WSDLException Called after theBindingOutput
has been created. Subclasses can override this method to define the name, or add extensions to it.Default implementation sets the name of the binding output to the name of the output.
- Parameters:
definition
- the WSDL4JDefinition
bindingOutput
- the WSDL4JBindingOutput
output
- the corresponding WSDL4JOutput
@throws WSDLException in case of errors- Throws:
javax.wsdl.WSDLException
-
populateBindingFault
protected void populateBindingFault(javax.wsdl.Definition definition, javax.wsdl.BindingFault bindingFault, javax.wsdl.Fault fault) throws javax.wsdl.WSDLException Called after theBindingFault
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 WSDL4JBindingFault
fault
- the corresponding WSDL4JFault
@throws WSDLException in case of errors- Throws:
javax.wsdl.WSDLException
-
addServices
public void addServices(javax.wsdl.Definition definition) throws javax.wsdl.WSDLException Creates a singleService
if not present, and callspopulateService(Definition, Service)
with it. Creates a correspondingPort
for eachBinding
, which is passed topopulatePort(javax.wsdl.Definition,javax.wsdl.Port)
.- Specified by:
addServices
in interfaceServicesProvider
- Parameters:
definition
- the WSDL4JDefinition
- Throws:
javax.wsdl.WSDLException
- in case of errors
-
populateService
protected void populateService(javax.wsdl.Definition definition, javax.wsdl.Service service) throws javax.wsdl.WSDLException Called after theService
has been created, but before any sub-elements are added. Subclasses can implement this method to define the service name, or add extensions to it.Default implementation sets the name to the
serviceName
property.- Parameters:
service
- the WSDL4JService
- Throws:
javax.wsdl.WSDLException
- in case of errors
-
populatePort
protected void populatePort(javax.wsdl.Definition definition, javax.wsdl.Port port) throws javax.wsdl.WSDLException Called after thePort
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 binding name.
- Parameters:
definition
- the WSDL4JDefinition
port
- the WSDL4JPort
- Throws:
javax.wsdl.WSDLException
- in case of errors
-