Package org.somda.sdc.dpws.soap.factory
Class SoapFaultFactory
- java.lang.Object
-
- org.somda.sdc.dpws.soap.factory.SoapFaultFactory
-
public class SoapFaultFactory extends Object
Factory 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'.
- See Also:
- SOAP Fault, SOAP 1.2 Fault Binding
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SoapMessagecreateFault(String actionUri, QName code, QName subcode)Creates a fault SOAP message based on an action URI, code and subcode.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, String reasonText, Object detail)Creates a fault SOAP message based on an action URI, code, subcode, reason text and arbitrary details.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
public 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 resultingSoapMessageheader.code- the SOAP fault code.subcode- the SOAP fault subcode.reasonText- the fault reason.detail- the fault details.- Returns:
- a
SoapMessagecontaining the fault.
-
createFault
public 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 resultingSoapMessageheader.code- the SOAP fault code.subcode- the SOAP fault subcode.reasonText- the fault reason.- Returns:
- a
SoapMessagecontaining the fault.
-
createFault
public 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 resultingSoapMessageheader.code- the SOAP fault code.subcode- the SOAP fault subcode.- Returns:
- a
SoapMessagecontaining the fault.
-
createReceiverFault
public SoapMessage createReceiverFault(String reasonText)
Creates a soap:Receiver fault with a given text.- Parameters:
reasonText- the fault reason.- Returns:
- a
SoapMessagecontaining the fault.
-
createSenderFault
public SoapMessage createSenderFault(String reasonText)
Creates a soap:Sender fault with a given text.- Parameters:
reasonText- the fault reason.- Returns:
- a
SoapMessagecontaining the fault.
-
-