org.apache.servicemix.common.endpoints
Class ConsumerEndpoint

java.lang.Object
  extended by org.apache.servicemix.common.Endpoint
      extended by org.apache.servicemix.common.endpoints.SimpleEndpoint
          extended by org.apache.servicemix.common.endpoints.ConsumerEndpoint
All Implemented Interfaces:
ExchangeProcessor
Direct Known Subclasses:
PollingEndpoint

public abstract class ConsumerEndpoint
extends SimpleEndpoint


Field Summary
 
Fields inherited from class org.apache.servicemix.common.Endpoint
definition, description, endpoint, interfaceName, logger, service, serviceUnit
 
Constructor Summary
ConsumerEndpoint()
           
ConsumerEndpoint(DefaultComponent component, javax.jbi.servicedesc.ServiceEndpoint endpoint)
           
ConsumerEndpoint(ServiceUnit serviceUnit, QName service, String endpoint)
           
 
Method Summary
protected  void configureExchangeTarget(javax.jbi.messaging.MessageExchange exchange)
           
abstract  String getLocationURI()
           
 javax.jbi.messaging.MessageExchange.Role getRole()
           
 String getTargetEndpoint()
           
 QName getTargetInterface()
           
 QName getTargetOperation()
           
 QName getTargetService()
           
 String getTargetUri()
           
 void setTargetEndpoint(String targetEndpoint)
           
 void setTargetInterface(QName targetInterface)
           
 void setTargetOperation(QName targetOperation)
           
 void setTargetService(QName targetService)
           
 void setTargetUri(String targetUri)
           
 void start()
           
 void stop()
           
 void validate()
          Validate the endpoint at either deployment time for statically defined endpoints or at runtime for dynamic endpoints
 
Methods inherited from class org.apache.servicemix.common.endpoints.SimpleEndpoint
activate, deactivate, done, fail, getChannel, getContext, getExchangeFactory, getProcessor, send, sendSync
 
Methods inherited from class org.apache.servicemix.common.Endpoint
getDefinition, getDescription, getEndpoint, getInterfaceName, getService, getServiceUnit, isExchangeOkay, setDefinition, setDescription, setEndpoint, setInterfaceName, setService, setServiceUnit, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.servicemix.common.ExchangeProcessor
process
 

Constructor Detail

ConsumerEndpoint

public ConsumerEndpoint()

ConsumerEndpoint

public ConsumerEndpoint(ServiceUnit serviceUnit,
                        QName service,
                        String endpoint)

ConsumerEndpoint

public ConsumerEndpoint(DefaultComponent component,
                        javax.jbi.servicedesc.ServiceEndpoint endpoint)
Method Detail

getRole

public javax.jbi.messaging.MessageExchange.Role getRole()
Specified by:
getRole in class Endpoint
Returns:
Returns the role.

start

public void start()
           throws Exception
Throws:
Exception

stop

public void stop()
          throws Exception
Throws:
Exception

getLocationURI

public abstract String getLocationURI()

getTargetEndpoint

public String getTargetEndpoint()
Returns:
the targetEndpoint

setTargetEndpoint

public void setTargetEndpoint(String targetEndpoint)
Parameters:
targetEndpoint - the targetEndpoint to set

getTargetInterface

public QName getTargetInterface()
Returns:
the targetInterface

setTargetInterface

public void setTargetInterface(QName targetInterface)
Parameters:
targetInterface - the targetInterface to set

getTargetService

public QName getTargetService()
Returns:
the targetService

setTargetService

public void setTargetService(QName targetService)
Parameters:
targetService - the targetService to set

getTargetOperation

public QName getTargetOperation()
Returns:
the targetOperation

setTargetOperation

public void setTargetOperation(QName targetOperation)
Parameters:
targetOperation - the targetOperation to set

getTargetUri

public String getTargetUri()
Returns:
the targetUri

setTargetUri

public void setTargetUri(String targetUri)
Parameters:
targetUri - the targetUri to set

configureExchangeTarget

protected void configureExchangeTarget(javax.jbi.messaging.MessageExchange exchange)

validate

public void validate()
              throws javax.jbi.management.DeploymentException
Description copied from class: Endpoint
Validate the endpoint at either deployment time for statically defined endpoints or at runtime for dynamic endpoints

Overrides:
validate in class Endpoint
Throws:
javax.jbi.management.DeploymentException


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