|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.servicemix.common.endpoints.AbstractEndpoint
public abstract class AbstractEndpoint
| 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 | |
|---|---|
AbstractEndpoint()
|
|
AbstractEndpoint(ServiceUnit serviceUnit,
QName service,
String endpoint)
|
|
| Method Summary | |
|---|---|
abstract void |
activate()
Register this endpoint into the NMR and put the endpoint in a STOPPED state, where the endpoint is able to process incoming requests, but won't consume external requests such as JMS messages or HTTP requests. |
abstract void |
deactivate()
Unregister this endpoint from the NMR. |
javax.wsdl.Definition |
getDefinition()
|
Document |
getDescription()
|
String |
getEndpoint()
|
QName |
getInterfaceName()
|
String |
getKey()
|
abstract javax.jbi.messaging.MessageExchange.Role |
getRole()
|
QName |
getService()
|
ServiceUnit |
getServiceUnit()
|
boolean |
isExchangeOkay(javax.jbi.messaging.MessageExchange exchange)
|
void |
prepareExchange(javax.jbi.messaging.MessageExchange exchange)
|
abstract void |
process(javax.jbi.messaging.MessageExchange exchange)
Process an incoming JBI exchange. |
void |
setDefinition(javax.wsdl.Definition definition)
|
void |
setDescription(Document description)
Associates an XML document with the endpoint. |
void |
setEndpoint(String endpoint)
Sets the name of the endpoint. |
void |
setInterfaceName(QName interfaceName)
Sets the QName of the interface exposed by the endpoint. |
void |
setService(QName service)
Sets the name of the service the endpoint exposes. |
void |
setServiceUnit(ServiceUnit serviceUnit)
Associates an endpoint with a service unit. |
abstract void |
start()
Start consumption of external requests. |
abstract void |
stop()
Stop consumption of external requests. |
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 |
|---|
protected QName service
protected String endpoint
protected QName interfaceName
protected Document description
protected javax.wsdl.Definition definition
protected ServiceUnit serviceUnit
protected Log logger
| Constructor Detail |
|---|
public AbstractEndpoint()
public AbstractEndpoint(ServiceUnit serviceUnit,
QName service,
String endpoint)
| Method Detail |
|---|
public String getEndpoint()
getEndpoint in interface Endpointpublic void setEndpoint(String endpoint)
endpoint - a string specifiying the name of the endpointpublic QName getService()
getService in interface Endpointpublic void setService(QName service)
service - a QName specifiying the name of the servicepublic abstract javax.jbi.messaging.MessageExchange.Role getRole()
getRole in interface Endpointpublic Document getDescription()
getDescription in interface Endpointpublic void setDescription(Document description)
description - a Document describing the endpointpublic QName getInterfaceName()
getInterfaceName in interface Endpointpublic void setInterfaceName(QName interfaceName)
interfaceName - a QName specifiying the name of the interfacepublic ServiceUnit getServiceUnit()
getServiceUnit in interface Endpointpublic void setServiceUnit(ServiceUnit serviceUnit)
setServiceUnit in interface EndpointserviceUnit - a ServiceUnit to which the endpoint will be associatedpublic boolean isExchangeOkay(javax.jbi.messaging.MessageExchange exchange)
isExchangeOkay in interface Endpoint
public void prepareExchange(javax.jbi.messaging.MessageExchange exchange)
throws javax.jbi.messaging.MessagingException
javax.jbi.messaging.MessagingException
public abstract void activate()
throws Exception
Endpoint
activate in interface EndpointException
public abstract void start()
throws Exception
Endpoint
start in interface EndpointException
public abstract void stop()
throws Exception
Endpoint
stop in interface EndpointException
public abstract void deactivate()
throws Exception
Endpoint
deactivate in interface EndpointException
public abstract void process(javax.jbi.messaging.MessageExchange exchange)
throws Exception
Endpoint
process in interface EndpointExceptionpublic String toString()
toString in class Object
public void validate()
throws javax.jbi.management.DeploymentException
validate in interface Endpointjavax.jbi.management.DeploymentExceptionpublic javax.wsdl.Definition getDefinition()
public void setDefinition(javax.wsdl.Definition definition)
public String getKey()
getKey in interface Endpoint
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||