public abstract class AbstractPortTypesProvider extends Object implements PortTypesProvider
PortTypesProvider implementations.| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger
Logger available to subclasses.
|
| Constructor and Description |
|---|
AbstractPortTypesProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPortTypes(javax.wsdl.Definition definition)
Creates a single
PortType, and calls populatePortType(Definition, PortType) with it. |
protected abstract String |
getOperationName(javax.wsdl.Message message)
Template method that returns the name of the operation coupled to the given
Message. |
protected javax.wsdl.OperationType |
getOperationType(javax.wsdl.Operation operation)
Returns the
OperationType for the given operation. |
String |
getPortTypeName()
Returns the port type name used for this definition.
|
protected abstract boolean |
isFaultMessage(javax.wsdl.Message message)
Indicates whether the given name name should be included as
Fault message in the definition. |
protected abstract boolean |
isInputMessage(javax.wsdl.Message message)
Indicates whether the given name name should be included as
Input message in the definition. |
protected abstract boolean |
isOutputMessage(javax.wsdl.Message message)
Indicates whether the given name name should be included as
Output message in the definition. |
protected void |
populateFault(javax.wsdl.Definition definition,
javax.wsdl.Fault fault)
Called after the
Fault has been created, but it's added to the operation. |
protected void |
populateInput(javax.wsdl.Definition definition,
javax.wsdl.Input input)
Called after the
Input has been created, but it's added to the operation. |
protected void |
populateOutput(javax.wsdl.Definition definition,
javax.wsdl.Output output)
Called after the
Output has been created, but it's added to the operation. |
protected void |
populatePortType(javax.wsdl.Definition definition,
javax.wsdl.PortType portType)
Called after the
PortType has been created. |
void |
setPortTypeName(String portTypeName)
Sets the port type name used for this definition.
|
protected final org.apache.commons.logging.Log logger
public String getPortTypeName()
public void setPortTypeName(String portTypeName)
public void addPortTypes(javax.wsdl.Definition definition)
throws javax.wsdl.WSDLException
PortType, and calls populatePortType(Definition, PortType) with it.addPortTypes in interface PortTypesProviderdefinition - the WSDL4J Definitionjavax.wsdl.WSDLException - in case of errorsprotected void populatePortType(javax.wsdl.Definition definition,
javax.wsdl.PortType portType)
throws javax.wsdl.WSDLException
PortType has been created.
Default implementation sets the name of the port type to the defined value.
portType - the WSDL4J PortTypejavax.wsdl.WSDLException - in case of errorssetPortTypeName(String)protected abstract String getOperationName(javax.wsdl.Message message)
Message. Subclasses can
return null to indicate that a message should not be coupled to an operation.message - the WSDL4J Messagenullprotected abstract boolean isInputMessage(javax.wsdl.Message message)
Input message in the definition.message - the messagetrue if to be included as input; false otherwiseprotected void populateInput(javax.wsdl.Definition definition,
javax.wsdl.Input input)
Input has been created, but it's added to the operation. Subclasses can
override this method to define the input name.
Default implementation sets the input name to the message name.
definition - the WSDL4J Definitioninput - the WSDL4J Inputprotected abstract boolean isOutputMessage(javax.wsdl.Message message)
Output message in the definition.message - the messagetrue if to be included as output; false otherwiseprotected void populateOutput(javax.wsdl.Definition definition,
javax.wsdl.Output output)
Output has been created, but it's added to the operation. Subclasses can
override this method to define the output name.
Default implementation sets the output name to the message name.
definition - the WSDL4J Definitionoutput - the WSDL4J Outputprotected abstract boolean isFaultMessage(javax.wsdl.Message message)
Fault message in the definition.message - the messagetrue if to be included as fault; false otherwiseprotected void populateFault(javax.wsdl.Definition definition,
javax.wsdl.Fault fault)
Fault has been created, but it's added to the operation. Subclasses can
override this method to define the fault name.
Default implementation sets the fault name to the message name.
definition - the WSDL4J Definitionfault - the WSDL4J Faultprotected javax.wsdl.OperationType getOperationType(javax.wsdl.Operation operation)
OperationType for the given operation.
Default implementation returns OperationType.REQUEST_RESPONSE if both input and output are set; OperationType.ONE_WAY if only input is set, or OperationType.NOTIFICATION if only output is set.
operation - the WSDL4J Operation