public abstract class AbstractEndpoint extends java.lang.Object implements Endpoint
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
AbstractEndpoint() |
AbstractEndpoint(ServiceUnit serviceUnit,
javax.xml.namespace.QName service,
java.lang.String endpoint) |
| Modifier and Type | Method and Description |
|---|---|
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
|
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
public AbstractEndpoint()
public AbstractEndpoint(ServiceUnit serviceUnit, javax.xml.namespace.QName service, java.lang.String endpoint)
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.
public 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 Endpointpublic void prepareExchange(javax.jbi.messaging.MessageExchange exchange)
throws javax.jbi.messaging.MessagingException
javax.jbi.messaging.MessagingExceptionpublic abstract void activate()
throws java.lang.Exception
Endpointpublic abstract void start()
throws java.lang.Exception
Endpointpublic abstract void stop()
throws java.lang.Exception
Endpointpublic abstract void deactivate()
throws java.lang.Exception
Endpointdeactivate in interface Endpointjava.lang.Exceptionpublic abstract void process(javax.jbi.messaging.MessageExchange exchange)
throws java.lang.Exception
Endpointpublic java.lang.String toString()
toString in class java.lang.Objectpublic void validate()
throws javax.jbi.management.DeploymentException
public javax.wsdl.Definition getDefinition()
public void setDefinition(javax.wsdl.Definition definition)
definition - Copyright © 2005-2014 FuseSource. All Rights Reserved.