Skip to content

Commit 32c5d78

Browse files
committed
Merge branch '4.0.x'
Closes gh-1508
2 parents 893bb9c + 93eb5f4 commit 32c5d78

File tree

1 file changed

+20
-12
lines changed
  • spring-ws-core/src/main/java/org/springframework/ws/soap

1 file changed

+20
-12
lines changed

Diff for: spring-ws-core/src/main/java/org/springframework/ws/soap/SoapFault.java

+20-12
Original file line numberDiff line numberDiff line change
@@ -19,45 +19,53 @@
1919
import javax.xml.namespace.QName;
2020

2121
/**
22-
* Represents the {@code Fault} element in the body of a SOAP message.
22+
* Represent the {@code Fault} element in the body of a SOAP message.
2323
* <p>
24-
* A fault consists of a {@link #getFaultCode() fault code}, {@link #getFaultActorOrRole
25-
* fault string/reason}, and {@link #getFaultActorOrRole() role}.
24+
* A fault consists of a {@linkplain #getFaultCode() fault code},
25+
* {@linkplain #getFaultStringOrReason() fault string/reason}, and
26+
* {@link #getFaultActorOrRole() role}.
27+
* <p>
28+
* A fault also can have a {@link SoapFaultDetail detail}.
2629
*
2730
* @author Arjen Poutsma
2831
* @since 1.0.0
2932
*/
3033
public interface SoapFault extends SoapElement {
3134

32-
/** Returns the fault code. */
35+
/**
36+
* Return the type of fault.
37+
*/
3338
QName getFaultCode();
3439

3540
/**
36-
* Returns the fault string or reason. For SOAP 1.1, this returns the fault string.
37-
* For SOAP 1.2, this returns the fault reason for the default locale.
41+
* Return a human-readable information about the nature of the fault. For SOAP 1.1,
42+
* this returns the fault string. For SOAP 1.2, this returns the fault reason for the
43+
* default locale.
3844
*/
3945
String getFaultStringOrReason();
4046

4147
/**
42-
* Returns the fault actor or role. For SOAP 1.1, this returns the actor. For SOAP
43-
* 1.2, this returns the role.
48+
* Return the optional fault actor or role. For SOAP 1.1, this returns the URI of the
49+
* SOAP node that generated the fault. For SOAP 1.2, this returns the URI that
50+
* identifies the role in which the node was operating at the point the fault
51+
* occurred.
4452
*/
4553
String getFaultActorOrRole();
4654

4755
/**
48-
* Sets the fault actor. For SOAP 1.1, this sets the actor. For SOAP 1.2, this sets
49-
* the role.
56+
* Set the fault actor or role. For SOAP 1.1, this sets the actor. For SOAP 1.2, this
57+
* sets the role.
5058
*/
5159
void setFaultActorOrRole(String faultActor);
5260

5361
/**
54-
* Returns the optional detail element for this {@code SoapFault}.
62+
* Return the optional {@linkplain SoapFaultDetail detail element} of this fault.
5563
* @return a fault detail
5664
*/
5765
SoapFaultDetail getFaultDetail();
5866

5967
/**
60-
* Creates an optional {@code SoapFaultDetail} object and assigns it to this fault.
68+
* Create a {@link SoapFaultDetail} and assign it to this fault.
6169
* @return the created detail
6270
*/
6371
SoapFaultDetail addFaultDetail();

0 commit comments

Comments
 (0)