|
||||||||||
| 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.slf4j.Logger |
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()
Get the endpoint description. |
java.lang.String |
getEndpoint()
Get the endpoint implementation. |
javax.xml.namespace.QName |
getInterfaceName()
Get the qualified name of the endpoint interface. |
java.lang.String |
getKey()
|
abstract javax.jbi.messaging.MessageExchange.Role |
getRole()
Get the endpoint role. |
javax.xml.namespace.QName |
getService()
Get the service qualified name of the endpoint. |
ServiceUnit |
getServiceUnit()
Get the service unit associated to the endpoint. |
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.slf4j.Logger 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()
Get the endpoint implementation.
getEndpoint in interface Endpointpublic void setEndpoint(java.lang.String endpoint)
The name of the endpoint.
endpoint - a string specifiying the name of the endpointpublic javax.xml.namespace.QName getService()
Get the service qualified name of the endpoint.
getService in interface Endpointpublic void setService(javax.xml.namespace.QName service)
The qualified name of the service the endpoint exposes.
service - a QName specifiying the name of the servicepublic abstract javax.jbi.messaging.MessageExchange.Role getRole()
Get the endpoint role.
getRole in interface Endpointpublic org.w3c.dom.Document getDescription()
Get the endpoint description.
getDescription in interface Endpointpublic void setDescription(org.w3c.dom.Document description)
Associates an XML document with the endpoint. The XML document describes the endpoint and is typically found in the service unit packaging.
description - a Document describing the endpointpublic javax.xml.namespace.QName getInterfaceName()
Get the qualified name of the endpoint interface.
getInterfaceName in interface Endpointpublic void setInterfaceName(javax.xml.namespace.QName interfaceName)
The qualified name of the interface exposed by the endpoint.
interfaceName - a QName specifiying the name of the interfacepublic ServiceUnit getServiceUnit()
Get the service unit associated to the endpoint.
getServiceUnit in interface Endpointpublic void setServiceUnit(ServiceUnit serviceUnit)
Associates an endpoint with a service unit. The service unit is used by the container to manage the endpoint's lifecycle.
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 | |||||||||