public class EndpointContextMapMigrator extends Object implements ThreadContextMigrator
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 and Description |
---|
EndpointContextMapMigrator() |
Modifier and Type | Method and Description |
---|---|
void |
cleanupContext(MessageContext messageContext)
This method will be invoked when the processing of the message is
guaranteed to be on the thread of execution that will be used in user
space, after all processing has completed (i.e.
|
void |
cleanupThread(MessageContext messageContext)
This method will be invoked when the processing of the message is
guaranteed to still be on the thread of execution that was used in user
space, after all processing has completed (i.e.
|
void |
migrateContextToThread(MessageContext messageContext)
This method will be invoked when the processing of the message is
guaranteed to be on the thread of execution that will be used in
user space.
|
void |
migrateThreadToContext(MessageContext messageContext)
This method will be invoked when the processing of the message is
guaranteed to still be on the thread of execution that was used in
user space.
|
public void migrateContextToThread(MessageContext messageContext) throws AxisFault
ThreadContextMigrator
migrateContextToThread
in interface ThreadContextMigrator
AxisFault
public void cleanupThread(MessageContext messageContext)
ThreadContextMigrator
cleanupThread
in interface ThreadContextMigrator
public void migrateThreadToContext(MessageContext messageContext) throws AxisFault
ThreadContextMigrator
migrateThreadToContext
in interface ThreadContextMigrator
AxisFault
public void cleanupContext(MessageContext messageContext)
ThreadContextMigrator
cleanupContext
in interface ThreadContextMigrator
Copyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.