Package org.citrusframework.ws.message
Class SoapFault
java.lang.Object
org.citrusframework.message.DefaultMessage
org.citrusframework.ws.message.SoapMessage
org.citrusframework.ws.message.SoapFault
- All Implemented Interfaces:
Serializable,Message
- Since:
- 2.0
- Author:
- Christoph Deppisch
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddFaultDetail(String faultDetail) Adds a new fault detail in builder pattern style.faultActor(String faultActor) Sets the faultActor.Sets the fault code.faultDetails(List<String> faultDetails) Sets the faultDetails.faultString(String faultString) Sets the fault string or reason.static SoapFaultfrom(org.springframework.ws.soap.SoapFault fault) Builder method from Spring WS SOAP fault object.Gets the faultActor.Gets the faultCode.Returns fault code as qualified name.Gets the faultDetails.Gets the faultString.Gets the locale used in SOAP fault.Sets the locale used in SOAP fault.Sets the locale used in SOAP fault.toString()Methods inherited from class org.citrusframework.ws.message.SoapMessage
accept, addAttachment, addHeaderData, contentType, getAttachments, getSoapAction, header, isMtomEnabled, mtomEnabled, reasonPhrase, setHeader, soapAction, status, statusCodeMethods inherited from class org.citrusframework.message.DefaultMessage
getHeader, getHeaderData, getHeaders, getId, getName, getPayload, getPayload, getTimestamp, getType, removeHeader, setName, setPayload, setType, setType
-
Constructor Details
-
SoapFault
public SoapFault()Default constructor. -
SoapFault
Default constructor using parent message.- Parameters:
message-
-
SoapFault
Default constructor using payload.- Parameters:
payload-
-
-
Method Details
-
getFaultCodeQName
Returns fault code as qualified name.- Returns:
-
faultCode
Sets the fault code.- Parameters:
faultCode-
-
faultString
Sets the fault string or reason.- Parameters:
faultString-
-
faultActor
Sets the faultActor.- Parameters:
faultActor- the faultActor to set
-
faultDetails
Sets the faultDetails.- Parameters:
faultDetails- the faultDetails to set
-
addFaultDetail
Adds a new fault detail in builder pattern style.- Parameters:
faultDetail-- Returns:
-
locale
Sets the locale used in SOAP fault.- Parameters:
locale-
-
locale
Sets the locale used in SOAP fault.- Parameters:
locale-
-
getFaultActor
Gets the faultActor.- Returns:
- the faultActor the faultActor to get.
-
getFaultCode
Gets the faultCode.- Returns:
- the faultCode
-
getFaultString
Gets the faultString.- Returns:
- the faultString
-
getFaultDetails
Gets the faultDetails.- Returns:
- the faultDetails the faultDetails to get.
-
getLocale
Gets the locale used in SOAP fault.- Returns:
-
from
Builder method from Spring WS SOAP fault object.- Parameters:
fault-- Returns:
-
toString
- Overrides:
toStringin classSoapMessage
-