Spring Web Services Framework

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

java.lang.Object
  extended by org.springframework.ws.wsdl.wsdl11.provider.AbstractPortTypesProvider
      extended by 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 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.
 
Fields inherited from class org.springframework.ws.wsdl.wsdl11.provider.AbstractPortTypesProvider
logger
 
Constructor Summary
SuffixBasedPortTypesProvider()
           
 
Method Summary
 String getFaultSuffix()
          Returns the suffix used to detect fault elements in the schema.
protected  String getOperationName(Message message)
          Template method that returns the name of the operation coupled to the given Message.
 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 isFaultMessage(Message message)
          Indicates whether the given name name should be included as Fault message in the definition.
protected  boolean isInputMessage(Message message)
          Indicates whether the given name name should be included as Input message in the definition.
protected  boolean isOutputMessage(Message message)
          Indicates whether the given name name should be included as Output 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.AbstractPortTypesProvider
addPortTypes, getOperationType, getPortTypeName, populateFault, populateInput, populateOutput, populatePortType, setPortTypeName
 
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

SuffixBasedPortTypesProvider

public SuffixBasedPortTypesProvider()
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

getOperationName

protected String getOperationName(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(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(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(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

Spring Web Services Framework

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