org.apache.servicemix.jbi.messaging
Class MessageExchangeFactoryImpl

java.lang.Object
  extended by org.apache.servicemix.jbi.messaging.MessageExchangeFactoryImpl
All Implemented Interfaces:
javax.jbi.messaging.MessageExchangeFactory

public class MessageExchangeFactoryImpl
extends Object
implements javax.jbi.messaging.MessageExchangeFactory

Resolver for URI patterns

Version:
$Revision: 564607 $

Nested Class Summary
static class MessageExchangeFactoryImpl.PrettyCalendar
           
 
Constructor Summary
MessageExchangeFactoryImpl(org.apache.servicemix.id.IdGenerator idGen, AtomicBoolean closed)
          Constructor for a factory
 
Method Summary
protected  void checkNotClosed()
           
 javax.jbi.messaging.MessageExchange createExchange(QName svcName, QName opName)
          Create an exchange that points at an endpoint that conforms to the declared capabilities, requirements, and policies of both the consumer and the provider.
 javax.jbi.messaging.MessageExchange createExchange(URI pattern)
          Create an exchange from the specified pattern
 javax.jbi.messaging.InOnly createInOnlyExchange()
          create InOnly exchange
 javax.jbi.messaging.InOptionalOut createInOptionalOutExchange()
          create InOptionalOut exchange
 javax.jbi.messaging.InOut createInOutExchange()
          create InOut Exchange
 javax.jbi.messaging.RobustInOnly createRobustInOnlyExchange()
          create RobustInOnly exchange
 ComponentContextImpl getContext()
          Get the Context
 javax.jbi.servicedesc.ServiceEndpoint getEndpoint()
           
protected  String getExchangeId()
           
 QName getInterfaceName()
           
 QName getOperationName()
           
 QName getServiceName()
           
 void setContext(ComponentContextImpl context)
          Set the Context
protected  void setDefaults(MessageExchangeImpl exchange)
           
 void setEndpoint(javax.jbi.servicedesc.ServiceEndpoint endpoint)
          set endpoint
 void setInterfaceName(QName interfaceName)
          set interface name
 void setOperationName(QName operationName)
           
 void setServiceName(QName serviceName)
          set service name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageExchangeFactoryImpl

public MessageExchangeFactoryImpl(org.apache.servicemix.id.IdGenerator idGen,
                                  AtomicBoolean closed)
Constructor for a factory

Parameters:
idGen -
Method Detail

checkNotClosed

protected void checkNotClosed()
                       throws javax.jbi.messaging.MessagingException
Throws:
javax.jbi.messaging.MessagingException

createExchange

public javax.jbi.messaging.MessageExchange createExchange(URI pattern)
                                                   throws javax.jbi.messaging.MessagingException
Create an exchange from the specified pattern

Specified by:
createExchange in interface javax.jbi.messaging.MessageExchangeFactory
Parameters:
pattern -
Returns:
MessageExchange
Throws:
javax.jbi.messaging.MessagingException

createInOnlyExchange

public javax.jbi.messaging.InOnly createInOnlyExchange()
                                                throws javax.jbi.messaging.MessagingException
create InOnly exchange

Specified by:
createInOnlyExchange in interface javax.jbi.messaging.MessageExchangeFactory
Returns:
InOnly exchange
Throws:
javax.jbi.messaging.MessagingException

createRobustInOnlyExchange

public javax.jbi.messaging.RobustInOnly createRobustInOnlyExchange()
                                                            throws javax.jbi.messaging.MessagingException
create RobustInOnly exchange

Specified by:
createRobustInOnlyExchange in interface javax.jbi.messaging.MessageExchangeFactory
Returns:
RobsutInOnly exchange
Throws:
javax.jbi.messaging.MessagingException

createInOutExchange

public javax.jbi.messaging.InOut createInOutExchange()
                                              throws javax.jbi.messaging.MessagingException
create InOut Exchange

Specified by:
createInOutExchange in interface javax.jbi.messaging.MessageExchangeFactory
Returns:
InOut exchange
Throws:
javax.jbi.messaging.MessagingException

createInOptionalOutExchange

public javax.jbi.messaging.InOptionalOut createInOptionalOutExchange()
                                                              throws javax.jbi.messaging.MessagingException
create InOptionalOut exchange

Specified by:
createInOptionalOutExchange in interface javax.jbi.messaging.MessageExchangeFactory
Returns:
InOptionalOut exchange
Throws:
javax.jbi.messaging.MessagingException

createExchange

public javax.jbi.messaging.MessageExchange createExchange(QName svcName,
                                                          QName opName)
                                                   throws javax.jbi.messaging.MessagingException
Create an exchange that points at an endpoint that conforms to the declared capabilities, requirements, and policies of both the consumer and the provider.

Specified by:
createExchange in interface javax.jbi.messaging.MessageExchangeFactory
Parameters:
svcName -
opName - the WSDL name of the operation to be performed
Returns:
a message exchange that is initialized with given interfaceName, operationName, and the endpoint decided upon by JBI.
Throws:
javax.jbi.messaging.MessagingException

getExchangeId

protected String getExchangeId()

getEndpoint

public javax.jbi.servicedesc.ServiceEndpoint getEndpoint()
Returns:
endpoint

setEndpoint

public void setEndpoint(javax.jbi.servicedesc.ServiceEndpoint endpoint)
set endpoint

Parameters:
endpoint -

getInterfaceName

public QName getInterfaceName()
Returns:
interface name

setInterfaceName

public void setInterfaceName(QName interfaceName)
set interface name

Parameters:
interfaceName -

getServiceName

public QName getServiceName()
Returns:
service name

setServiceName

public void setServiceName(QName serviceName)
set service name

Parameters:
serviceName -

getOperationName

public QName getOperationName()
Returns:
Returns the operationName.

setOperationName

public void setOperationName(QName operationName)
Parameters:
operationName - The operationName to set.

getContext

public ComponentContextImpl getContext()
Get the Context

Returns:
the context

setContext

public void setContext(ComponentContextImpl context)
Set the Context

Parameters:
context -

setDefaults

protected void setDefaults(MessageExchangeImpl exchange)


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.