org.apache.axis2.description
Interface MessageContextListener
- All Known Implementing Classes:
- UnmarshalMessageContextListener
public interface MessageContextListener
A MessageContextListener is registered on the AxisService.
When a ServiceContext is attached to the MessageContext,
the attachServiceContextEvent is triggered.
When an Envelope is attached to the MessageContext,
the attachEnvelopeEvent is triggered.
These two events occur at critical points in the message sending
or receiving. An implementation of the MessageContextListener
may log information, set special properties or trigger events.
For example the JAXWS module uses a MessageContextListener to
register a JAXBCustomBuilder on the envelope's StAXOMBuilder.
attachServiceContextEvent
void attachServiceContextEvent(ServiceContext sc,
MessageContext mc)
attachEnvelopeEvent
void attachEnvelopeEvent(MessageContext mc)
Copyright ? 2007 Apache Web Services Project. All Rights Reserved.