public abstract class ConsumerEndpoint extends SimpleEndpoint
loggerdefinition, description, endpoint, interfaceName, service, serviceUnit| Constructor and Description |
|---|
ConsumerEndpoint() |
ConsumerEndpoint(DefaultComponent component,
javax.jbi.servicedesc.ServiceEndpoint endpoint) |
ConsumerEndpoint(ServiceUnit serviceUnit,
javax.xml.namespace.QName service,
java.lang.String endpoint) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected void |
configureExchangeTarget(javax.jbi.messaging.MessageExchange exchange) |
void |
deactivate()
Unregister this endpoint from the NMR.
|
java.lang.String |
getLocationURI()
Gets the URI identifying this external endpoint.
|
javax.jbi.messaging.MessageExchange.Role |
getRole()
Get the endpoint role.
|
java.lang.String |
getTargetEndpoint()
Gets the target endpoint of the consumer one.
|
javax.xml.namespace.QName |
getTargetInterface()
Gets the target interface qualified name of the endpoint.
|
javax.xml.namespace.QName |
getTargetOperation()
Gets the target operation name of the consumer endpoint.
|
javax.xml.namespace.QName |
getTargetService()
Gets the service qualified name of the endpoint.
|
java.lang.String |
getTargetUri()
Gets the target URI of the consumer endpoint.
|
void |
setTargetEndpoint(java.lang.String targetEndpoint)
Sets the endpoint name of the target endpoint.
|
void |
setTargetInterface(javax.xml.namespace.QName targetInterface)
Sets the name of the target interface.
|
void |
setTargetOperation(javax.xml.namespace.QName targetOperation)
Sets the name of the target operation.
|
void |
setTargetService(javax.xml.namespace.QName targetService)
Sets the name of the target service.
|
void |
setTargetUri(java.lang.String targetUri)
Sets the target service/endpoint/interface using a URI.
|
void |
validate()
Validate the endpoint at either deployment time for statically defined endpoints or at runtime for dynamic endpoints
|
done, fail, getChannel, getContext, getExchangeFactory, send, sendSync, start, stopgetDefinition, getDescription, getEndpoint, getInterfaceName, getKey, getService, getServiceUnit, isExchangeOkay, prepareExchange, process, setDefinition, setDescription, setEndpoint, setInterfaceName, setService, setServiceUnit, toStringpublic ConsumerEndpoint()
public ConsumerEndpoint(ServiceUnit serviceUnit, javax.xml.namespace.QName service, java.lang.String endpoint)
public ConsumerEndpoint(DefaultComponent component, javax.jbi.servicedesc.ServiceEndpoint endpoint)
public javax.jbi.messaging.MessageExchange.Role getRole()
AbstractEndpointGet the endpoint role.
getRole in interface EndpointgetRole in class AbstractEndpointpublic void activate()
throws java.lang.Exception
Endpointactivate in interface Endpointactivate in class SimpleEndpointjava.lang.Exceptionpublic void deactivate()
throws java.lang.Exception
Endpointdeactivate in interface Endpointdeactivate in class SimpleEndpointjava.lang.Exceptionpublic java.lang.String getLocationURI()
Gets the URI identifying this external endpoint. This must be overriden so that endpoint resolution can work correctly.
public java.lang.String getTargetEndpoint()
Gets the target endpoint of the consumer one.
public void setTargetEndpoint(java.lang.String targetEndpoint)
Sets the endpoint name of the target endpoint.
targetEndpoint - a string specifiying the name of the target endpointpublic javax.xml.namespace.QName getTargetInterface()
Gets the target interface qualified name of the endpoint.
public void setTargetInterface(javax.xml.namespace.QName targetInterface)
Sets the name of the target interface.
targetInterface - a QName specifiying the name of the target interfacepublic javax.xml.namespace.QName getTargetService()
Gets the service qualified name of the endpoint.
public void setTargetService(javax.xml.namespace.QName targetService)
Sets the name of the target service.
targetService - a QName specifiying the name of the target interfacepublic javax.xml.namespace.QName getTargetOperation()
Gets the target operation name of the consumer endpoint.
public void setTargetOperation(javax.xml.namespace.QName targetOperation)
Sets the name of the target operation.
targetOperation - a QName specifiying the name of the target operationpublic java.lang.String getTargetUri()
Gets the target URI of the consumer endpoint.
public void setTargetUri(java.lang.String targetUri)
Sets the target service/endpoint/interface using a URI.
targetUri - the targetUri to setprotected void configureExchangeTarget(javax.jbi.messaging.MessageExchange exchange)
public void validate()
throws javax.jbi.management.DeploymentException
AbstractEndpointvalidate in interface Endpointvalidate in class AbstractEndpointjavax.jbi.management.DeploymentExceptionCopyright © 2005-2014 FuseSource. All Rights Reserved.