org.apache.tuscany.sca.binding.sca.axis2.impl
Class Axis2SCABindingInvoker

java.lang.Object
  extended by org.apache.tuscany.sca.binding.sca.axis2.impl.Axis2SCABindingInvoker
All Implemented Interfaces:
Interceptor, Invoker

public class Axis2SCABindingInvoker
extends java.lang.Object
implements Interceptor

A wrapper for the Axis2BindingInvoker that ensures that the URL of the target service is correct by looking it up in the service registry if it is not provided


Constructor Summary
Axis2SCABindingInvoker(Axis2SCAReferenceBindingProvider provider, Invoker axis2Invoker)
           
 
Method Summary
 Invoker getNext()
          Returns the next invoker or null
 Message invoke(Message msg)
          Fix up the URL for the message.
 void setNext(Invoker next)
          Sets the next invoker
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Axis2SCABindingInvoker

public Axis2SCABindingInvoker(Axis2SCAReferenceBindingProvider provider,
                              Invoker axis2Invoker)
Method Detail

setNext

public void setNext(Invoker next)
Description copied from interface: Interceptor
Sets the next invoker

Specified by:
setNext in interface Interceptor
Parameters:
next - The next invoker

getNext

public Invoker getNext()
Description copied from interface: Interceptor
Returns the next invoker or null

Specified by:
getNext in interface Interceptor
Returns:
The next Invoker

invoke

public Message invoke(Message msg)
Fix up the URL for the message. The "to" EndPoint comes from the wire target and needs to be replaced with the endpoint from the registry. The default URL for an Endpoint URI where there is no target component or service information, as in the case of a wire crossing a node boundary, is "/"

Specified by:
invoke in interface Invoker
Parameters:
msg - The request Message for the wire
Returns:
The response Message from the wire