Class SuffixBasedPortTypesProvider

java.lang.Object
org.springframework.ws.wsdl.wsdl11.provider.AbstractPortTypesProvider
org.springframework.ws.wsdl.wsdl11.provider.SuffixBasedPortTypesProvider
All Implemented Interfaces:
PortTypesProvider

public class SuffixBasedPortTypesProvider extends AbstractPortTypesProvider
Implementation of the PortTypesProvider interface that is based on suffixes.
Since:
1.5.0
Author:
Arjen Poutsma
  • Field Details

    • DEFAULT_REQUEST_SUFFIX

      public static final String DEFAULT_REQUEST_SUFFIX
      The default suffix used to detect request elements in the schema.
      See Also:
    • DEFAULT_RESPONSE_SUFFIX

      public static final String DEFAULT_RESPONSE_SUFFIX
      The default suffix used to detect response elements in the schema.
      See Also:
    • DEFAULT_FAULT_SUFFIX

      public static final String DEFAULT_FAULT_SUFFIX
      The default suffix used to detect fault elements in the schema.
      See Also:
  • Constructor Details

    • SuffixBasedPortTypesProvider

      public SuffixBasedPortTypesProvider()
  • Method Details

    • getRequestSuffix

      public String getRequestSuffix()
      Returns the suffix used to detect request elements in the schema.
      See Also:
    • setRequestSuffix

      public void setRequestSuffix(String requestSuffix)
      Sets the suffix used to detect request elements in the schema.
      See Also:
    • getResponseSuffix

      public String getResponseSuffix()
      Returns the suffix used to detect response elements in the schema.
      See Also:
    • setResponseSuffix

      public void setResponseSuffix(String responseSuffix)
      Sets the suffix used to detect response elements in the schema.
      See Also:
    • getFaultSuffix

      public String getFaultSuffix()
      Returns the suffix used to detect fault elements in the schema.
      See Also:
    • setFaultSuffix

      public void setFaultSuffix(String faultSuffix)
      Sets the suffix used to detect fault elements in the schema.
      See Also:
    • getOperationName

      protected String getOperationName(javax.wsdl.Message message)
      Description copied from class: AbstractPortTypesProvider
      Template method that returns the name of the operation coupled to the given Message. Subclasses can return null to indicate that a message should not be coupled to an operation.
      Specified by:
      getOperationName in class AbstractPortTypesProvider
      Parameters:
      message - the WSDL4J Message
      Returns:
      the operation name; or null
    • isInputMessage

      protected boolean isInputMessage(javax.wsdl.Message message)
      Indicates whether the given name name should be included as Input message in the definition.

      This implementation checks whether the message name ends with the requestSuffix.

      Specified by:
      isInputMessage in class AbstractPortTypesProvider
      Parameters:
      message - the message
      Returns:
      true if to be included as input; false otherwise
    • isOutputMessage

      protected boolean isOutputMessage(javax.wsdl.Message message)
      Indicates whether the given name name should be included as Output message in the definition.

      This implementation checks whether the message name ends with the responseSuffix.

      Specified by:
      isOutputMessage in class AbstractPortTypesProvider
      Parameters:
      message - the message
      Returns:
      true if to be included as output; false otherwise
    • isFaultMessage

      protected boolean isFaultMessage(javax.wsdl.Message message)
      Indicates whether the given name name should be included as Fault message in the definition.

      This implementation checks whether the message name ends with the faultSuffix.

      Specified by:
      isFaultMessage in class AbstractPortTypesProvider
      Parameters:
      message - the message
      Returns:
      true if to be included as fault; false otherwise