Class UnmarshalMessageContextListener
- java.lang.Object
-
- org.apache.axis2.jaxws.marshaller.impl.alt.UnmarshalMessageContextListener
-
- All Implemented Interfaces:
MessageContextListener
public class UnmarshalMessageContextListener extends Object implements MessageContextListener
This MessageContextListener is triggered when a ServiceContext is attached to the MessageContext and when a SOAPEnvelope is attached to the MessageContext. In such cases, it attempts to get a previously cached (from a prior web service call) UnmarshalInfo object from the AxisService. The UnmarshalInfo data is used to create a JAXBCustomBuilder on the SOAPEnvelope's builder. The net effect is that the StAXOMBuilder will use the JAXBCustomBuilder during unmarshalling. This saves time and space.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
attachEnvelopeEvent(MessageContext mc)
void
attachServiceContextEvent(ServiceContext sc, MessageContext mc)
static void
create(ServiceContext sc)
Create and add a listener
-
-
-
Method Detail
-
create
public static void create(ServiceContext sc)
Create and add a listener- Parameters:
sc
- ServiceContext
-
attachEnvelopeEvent
public void attachEnvelopeEvent(MessageContext mc)
- Specified by:
attachEnvelopeEvent
in interfaceMessageContextListener
-
attachServiceContextEvent
public void attachServiceContextEvent(ServiceContext sc, MessageContext mc)
- Specified by:
attachServiceContextEvent
in interfaceMessageContextListener
-
-