public class DefaultConcretePartProvider extends Object implements BindingsProvider, ServicesProvider
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. *
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
logger
Logger available to subclasses.
|
Constructor and Description |
---|
DefaultConcretePartProvider() |
Modifier and Type | Method and Description |
---|---|
void |
addBindings(javax.wsdl.Definition definition)
Creates a
Binding for each PortType in the definition, and calls populateBinding(Definition,javax.wsdl.Binding) with it. |
void |
addServices(javax.wsdl.Definition definition)
Creates a single
Service if not present, and calls populateService(Definition, Service) with it. |
String |
getBindingSuffix()
Returns the suffix to append to the port type name to obtain the binding name.
|
String |
getServiceName()
Returns the service name.
|
protected void |
populateBinding(javax.wsdl.Definition definition,
javax.wsdl.Binding binding)
Called after the
Binding 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 the
BindingFault has been created. |
protected void |
populateBindingInput(javax.wsdl.Definition definition,
javax.wsdl.BindingInput bindingInput,
javax.wsdl.Input input)
Called after the
BindingInput has been created. |
protected void |
populateBindingOperation(javax.wsdl.Definition definition,
javax.wsdl.BindingOperation bindingOperation)
Called after the
BindingOperation 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 the
BindingOutput has been created. |
protected void |
populatePort(javax.wsdl.Definition definition,
javax.wsdl.Port port)
Called after the
Port has been created, but before any sub-elements are added. |
protected void |
populateService(javax.wsdl.Definition definition,
javax.wsdl.Service service)
Called after the
Service 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.
|
protected final org.apache.commons.logging.Log logger
public String getServiceName()
public void setServiceName(String serviceName)
public String getBindingSuffix()
public void setBindingSuffix(String bindingSuffix)
public void addBindings(javax.wsdl.Definition definition) throws javax.wsdl.WSDLException
Binding
for each PortType
in the definition, and calls populateBinding(Definition,javax.wsdl.Binding)
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.
addBindings
in interface BindingsProvider
definition
- the WSDL4J Definition
javax.wsdl.WSDLException
- in case of errorspopulateBinding(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)
protected void populateBinding(javax.wsdl.Definition definition, javax.wsdl.Binding binding) throws javax.wsdl.WSDLException
Binding
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.
definition
- the WSDL4J Definition
binding
- the WSDL4J Binding
javax.wsdl.WSDLException
protected void populateBindingOperation(javax.wsdl.Definition definition, javax.wsdl.BindingOperation bindingOperation) throws javax.wsdl.WSDLException
BindingOperation
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.
definition
- the WSDL4J Definition
bindingOperation
- the WSDL4J BindingOperation
javax.wsdl.WSDLException
- in case of errorsprotected void populateBindingInput(javax.wsdl.Definition definition, javax.wsdl.BindingInput bindingInput, javax.wsdl.Input input) throws javax.wsdl.WSDLException
BindingInput
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.
definition
- the WSDL4J Definition
bindingInput
- the WSDL4J BindingInput
input
- the corresponding WSDL4J Input
@throws WSDLException in case of errorsjavax.wsdl.WSDLException
protected void populateBindingOutput(javax.wsdl.Definition definition, javax.wsdl.BindingOutput bindingOutput, javax.wsdl.Output output) throws javax.wsdl.WSDLException
BindingOutput
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.
definition
- the WSDL4J Definition
bindingOutput
- the WSDL4J BindingOutput
output
- the corresponding WSDL4J Output
@throws WSDLException in case of errorsjavax.wsdl.WSDLException
protected void populateBindingFault(javax.wsdl.Definition definition, javax.wsdl.BindingFault bindingFault, javax.wsdl.Fault fault) throws javax.wsdl.WSDLException
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.
bindingFault
- the WSDL4J BindingFault
fault
- the corresponding WSDL4J Fault
@throws WSDLException in case of errorsjavax.wsdl.WSDLException
public void addServices(javax.wsdl.Definition definition) throws javax.wsdl.WSDLException
Service
if not present, and calls populateService(Definition, Service)
with it.
Creates a corresponding Port
for each Binding
, which is passed to populatePort(javax.wsdl.Definition,javax.wsdl.Port)
.addServices
in interface ServicesProvider
definition
- the WSDL4J Definition
javax.wsdl.WSDLException
- in case of errorsprotected void populateService(javax.wsdl.Definition definition, javax.wsdl.Service service) throws javax.wsdl.WSDLException
Service
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.
service
- the WSDL4J Service
javax.wsdl.WSDLException
- in case of errorsprotected void populatePort(javax.wsdl.Definition definition, javax.wsdl.Port port) throws javax.wsdl.WSDLException
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 binding name.
definition
- the WSDL4J Definition
port
- the WSDL4J Port
javax.wsdl.WSDLException
- in case of errorsCopyright © 2020 Pivotal Software. All rights reserved.