org.springframework.ws.soap.soap12
Interface Soap12Fault

All Superinterfaces:
SoapElement, SoapFault

public interface Soap12Fault
extends SoapFault

Subinterface of SoapFault that exposes SOAP 1.2 functionality. Necessary because SOAP 1.1 differs from SOAP 1.2 with respect to SOAP Faults.

Author:
Arjen Poutsma

Method Summary
 void addFaultSubcode(QName subcode)
          Adds a fault subcode this fault.
 String getFaultNode()
          Returns the fault node.
 String getFaultReasonText(Locale locale)
          Returns the reason associated with the given language.
 Iterator getFaultSubcodes()
          Returns an iteration over the fault subcodes.
 void setFaultNode(String uri)
          Sets the fault node.
 void setFaultReasonText(Locale locale, String text)
          Sets the specified fault reason text.
 
Methods inherited from interface org.springframework.ws.soap.SoapFault
addFaultDetail, getFaultActorOrRole, getFaultCode, getFaultDetail, setFaultActorOrRole
 
Methods inherited from interface org.springframework.ws.soap.SoapElement
getName, getSource
 

Method Detail

getFaultSubcodes

Iterator getFaultSubcodes()
Returns an iteration over the fault subcodes. The subcodes are returned in order: from top to bottom.

Returns:
an Iterator that contains QNames representing the fault subcodes

addFaultSubcode

void addFaultSubcode(QName subcode)
Adds a fault subcode this fault.

Parameters:
subcode - the qualified name of the subcode

getFaultNode

String getFaultNode()
Returns the fault node. Optional.


setFaultNode

void setFaultNode(String uri)
Sets the fault node.


setFaultReasonText

void setFaultReasonText(Locale locale,
                        String text)
Sets the specified fault reason text.


getFaultReasonText

String getFaultReasonText(Locale locale)
Returns the reason associated with the given language.



Copyright (c) 2005-2006 The Spring Framework Project.