1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.springframework.ws.soap.saaj;
18
19 import java.util.Locale;
20 import javax.xml.soap.SOAPException;
21 import javax.xml.soap.SOAPFault;
22
23 import org.springframework.ws.soap.soap11.Soap11Fault;
24
25
26
27
28
29
30
31 class SaajSoap11Fault extends SaajSoapFault implements Soap11Fault {
32
33 SaajSoap11Fault(SOAPFault fault) {
34 super(fault);
35 }
36
37 public String getFaultActorOrRole() {
38 return getImplementation().getFaultActor(getSaajFault());
39 }
40
41 public void setFaultActorOrRole(String faultActor) {
42 try {
43 getImplementation().setFaultActor(getSaajFault(), faultActor);
44 }
45 catch (SOAPException ex) {
46 throw new SaajSoapFaultException(ex);
47 }
48 }
49
50 public String getFaultStringOrReason() {
51 return getImplementation().getFaultString(getSaajFault());
52 }
53
54 public Locale getFaultStringLocale() {
55 return getImplementation().getFaultStringLocale(getSaajFault());
56 }
57 }