Class UnmarshalMessageContextListener
java.lang.Object
org.apache.axis2.jaxws.marshaller.impl.alt.UnmarshalMessageContextListener
- All Implemented Interfaces:
org.apache.axis2.description.MessageContextListener
public class UnmarshalMessageContextListener
extends Object
implements org.apache.axis2.description.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
Modifier and TypeMethodDescriptionvoidattachEnvelopeEvent(org.apache.axis2.context.MessageContext mc) voidattachServiceContextEvent(org.apache.axis2.context.ServiceContext sc, org.apache.axis2.context.MessageContext mc) static voidcreate(org.apache.axis2.context.ServiceContext sc) Create and add a listener
-
Method Details
-
create
public static void create(org.apache.axis2.context.ServiceContext sc) Create and add a listener- Parameters:
sc- ServiceContext
-
attachEnvelopeEvent
public void attachEnvelopeEvent(org.apache.axis2.context.MessageContext mc) - Specified by:
attachEnvelopeEventin interfaceorg.apache.axis2.description.MessageContextListener
-
attachServiceContextEvent
public void attachServiceContextEvent(org.apache.axis2.context.ServiceContext sc, org.apache.axis2.context.MessageContext mc) - Specified by:
attachServiceContextEventin interfaceorg.apache.axis2.description.MessageContextListener
-