Package org.somda.sdc.dpws.soap.factory
Class SoapFaultFactory
-
- All Implemented Interfaces:
public class SoapFaultFactoryFactory to create SOAP fault structures.
- Parameter names are in accordance with the SOAP fault specification. Other parameter names are explained.
- The implied reason text's language is 'en'.
-
-
Method Summary
Modifier and Type Method Description SoapMessagecreateFault(String actionUri, QName code, QName subcode, String reasonText, @Nullable() Object detail)Creates a fault SOAP message based on an action URI, code, subcode, reason text and arbitrary details. SoapMessagecreateFault(String actionUri, QName code, QName subcode, String reasonText)Creates a fault SOAP message based on an action URI, code, subcode and reason text. SoapMessagecreateFault(String actionUri, QName code, QName subcode)Creates a fault SOAP message based on an action URI, code and subcode. SoapMessagecreateReceiverFault(String reasonText)Creates a soap:Receiver fault with a given text. SoapMessagecreateSenderFault(String reasonText)Creates a soap:Sender fault with a given text. -
-
Method Detail
-
createFault
SoapMessage createFault(String actionUri, QName code, QName subcode, String reasonText, @Nullable() Object detail)
Creates a fault SOAP message based on an action URI, code, subcode, reason text and arbitrary details.
- Parameters:
actionUri- wsa:Action to put into the resulting SoapMessage header.code- the SOAP fault code.subcode- the SOAP fault subcode.reasonText- the fault reason.detail- the fault details.- Returns:
a SoapMessage containing the fault.
-
createFault
SoapMessage createFault(String actionUri, QName code, QName subcode, String reasonText)
Creates a fault SOAP message based on an action URI, code, subcode and reason text.
- Parameters:
actionUri- wsa:Action to put into the resulting SoapMessage header.code- the SOAP fault code.subcode- the SOAP fault subcode.reasonText- the fault reason.- Returns:
a SoapMessage containing the fault.
-
createFault
SoapMessage createFault(String actionUri, QName code, QName subcode)
Creates a fault SOAP message based on an action URI, code and subcode.
- Parameters:
actionUri- wsa:Action to put into the resulting SoapMessage header.code- the SOAP fault code.subcode- the SOAP fault subcode.- Returns:
a SoapMessage containing the fault.
-
createReceiverFault
SoapMessage createReceiverFault(String reasonText)
Creates a soap:Receiver fault with a given text.
- Parameters:
reasonText- the fault reason.- Returns:
a SoapMessage containing the fault.
-
createSenderFault
SoapMessage createSenderFault(String reasonText)
Creates a soap:Sender fault with a given text.
- Parameters:
reasonText- the fault reason.- Returns:
a SoapMessage containing the fault.
-
-
-
-