|
||||||||||
| 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 org.w3c.dom.Document |
description
|
protected java.lang.String |
endpoint
|
protected javax.xml.namespace.QName |
interfaceName
|
protected org.apache.commons.logging.Log |
logger
|
protected javax.xml.namespace.QName |
service
|
protected ServiceUnit |
serviceUnit
|
| Constructor Summary | |
|---|---|
AbstractEndpoint()
|
|
AbstractEndpoint(ServiceUnit serviceUnit,
javax.xml.namespace.QName service,
java.lang.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()
|
org.w3c.dom.Document |
getDescription()
|
java.lang.String |
getEndpoint()
|
javax.xml.namespace.QName |
getInterfaceName()
|
java.lang.String |
getKey()
|
abstract javax.jbi.messaging.MessageExchange.Role |
getRole()
|
javax.xml.namespace.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(org.w3c.dom.Document description)
Associates an XML document with the endpoint. |
void |
setEndpoint(java.lang.String endpoint)
The name of the endpoint. |
void |
setInterfaceName(javax.xml.namespace.QName interfaceName)
The qualified name of the interface exposed by the endpoint. |
void |
setService(javax.xml.namespace.QName service)
The qualified 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. |
java.lang.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 javax.xml.namespace.QName service
protected java.lang.String endpoint
protected javax.xml.namespace.QName interfaceName
protected org.w3c.dom.Document description
protected javax.wsdl.Definition definition
protected ServiceUnit serviceUnit
protected org.apache.commons.logging.Log logger
| Constructor Detail |
|---|
public AbstractEndpoint()
public AbstractEndpoint(ServiceUnit serviceUnit,
javax.xml.namespace.QName service,
java.lang.String endpoint)
| Method Detail |
|---|
public java.lang.String getEndpoint()
getEndpoint in interface Endpointpublic void setEndpoint(java.lang.String endpoint)
endpoint - a string specifiying the name of the endpointpublic javax.xml.namespace.QName getService()
getService in interface Endpointpublic void setService(javax.xml.namespace.QName service)
service - a QName specifiying the name of the servicepublic abstract javax.jbi.messaging.MessageExchange.Role getRole()
getRole in interface Endpointpublic org.w3c.dom.Document getDescription()
getDescription in interface Endpointpublic void setDescription(org.w3c.dom.Document description)
description - a Document describing the endpointpublic javax.xml.namespace.QName getInterfaceName()
getInterfaceName in interface Endpointpublic void setInterfaceName(javax.xml.namespace.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 java.lang.Exception
Endpoint
activate in interface Endpointjava.lang.Exception
public abstract void start()
throws java.lang.Exception
Endpoint
start in interface Endpointjava.lang.Exception
public abstract void stop()
throws java.lang.Exception
Endpoint
stop in interface Endpointjava.lang.Exception
public abstract void deactivate()
throws java.lang.Exception
Endpoint
deactivate in interface Endpointjava.lang.Exception
public abstract void process(javax.jbi.messaging.MessageExchange exchange)
throws java.lang.Exception
Endpoint
process in interface Endpointjava.lang.Exceptionpublic java.lang.String toString()
toString in class java.lang.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)
definition - public java.lang.String getKey()
getKey in interface Endpoint
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||