Skip to content
Permalink
Browse files
[CXF-5427] Change ClientFaultConverter to be an AbstractInDatabinding…
…Interceptor to leverage the calls for the get readers that would setup validation and such.

git-svn-id: https://svn.apache.org/repos/asf/cxf/trunk@1548258 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
dkulp committed Dec 5, 2013
1 parent 1fc25ea commit e6cb482393a5dc4e27d034f414772bbce4dcef57
Showing 1 changed file with 3 additions and 4 deletions.
@@ -47,7 +47,6 @@
import org.apache.cxf.message.FaultMode;
import org.apache.cxf.message.Message;
import org.apache.cxf.message.MessageUtils;
import org.apache.cxf.phase.AbstractPhaseInterceptor;
import org.apache.cxf.phase.Phase;
import org.apache.cxf.service.Service;
import org.apache.cxf.service.model.BindingOperationInfo;
@@ -58,7 +57,7 @@
/**
* Takes a Fault and converts it to a local exception type if possible.
*/
public class ClientFaultConverter extends AbstractPhaseInterceptor<Message> {
public class ClientFaultConverter extends AbstractInDatabindingInterceptor {
public static final String DISABLE_FAULT_MAPPING = "disable-fault-mapping";
private static final Logger LOG = LogUtils.getLogger(ClientFaultConverter.class);

@@ -147,11 +146,11 @@ protected void processFaultDetail(Fault fault, Message msg) {

Object e = null;
if (isDOMSupported(dataBinding)) {
DataReader<Node> reader = dataBinding.createReader(Node.class);
DataReader<Node> reader = this.getNodeDataReader(msg);
reader.setProperty(DataReader.FAULT, fault);
e = reader.read(part, exDetail);
} else {
DataReader<XMLStreamReader> reader = dataBinding.createReader(XMLStreamReader.class);
DataReader<XMLStreamReader> reader = this.getDataReader(msg);
XMLStreamReader xsr = new W3CDOMStreamReader(exDetail);
try {
xsr.nextTag();

0 comments on commit e6cb482

Please sign in to comment.