public class SuffixBasedPortTypesProvider extends AbstractPortTypesProvider
PortTypesProvider
interface that is based on suffixes.Modifier and Type | Field and Description |
---|---|
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.
|
logger
Constructor and Description |
---|
SuffixBasedPortTypesProvider() |
Modifier and Type | Method and Description |
---|---|
String |
getFaultSuffix()
Returns the suffix used to detect fault elements in the schema.
|
protected String |
getOperationName(javax.wsdl.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(javax.wsdl.Message message)
Indicates whether the given name name should be included as
Fault message in the definition. |
protected boolean |
isInputMessage(javax.wsdl.Message message)
Indicates whether the given name name should be included as
Input message in the definition. |
protected boolean |
isOutputMessage(javax.wsdl.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.
|
addPortTypes, getOperationType, getPortTypeName, populateFault, populateInput, populateOutput, populatePortType, setPortTypeName
public static final String DEFAULT_REQUEST_SUFFIX
public static final String DEFAULT_RESPONSE_SUFFIX
public static final String DEFAULT_FAULT_SUFFIX
public String getRequestSuffix()
DEFAULT_REQUEST_SUFFIX
public void setRequestSuffix(String requestSuffix)
DEFAULT_REQUEST_SUFFIX
public String getResponseSuffix()
DEFAULT_RESPONSE_SUFFIX
public void setResponseSuffix(String responseSuffix)
DEFAULT_RESPONSE_SUFFIX
public String getFaultSuffix()
DEFAULT_FAULT_SUFFIX
public void setFaultSuffix(String faultSuffix)
DEFAULT_FAULT_SUFFIX
protected String getOperationName(javax.wsdl.Message message)
AbstractPortTypesProvider
Message
. Subclasses can
return null
to indicate that a message should not be coupled to an operation.getOperationName
in class AbstractPortTypesProvider
message
- the WSDL4J Message
null
protected boolean isInputMessage(javax.wsdl.Message message)
Input
message in the definition.
This implementation checks whether the message name ends with the requestSuffix
.
isInputMessage
in class AbstractPortTypesProvider
message
- the messagetrue
if to be included as input; false
otherwiseprotected boolean isOutputMessage(javax.wsdl.Message message)
Output
message in the definition.
This implementation checks whether the message name ends with the responseSuffix
.
isOutputMessage
in class AbstractPortTypesProvider
message
- the messagetrue
if to be included as output; false
otherwiseprotected boolean isFaultMessage(javax.wsdl.Message message)
Fault
message in the definition.
This implementation checks whether the message name ends with the faultSuffix
.
isFaultMessage
in class AbstractPortTypesProvider
message
- the messagetrue
if to be included as fault; false
otherwiseCopyright © 2018 Pivotal Software. All rights reserved.