Class EndpointContextMapMigrator

  • All Implemented Interfaces:
    org.apache.axis2.util.ThreadContextMigrator

    public class EndpointContextMapMigrator
    extends Object
    implements org.apache.axis2.util.ThreadContextMigrator
    This class will enable the JAX-WS 2.1 API methods to create instances of EndpointReference that target a particular web service endpoint, identified by specifying the WSDL service name and port name of the endpoint, to work correctly. This is achieved by enabling the implementation of Axis2EndpointReferenceFactory to retrieve the context it needs from the invoking thread. The instances of EndpointReference that it produces can then converted to instances of EndpointReference, as needed.
    • Constructor Detail

      • EndpointContextMapMigrator

        public EndpointContextMapMigrator()
    • Method Detail

      • migrateContextToThread

        public void migrateContextToThread​(org.apache.axis2.context.MessageContext messageContext)
                                    throws org.apache.axis2.AxisFault
        Specified by:
        migrateContextToThread in interface org.apache.axis2.util.ThreadContextMigrator
        Throws:
        org.apache.axis2.AxisFault
      • cleanupThread

        public void cleanupThread​(org.apache.axis2.context.MessageContext messageContext)
        Specified by:
        cleanupThread in interface org.apache.axis2.util.ThreadContextMigrator
      • migrateThreadToContext

        public void migrateThreadToContext​(org.apache.axis2.context.MessageContext messageContext)
                                    throws org.apache.axis2.AxisFault
        Specified by:
        migrateThreadToContext in interface org.apache.axis2.util.ThreadContextMigrator
        Throws:
        org.apache.axis2.AxisFault
      • cleanupContext

        public void cleanupContext​(org.apache.axis2.context.MessageContext messageContext)
        Specified by:
        cleanupContext in interface org.apache.axis2.util.ThreadContextMigrator