org.apache.axis2.jaxws.spi.migrator
Interface ApplicationContextMigrator

All Known Implementing Classes:
PropertyMigrator

public interface ApplicationContextMigrator

The ContextPropertyMigrator is a utility interface that can be implemented to handle any transformation or migration that needs to happen between the internal JAX-WS MessageContext for a request or a response and the associated context for the client or the server.

client - On the client side, this will be called with the request or response context from the BindingProvider instance.

server - On the server side, this will be called with the javax.xml.ws.handler.MessageContext instance that the service endpoint will see. This is the same context that will be injected


Method Summary
 void migratePropertiesFromMessageContext(java.util.Map<java.lang.String,java.lang.Object> userContext, MessageContext messageContext)
          Is called to handle property migratom FROM the internal org.apache.axis2.jaxws.core.MessageContext TO a target user context (BindingProvider client context or server MessageContext) that the user will access.
 void migratePropertiesToMessageContext(java.util.Map<java.lang.String,java.lang.Object> userContext, MessageContext messageContext)
          Is called to handle property migration FROM the user context (BindingProvider client context or server MessageContext) TO a target internal org.apache.axis2.jaxws.core.MessageContext.
 

Method Detail

migratePropertiesToMessageContext

void migratePropertiesToMessageContext(java.util.Map<java.lang.String,java.lang.Object> userContext,
                                       MessageContext messageContext)
Is called to handle property migration FROM the user context (BindingProvider client context or server MessageContext) TO a target internal org.apache.axis2.jaxws.core.MessageContext.

Parameters:
userContext - - The source context that contains the user context properties.
messageContext - - The target MessageContext to receive the properties.

migratePropertiesFromMessageContext

void migratePropertiesFromMessageContext(java.util.Map<java.lang.String,java.lang.Object> userContext,
                                         MessageContext messageContext)
Is called to handle property migratom FROM the internal org.apache.axis2.jaxws.core.MessageContext TO a target user context (BindingProvider client context or server MessageContext) that the user will access.

Parameters:
userContext - - The target user context to receive the properties.
messageContext - - The source MessageContext that contains the property values.


Copyright © 2007 Apache Web Services Project. All Rights Reserved.