Spring Web Services Framework

org.springframework.ws.wsdl.wsdl11.provider
Class SuffixBasedMessagesProvider

java.lang.Object
  extended by org.springframework.ws.wsdl.wsdl11.provider.DefaultMessagesProvider
      extended by org.springframework.ws.wsdl.wsdl11.provider.SuffixBasedMessagesProvider
All Implemented Interfaces:
MessagesProvider

public class SuffixBasedMessagesProvider
extends DefaultMessagesProvider

Implementation of the MessagesProvider interface that is based on suffixes.

Since:
1.5.1
Author:
Arjen Poutsma

Field Summary
static String DEFAULT_FAULT_SUFFIX
          The default suffix used to detect fault elements in the schema.
static String DEFAULT_REQUEST_SUFFIX
          The default suffix used to detect request elements in the schema.
static String DEFAULT_RESPONSE_SUFFIX
          The default suffix used to detect response elements in the schema.
 
Constructor Summary
SuffixBasedMessagesProvider()
           
 
Method Summary
 String getFaultSuffix()
          Returns the suffix used to detect fault elements in the schema.
 String getRequestSuffix()
          Returns the suffix used to detect request elements in the schema.
 String getResponseSuffix()
          Returns the suffix used to detect response elements in the schema.
protected  boolean isMessageElement(Element element)
          Indicates whether the given element should be includes as Message in the definition.
 void setFaultSuffix(String faultSuffix)
          Sets the suffix used to detect fault elements in the schema.
 void setRequestSuffix(String requestSuffix)
          Sets the suffix used to detect request elements in the schema.
 void setResponseSuffix(String responseSuffix)
          Sets the suffix used to detect response elements in the schema.
 
Methods inherited from class org.springframework.ws.wsdl.wsdl11.provider.DefaultMessagesProvider
addMessages, getElementName, populateMessage, populatePart
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_REQUEST_SUFFIX

public static final String DEFAULT_REQUEST_SUFFIX
The default suffix used to detect request elements in the schema.

See Also:
Constant Field Values

DEFAULT_RESPONSE_SUFFIX

public static final String DEFAULT_RESPONSE_SUFFIX
The default suffix used to detect response elements in the schema.

See Also:
Constant Field Values

DEFAULT_FAULT_SUFFIX

public static final String DEFAULT_FAULT_SUFFIX
The default suffix used to detect fault elements in the schema.

See Also:
Constant Field Values
Constructor Detail

SuffixBasedMessagesProvider

public SuffixBasedMessagesProvider()
Method Detail

getRequestSuffix

public String getRequestSuffix()
Returns the suffix used to detect request elements in the schema.

See Also:
DEFAULT_REQUEST_SUFFIX

setRequestSuffix

public void setRequestSuffix(String requestSuffix)
Sets the suffix used to detect request elements in the schema.

See Also:
DEFAULT_REQUEST_SUFFIX

getResponseSuffix

public String getResponseSuffix()
Returns the suffix used to detect response elements in the schema.

See Also:
DEFAULT_RESPONSE_SUFFIX

setResponseSuffix

public void setResponseSuffix(String responseSuffix)
Sets the suffix used to detect response elements in the schema.

See Also:
DEFAULT_RESPONSE_SUFFIX

getFaultSuffix

public String getFaultSuffix()
Returns the suffix used to detect fault elements in the schema.

See Also:
DEFAULT_FAULT_SUFFIX

setFaultSuffix

public void setFaultSuffix(String faultSuffix)
Sets the suffix used to detect fault elements in the schema.

See Also:
DEFAULT_FAULT_SUFFIX

isMessageElement

protected boolean isMessageElement(Element element)
Description copied from class: DefaultMessagesProvider
Indicates whether the given element should be includes as Message in the definition.

Default implementation checks whether the element has the XML Schema namespace, and if it has the local name "element".

Overrides:
isMessageElement in class DefaultMessagesProvider
Parameters:
element - the element elligable for being a message
Returns:
true if to be included as message; false otherwise

Spring Web Services Framework

Copyright © 2005-2013 The Spring Web Services Framework. All Rights Reserved.