org.apache.servicemix.common
Class Endpoint

java.lang.Object
  extended by org.apache.servicemix.common.Endpoint
Direct Known Subclasses:
SimpleEndpoint

public abstract class Endpoint
extends Object


Field Summary
protected  javax.wsdl.Definition definition
           
protected  Document description
           
protected  String endpoint
           
protected  QName interfaceName
           
protected  Log logger
           
protected  QName service
           
protected  ServiceUnit serviceUnit
           
 
Constructor Summary
Endpoint()
           
Endpoint(ServiceUnit serviceUnit, QName service, String endpoint)
           
 
Method Summary
abstract  void activate()
           
abstract  void deactivate()
           
 javax.wsdl.Definition getDefinition()
           
 Document getDescription()
           
 String getEndpoint()
           
 QName getInterfaceName()
           
abstract  ExchangeProcessor getProcessor()
           
abstract  javax.jbi.messaging.MessageExchange.Role getRole()
           
 QName getService()
           
 ServiceUnit getServiceUnit()
           
 boolean isExchangeOkay(javax.jbi.messaging.MessageExchange exchange)
           
 void setDefinition(javax.wsdl.Definition definition)
           
 void setDescription(Document description)
           
 void setEndpoint(String endpoint)
           
 void setInterfaceName(QName interfaceName)
           
 void setService(QName service)
           
 void setServiceUnit(ServiceUnit serviceUnit)
           
 String toString()
           
 void validate()
          Validate the endpoint at either deployment time for statically defined endpoints or at runtime for dynamic endpoints
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

service

protected QName service

endpoint

protected String endpoint

interfaceName

protected QName interfaceName

description

protected Document description

definition

protected javax.wsdl.Definition definition

serviceUnit

protected ServiceUnit serviceUnit

logger

protected Log logger
Constructor Detail

Endpoint

public Endpoint()

Endpoint

public Endpoint(ServiceUnit serviceUnit,
                QName service,
                String endpoint)
Method Detail

getEndpoint

public String getEndpoint()
Returns:
Returns the endpoint.

setEndpoint

public void setEndpoint(String endpoint)
Parameters:
endpoint - The endpoint to set.

getService

public QName getService()
Returns:
Returns the service.

setService

public void setService(QName service)
Parameters:
service - The service to set.

getRole

public abstract javax.jbi.messaging.MessageExchange.Role getRole()
Returns:
Returns the role.

getDescription

public Document getDescription()
Returns:
Returns the description.

setDescription

public void setDescription(Document description)
Parameters:
description - The description to set.

getInterfaceName

public QName getInterfaceName()
Returns:
Returns the interfaceName.

setInterfaceName

public void setInterfaceName(QName interfaceName)
Parameters:
interfaceName - The interfaceName to set.

getServiceUnit

public ServiceUnit getServiceUnit()
Returns:
Returns the serviceUnit.

setServiceUnit

public void setServiceUnit(ServiceUnit serviceUnit)
Parameters:
serviceUnit - The serviceUnit to set.

isExchangeOkay

public boolean isExchangeOkay(javax.jbi.messaging.MessageExchange exchange)

activate

public abstract void activate()
                       throws Exception
Throws:
Exception

deactivate

public abstract void deactivate()
                         throws Exception
Throws:
Exception

getProcessor

public abstract ExchangeProcessor getProcessor()

toString

public String toString()
Overrides:
toString in class Object

validate

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

Throws:
javax.jbi.management.DeploymentException

getDefinition

public javax.wsdl.Definition getDefinition()

setDefinition

public void setDefinition(javax.wsdl.Definition definition)


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