Class AbstractPortTypesProvider
java.lang.Object
org.springframework.ws.wsdl.wsdl11.provider.AbstractPortTypesProvider
- All Implemented Interfaces:
PortTypesProvider
- Direct Known Subclasses:
SuffixBasedPortTypesProvider
Abstract base class for
PortTypesProvider
implementations.- 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
addPortTypes
(javax.wsdl.Definition definition) Creates a singlePortType
, and callspopulatePortType(Definition, PortType)
with it.protected abstract String
getOperationName
(javax.wsdl.Message message) Template method that returns the name of the operation coupled to the givenMessage
.protected javax.wsdl.OperationType
getOperationType
(javax.wsdl.Operation operation) Returns theOperationType
for the given operation.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 asFault
message in the definition.protected abstract boolean
isInputMessage
(javax.wsdl.Message message) Indicates whether the given name name should be included asInput
message in the definition.protected abstract boolean
isOutputMessage
(javax.wsdl.Message message) Indicates whether the given name name should be included asOutput
message in the definition.protected void
populateFault
(javax.wsdl.Definition definition, javax.wsdl.Fault fault) Called after theFault
has been created, but it's added to the operation.protected void
populateInput
(javax.wsdl.Definition definition, javax.wsdl.Input input) Called after theInput
has been created, but it's added to the operation.protected void
populateOutput
(javax.wsdl.Definition definition, javax.wsdl.Output output) Called after theOutput
has been created, but it's added to the operation.protected void
populatePortType
(javax.wsdl.Definition definition, javax.wsdl.PortType portType) Called after thePortType
has been created.void
setPortTypeName
(String portTypeName) Sets the port type name used for this definition.
-
Field Details
-
logger
protected final org.apache.commons.logging.Log loggerLogger available to subclasses.
-
-
Constructor Details
-
AbstractPortTypesProvider
public AbstractPortTypesProvider()
-
-
Method Details
-
getPortTypeName
Returns the port type name used for this definition. -
setPortTypeName
Sets the port type name used for this definition. Required. -
addPortTypes
public void addPortTypes(javax.wsdl.Definition definition) throws javax.wsdl.WSDLException Creates a singlePortType
, and callspopulatePortType(Definition, PortType)
with it.- Specified by:
addPortTypes
in interfacePortTypesProvider
- Parameters:
definition
- the WSDL4JDefinition
- Throws:
javax.wsdl.WSDLException
- in case of errors
-
populatePortType
protected void populatePortType(javax.wsdl.Definition definition, javax.wsdl.PortType portType) throws javax.wsdl.WSDLException Called after thePortType
has been created.Default implementation sets the name of the port type to the defined value.
- Parameters:
portType
- the WSDL4JPortType
- Throws:
javax.wsdl.WSDLException
- in case of errors- See Also:
-
getOperationName
Template method that returns the name of the operation coupled to the givenMessage
. Subclasses can returnnull
to indicate that a message should not be coupled to an operation.- Parameters:
message
- the WSDL4JMessage
- Returns:
- the operation name; or
null
-
isInputMessage
protected abstract boolean isInputMessage(javax.wsdl.Message message) Indicates whether the given name name should be included asInput
message in the definition.- Parameters:
message
- the message- Returns:
true
if to be included as input;false
otherwise
-
populateInput
protected void populateInput(javax.wsdl.Definition definition, javax.wsdl.Input input) Called after theInput
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.
- Parameters:
definition
- the WSDL4JDefinition
input
- the WSDL4JInput
-
isOutputMessage
protected abstract boolean isOutputMessage(javax.wsdl.Message message) Indicates whether the given name name should be included asOutput
message in the definition.- Parameters:
message
- the message- Returns:
true
if to be included as output;false
otherwise
-
populateOutput
protected void populateOutput(javax.wsdl.Definition definition, javax.wsdl.Output output) Called after theOutput
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.
- Parameters:
definition
- the WSDL4JDefinition
output
- the WSDL4JOutput
-
isFaultMessage
protected abstract boolean isFaultMessage(javax.wsdl.Message message) Indicates whether the given name name should be included asFault
message in the definition.- Parameters:
message
- the message- Returns:
true
if to be included as fault;false
otherwise
-
populateFault
protected void populateFault(javax.wsdl.Definition definition, javax.wsdl.Fault fault) Called after theFault
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.
- Parameters:
definition
- the WSDL4JDefinition
fault
- the WSDL4JFault
-
getOperationType
protected javax.wsdl.OperationType getOperationType(javax.wsdl.Operation operation) Returns theOperationType
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, orOperationType.NOTIFICATION
if only output is set.- Parameters:
operation
- the WSDL4JOperation
- Returns:
- the operation type for the operation
-