Skip to content

Commit 40bd80f

Browse files
committed
SWS-204
1 parent 6f28ad3 commit 40bd80f

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

core/src/main/java/org/springframework/ws/server/endpoint/AbstractEndpointExceptionResolver.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public final int getOrder() {
7272
* Default implementation that checks whether the given <code>endpoint</code> is in the set of {@link
7373
* #setMappedEndpoints mapped endpoints}.
7474
*
75-
* @see #resolveExceptionInternal(org.springframework.ws.context.MessageContext,Object,Exception)
75+
* @see #resolveExceptionInternal(MessageContext,Object,Exception)
7676
*/
7777
public final boolean resolveException(MessageContext messageContext, Object endpoint, Exception ex) {
7878
if (mappedEndpoints != null && !mappedEndpoints.contains(endpoint)) {
@@ -88,7 +88,7 @@ public final boolean resolveException(MessageContext messageContext, Object endp
8888
* @param endpoint the executed endpoint, or <code>null</code> if none chosen at the time of the exception
8989
* @param ex the exception that got thrown during endpoint execution
9090
* @return <code>true</code> if resolved; <code>false</code> otherwise
91-
* @see #resolveException(org.springframework.ws.context.MessageContext,Object,Exception)
91+
* @see #resolveException(MessageContext,Object,Exception)
9292
*/
9393
protected abstract boolean resolveExceptionInternal(MessageContext messageContext, Object endpoint, Exception ex);
9494

core/src/main/java/org/springframework/ws/soap/saaj/SaajSoap12Fault.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,6 @@ public String getFaultReasonText(Locale locale) {
9494
}
9595

9696
public String getFaultStringOrReason() {
97-
return getFaultReasonText(Locale.getDefault());
97+
return getImplementation().getFaultString(getSaajFault());
9898
}
9999
}

core/src/main/java/org/springframework/ws/soap/server/endpoint/AbstractSoapFaultDefinitionExceptionResolver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public void setDefaultFault(SoapFaultDefinition defaultFault) {
5555
protected abstract SoapFaultDefinition getFaultDefinition(Object endpoint, Exception ex);
5656

5757
protected final boolean resolveExceptionInternal(MessageContext messageContext, Object endpoint, Exception ex) {
58-
Assert.isTrue(messageContext.getResponse() instanceof SoapMessage,
58+
Assert.isInstanceOf(SoapMessage.class, messageContext.getResponse(),
5959
"AbstractSoapFaultDefinitionExceptionResolver requires a SoapMessage");
6060

6161
SoapFaultDefinition definition = getFaultDefinition(endpoint, ex);

core/src/main/java/org/springframework/ws/soap/server/endpoint/SimpleSoapExceptionResolver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public void setLocale(Locale locale) {
5858
}
5959

6060
protected final boolean resolveExceptionInternal(MessageContext messageContext, Object endpoint, Exception ex) {
61-
Assert.isTrue(messageContext.getResponse() instanceof SoapMessage,
61+
Assert.isInstanceOf(SoapMessage.class, messageContext.getResponse(),
6262
"SimpleSoapExceptionResolver requires a SoapMessage");
6363
SoapMessage response = (SoapMessage) messageContext.getResponse();
6464
String faultString = StringUtils.hasLength(ex.getMessage()) ? ex.getMessage() : ex.toString();

0 commit comments

Comments
 (0)