Class DefaultMessagesProvider
java.lang.Object
org.springframework.ws.wsdl.wsdl11.provider.DefaultMessagesProvider
- All Implemented Interfaces:
MessagesProvider
- Direct Known Subclasses:
SuffixBasedMessagesProvider
Default implementation of the
MessagesProvider.
Simply adds all elements contained in the schema(s) as messages.
- Since:
- 1.5.0
- Author:
- Arjen Poutsma
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMessages(javax.wsdl.Definition definition) protected StringgetElementName(Element element) Returns the name attribute of the given element.protected booleanisMessageElement(Element element) Indicates whether the given element should be includes asMessagein the definition.protected voidpopulateMessage(javax.wsdl.Definition definition, javax.wsdl.Message message, QName elementName) Called after theMessagehas been created.protected voidpopulatePart(javax.wsdl.Definition definition, javax.wsdl.Part part, QName elementName) Called after theParthas been created.
-
Constructor Details
-
DefaultMessagesProvider
public DefaultMessagesProvider()
-
-
Method Details
-
addMessages
public void addMessages(javax.wsdl.Definition definition) throws javax.wsdl.WSDLException - Specified by:
addMessagesin interfaceMessagesProvider- Throws:
javax.wsdl.WSDLException
-
getElementName
Returns the name attribute of the given element.- Parameters:
element- the element whose name to return- Returns:
- the name of the element
-
isMessageElement
Indicates whether the given element should be includes asMessagein the definition.Default implementation checks whether the element has the XML Schema namespace, and if it has the local name "element".
- Parameters:
element- the element elligable for being a message- Returns:
trueif to be included as message;falseotherwise
-
populateMessage
protected void populateMessage(javax.wsdl.Definition definition, javax.wsdl.Message message, QName elementName) throws javax.wsdl.WSDLException Called after theMessagehas been created.Default implementation sets the name of the message to the element name.
- Parameters:
definition- the WSDL4JDefinitionmessage- the WSDL4JMessageelementName- the element name- Throws:
javax.wsdl.WSDLException- in case of errors
-
populatePart
protected void populatePart(javax.wsdl.Definition definition, javax.wsdl.Part part, QName elementName) throws javax.wsdl.WSDLException Called after theParthas been created.Default implementation sets the element name of the part.
- Parameters:
definition- the WSDL4JDefinitionpart- the WSDL4JPartelementName- the elementName @throws WSDLException in case of errors- Throws:
javax.wsdl.WSDLException- See Also:
-
Part.setElementName(javax.xml.namespace.QName)
-