jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/model/CheckedExceptionImpl.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
22 * or visit www.oracle.com if you need additional information or have any |
22 * or visit www.oracle.com if you need additional information or have any |
23 * questions. |
23 * questions. |
24 */ |
24 */ |
25 |
25 |
26 package com.sun.xml.internal.ws.model; |
26 package com.sun.xml.internal.ws.model; |
|
27 |
|
28 import java.lang.reflect.Method; |
27 |
29 |
28 import com.sun.xml.internal.bind.api.Bridge; |
30 import com.sun.xml.internal.bind.api.Bridge; |
29 import com.sun.xml.internal.ws.api.model.CheckedException; |
31 import com.sun.xml.internal.ws.api.model.CheckedException; |
30 import com.sun.xml.internal.ws.api.model.ExceptionType; |
32 import com.sun.xml.internal.ws.api.model.ExceptionType; |
31 import com.sun.xml.internal.ws.api.model.JavaMethod; |
33 import com.sun.xml.internal.ws.api.model.JavaMethod; |
50 private final TypeInfo detail; |
52 private final TypeInfo detail; |
51 private final ExceptionType exceptionType; |
53 private final ExceptionType exceptionType; |
52 private final JavaMethodImpl javaMethod; |
54 private final JavaMethodImpl javaMethod; |
53 private String messageName; |
55 private String messageName; |
54 private String faultAction = ""; |
56 private String faultAction = ""; |
|
57 private Method faultInfoGetter; |
55 |
58 |
56 /** |
59 /** |
57 * @param jm {@link JavaMethodImpl} that throws this exception |
60 * @param jm {@link JavaMethodImpl} that throws this exception |
58 * @param exceptionClass |
61 * @param exceptionClass |
59 * Userdefined or WSDL exception class that extends |
62 * Userdefined or WSDL exception class that extends |
125 |
128 |
126 public String getDefaultFaultAction() { |
129 public String getDefaultFaultAction() { |
127 return WsaActionUtil.getDefaultFaultAction(javaMethod,this); |
130 return WsaActionUtil.getDefaultFaultAction(javaMethod,this); |
128 } |
131 } |
129 |
132 |
|
133 public Method getFaultInfoGetter() { |
|
134 return faultInfoGetter; |
|
135 } |
130 |
136 |
|
137 public void setFaultInfoGetter(Method faultInfoGetter) { |
|
138 this.faultInfoGetter = faultInfoGetter; |
|
139 } |
131 } |
140 } |