it.imolinfo.jbi4corba.jbi.cxf
Class Jbi4CorbaConsumerExceptionInterceptor

java.lang.Object
  extended by org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.message.Message>
      extended by it.imolinfo.jbi4corba.jbi.cxf.Jbi4CorbaConsumerExceptionInterceptor
All Implemented Interfaces:
org.apache.cxf.interceptor.Interceptor<org.apache.cxf.message.Message>, org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.message.Message>

public class Jbi4CorbaConsumerExceptionInterceptor
extends org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.message.Message>

Intercaptor that converts the XML to Exceptions. Taken from the CXF ClientFaultConverter class (fied some jaxb issue with our exceptions).

Author:
marco.

Constructor Summary
Jbi4CorbaConsumerExceptionInterceptor()
           
Jbi4CorbaConsumerExceptionInterceptor(String phase)
           
 
Method Summary
static Object getElementValue(Object obj)
           
 void handleMessage(org.apache.cxf.message.Message msg)
           
protected  void processFaultDetail(org.apache.cxf.interceptor.Fault fault, org.apache.cxf.message.Message msg)
           
static List<Object> unmarshallArray(javax.xml.bind.Unmarshaller u, Object source, QName elName, Class<?> clazz, List<Object> ret)
           
static Object unmarshallException(javax.xml.bind.Unmarshaller u, Object source, org.apache.cxf.service.model.MessagePartInfo part)
          Unmarshall the exception (from XML to Java).
 
Methods inherited from class org.apache.cxf.phase.AbstractPhaseInterceptor
addAfter, addAfter, addBefore, addBefore, getAfter, getBefore, getId, getPhase, handleFault, isGET, setAfter, setBefore
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Jbi4CorbaConsumerExceptionInterceptor

public Jbi4CorbaConsumerExceptionInterceptor()

Jbi4CorbaConsumerExceptionInterceptor

public Jbi4CorbaConsumerExceptionInterceptor(String phase)
Method Detail

handleMessage

public void handleMessage(org.apache.cxf.message.Message msg)

processFaultDetail

protected void processFaultDetail(org.apache.cxf.interceptor.Fault fault,
                                  org.apache.cxf.message.Message msg)

unmarshallException

public static Object unmarshallException(javax.xml.bind.Unmarshaller u,
                                         Object source,
                                         org.apache.cxf.service.model.MessagePartInfo part)
Unmarshall the exception (from XML to Java).

Parameters:
u -
source -
part -
Returns:

unmarshallArray

public static List<Object> unmarshallArray(javax.xml.bind.Unmarshaller u,
                                           Object source,
                                           QName elName,
                                           Class<?> clazz,
                                           List<Object> ret)
                                    throws Exception
Throws:
Exception

getElementValue

public static Object getElementValue(Object obj)


Copyright © 2005-2010 Imola Informatica. All Rights Reserved.