org.apache.servicemix.common.endpoints
Class ConsumerEndpoint
java.lang.Object
org.apache.servicemix.common.Endpoint
org.apache.servicemix.common.endpoints.SimpleEndpoint
org.apache.servicemix.common.endpoints.ConsumerEndpoint
- All Implemented Interfaces:
- ExchangeProcessor
- Direct Known Subclasses:
- PollingEndpoint
public abstract class ConsumerEndpoint
- extends SimpleEndpoint
| Methods inherited from class org.apache.servicemix.common.Endpoint |
getDefinition, getDescription, getEndpoint, getInterfaceName, getService, getServiceUnit, isExchangeOkay, setDefinition, setDescription, setEndpoint, setInterfaceName, setService, setServiceUnit, toString |
ConsumerEndpoint
public ConsumerEndpoint()
ConsumerEndpoint
public ConsumerEndpoint(ServiceUnit serviceUnit,
QName service,
String endpoint)
ConsumerEndpoint
public ConsumerEndpoint(DefaultComponent component,
javax.jbi.servicedesc.ServiceEndpoint endpoint)
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.