|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.servicemix.common.endpoints.AbstractEndpoint
org.apache.servicemix.common.endpoints.SimpleEndpoint
org.apache.servicemix.common.endpoints.ConsumerEndpoint
public abstract class ConsumerEndpoint
| Field Summary |
|---|
| Fields inherited from class org.apache.servicemix.common.endpoints.SimpleEndpoint |
|---|
logger |
| Fields inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint |
|---|
definition, description, endpoint, interfaceName, service, serviceUnit |
| Constructor Summary | |
|---|---|
ConsumerEndpoint()
|
|
ConsumerEndpoint(DefaultComponent component,
javax.jbi.servicedesc.ServiceEndpoint endpoint)
|
|
ConsumerEndpoint(ServiceUnit serviceUnit,
javax.xml.namespace.QName service,
java.lang.String endpoint)
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class org.apache.servicemix.common.endpoints.SimpleEndpoint |
|---|
done, fail, getChannel, getContext, getExchangeFactory, send, sendSync, start, stop |
| Methods inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint |
|---|
getDefinition, getDescription, getEndpoint, getInterfaceName, getKey, getService, getServiceUnit, isExchangeOkay, prepareExchange, process, setDefinition, setDescription, setEndpoint, setInterfaceName, setService, setServiceUnit, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ConsumerEndpoint()
public ConsumerEndpoint(ServiceUnit serviceUnit,
javax.xml.namespace.QName service,
java.lang.String endpoint)
public ConsumerEndpoint(DefaultComponent component,
javax.jbi.servicedesc.ServiceEndpoint endpoint)
| Method Detail |
|---|
public javax.jbi.messaging.MessageExchange.Role getRole()
AbstractEndpointGet the endpoint role.
getRole in interface EndpointgetRole in class AbstractEndpoint
public void activate()
throws java.lang.Exception
Endpoint
activate in interface Endpointactivate in class SimpleEndpointjava.lang.Exception
public void deactivate()
throws java.lang.Exception
Endpoint
deactivate 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
AbstractEndpoint
validate in interface Endpointvalidate in class AbstractEndpointjavax.jbi.management.DeploymentException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||