Added afterCompletion to ClientInterceptor

Added the afterCompletion hook to ClientInterceptor, similar to the
existing one in EndpointInterceptor.

Issue: SWS-778
This commit is contained in:
Arjen Poutsma
2014-03-18 15:47:28 +01:00
parent a300d7ce1e
commit ac030c2ff3
5 changed files with 72 additions and 4 deletions

View File

@@ -175,6 +175,7 @@ public abstract class AbstractWsSecurityInterceptor implements SoapEndpointInter
return true;
}
public void afterCompletion(MessageContext messageContext, Object endpoint, Exception ex) {
cleanUp();
}
@@ -252,7 +253,13 @@ public abstract class AbstractWsSecurityInterceptor implements SoapEndpointInter
return true;
}
/**
@Override
public void afterCompletion(MessageContext messageContext, Exception ex)
throws WebServiceClientException {
cleanUp();
}
/**
* Handles an securement exception. Default implementation logs the given exception, and returns
* <code>false</code>.
*