|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.ws.wsdl.wsdl11.provider.DefaultConcretePartProvider
public class DefaultConcretePartProvider
Default implementation of the BindingsProvider
and ServicesProvider
interfaces.
binding
that matches any present portType
, and a service containing
port
s that match the binding
s. Lets subclasses populate these through template methods. *
Field Summary | |
---|---|
protected Log |
logger
Logger available to subclasses. |
Constructor Summary | |
---|---|
DefaultConcretePartProvider()
|
Method Summary | |
---|---|
void |
addBindings(Definition definition)
Creates a Binding for each PortType in the definition, and calls populateBinding(Definition,javax.wsdl.Binding) with it. |
void |
addServices(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(Definition definition,
Binding binding)
Called after the Binding has been created, but before any sub-elements are added. |
protected void |
populateBindingFault(Definition definition,
BindingFault bindingFault,
Fault fault)
Called after the BindingFault has been created. |
protected void |
populateBindingInput(Definition definition,
BindingInput bindingInput,
Input input)
Called after the BindingInput has been created. |
protected void |
populateBindingOperation(Definition definition,
BindingOperation bindingOperation)
Called after the BindingOperation has been created, but before any sub-elements are added. |
protected void |
populateBindingOutput(Definition definition,
BindingOutput bindingOutput,
Output output)
Called after the BindingOutput has been created. |
protected void |
populatePort(Definition definition,
Port port)
Called after the Port has been created, but before any sub-elements are added. |
protected void |
populateService(Definition definition,
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Log logger
Constructor Detail |
---|
public DefaultConcretePartProvider()
Method Detail |
---|
public String getServiceName()
public void setServiceName(String serviceName)
public String getBindingSuffix()
public void setBindingSuffix(String bindingSuffix)
public void addBindings(Definition definition) throws 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
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(Definition definition, Binding binding) throws 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
WSDLException
protected void populateBindingOperation(Definition definition, BindingOperation bindingOperation) throws 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
WSDLException
- in case of errorsprotected void populateBindingInput(Definition definition, BindingInput bindingInput, Input input) throws 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 errors
WSDLException
protected void populateBindingOutput(Definition definition, BindingOutput bindingOutput, Output output) throws 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 errors
WSDLException
protected void populateBindingFault(Definition definition, BindingFault bindingFault, Fault fault) throws 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 errors
WSDLException
public void addServices(Definition definition) throws 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
WSDLException
- in case of errorsprotected void populateService(Definition definition, Service service) throws 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
WSDLException
- in case of errorsprotected void populatePort(Definition definition, Port port) throws 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
WSDLException
- in case of errors
|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |