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 ports that match the bindings. Lets subclasses populate
these through template methods. *
- Since:
- 1.5.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.commons.logging.LogLogger available to subclasses. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBindings(javax.wsdl.Definition definition) Creates aBindingfor eachPortTypein the definition, and callspopulateBinding(Definition,javax.wsdl.Binding)with it.voidaddServices(javax.wsdl.Definition definition) Creates a singleServiceif not present, and callspopulateService(Definition, Service)with it.@Nullable StringReturns the suffix to append to the port type name to obtain the binding name.@Nullable StringReturns the service name.protected voidpopulateBinding(javax.wsdl.Definition definition, javax.wsdl.Binding binding) Called after theBindinghas been created, but before any sub-elements are added.protected voidpopulateBindingFault(javax.wsdl.Definition definition, javax.wsdl.BindingFault bindingFault, javax.wsdl.Fault fault) Called after theBindingFaulthas been created.protected voidpopulateBindingInput(javax.wsdl.Definition definition, javax.wsdl.BindingInput bindingInput, javax.wsdl.Input input) Called after theBindingInputhas been created.protected voidpopulateBindingOperation(javax.wsdl.Definition definition, javax.wsdl.BindingOperation bindingOperation) Called after theBindingOperationhas been created, but before any sub-elements are added.protected voidpopulateBindingOutput(javax.wsdl.Definition definition, javax.wsdl.BindingOutput bindingOutput, javax.wsdl.Output output) Called after theBindingOutputhas been created.protected voidpopulatePort(javax.wsdl.Definition definition, javax.wsdl.Port port) Called after thePorthas been created, but before any sub-elements are added.protected voidpopulateService(javax.wsdl.Definition definition, javax.wsdl.Service service) Called after theServicehas been created, but before any sub-elements are added.voidsetBindingSuffix(String bindingSuffix) Sets the suffix to append to the port type name to obtain the binding name.voidsetServiceName(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 aBindingfor eachPortTypein the definition, and callspopulateBinding(Definition,javax.wsdl.Binding)with it. Creates aBindingOperationfor eachOperationin the port type, aBindingInputfor eachInputin the operation, etc.Calls the various
populatemethods with the created WSDL4J objects.- Specified by:
addBindingsin interfaceBindingsProvider- Parameters:
definition- the WSDL4JDefinition- Throws:
javax.wsdl.WSDLException- in case of errors- See Also:
-
populateBinding
protected void populateBinding(javax.wsdl.Definition definition, javax.wsdl.Binding binding) throws javax.wsdl.WSDLException Called after theBindinghas 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
suffixappended to it.- Parameters:
definition- the WSDL4JDefinitionbinding- the WSDL4JBinding- Throws:
javax.wsdl.WSDLException
-
populateBindingOperation
protected void populateBindingOperation(javax.wsdl.Definition definition, javax.wsdl.BindingOperation bindingOperation) throws javax.wsdl.WSDLException Called after theBindingOperationhas 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 WSDL4JDefinitionbindingOperation- 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 theBindingInputhas 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 WSDL4JDefinitionbindingInput- the WSDL4JBindingInputinput- 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 theBindingOutputhas 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 WSDL4JDefinitionbindingOutput- the WSDL4JBindingOutputoutput- 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 theBindingFaulthas 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 WSDL4JBindingFaultfault- 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 singleServiceif not present, and callspopulateService(Definition, Service)with it. Creates a correspondingPortfor eachBinding, which is passed topopulatePort(javax.wsdl.Definition,javax.wsdl.Port).- Specified by:
addServicesin 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 theServicehas 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
serviceNameproperty.- 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 thePorthas 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 WSDL4JDefinitionport- the WSDL4JPort- Throws:
javax.wsdl.WSDLException- in case of errors
-