|
19 | 19 | import javax.xml.namespace.QName; |
20 | 20 |
|
21 | 21 | /** |
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. |
23 | 23 | * <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}. |
26 | 29 | * |
27 | 30 | * @author Arjen Poutsma |
28 | 31 | * @since 1.0.0 |
29 | 32 | */ |
30 | 33 | public interface SoapFault extends SoapElement { |
31 | 34 |
|
32 | | - /** Returns the fault code. */ |
| 35 | + /** |
| 36 | + * Return the type of fault. |
| 37 | + */ |
33 | 38 | QName getFaultCode(); |
34 | 39 |
|
35 | 40 | /** |
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. |
38 | 44 | */ |
39 | 45 | String getFaultStringOrReason(); |
40 | 46 |
|
41 | 47 | /** |
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. |
44 | 52 | */ |
45 | 53 | String getFaultActorOrRole(); |
46 | 54 |
|
47 | 55 | /** |
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. |
50 | 58 | */ |
51 | 59 | void setFaultActorOrRole(String faultActor); |
52 | 60 |
|
53 | 61 | /** |
54 | | - * Returns the optional detail element for this {@code SoapFault}. |
| 62 | + * Return the optional {@linkplain SoapFaultDetail detail element} of this fault. |
55 | 63 | * @return a fault detail |
56 | 64 | */ |
57 | 65 | SoapFaultDetail getFaultDetail(); |
58 | 66 |
|
59 | 67 | /** |
60 | | - * Creates an optional {@code SoapFaultDetail} object and assigns it to this fault. |
| 68 | + * Create a {@link SoapFaultDetail} and assign it to this fault. |
61 | 69 | * @return the created detail |
62 | 70 | */ |
63 | 71 | SoapFaultDetail addFaultDetail(); |
|
0 commit comments