org.apache.servicemix.exec
Class ExecEndpoint
java.lang.Object
org.apache.servicemix.common.endpoints.AbstractEndpoint
org.apache.servicemix.common.endpoints.SimpleEndpoint
org.apache.servicemix.common.endpoints.ProviderEndpoint
org.apache.servicemix.exec.ExecEndpoint
- All Implemented Interfaces:
- Endpoint
public class ExecEndpoint
- extends ProviderEndpoint
Represents an exec endpoint.
- Author:
- jbonofre
|
Method Summary |
java.lang.String |
getCommand()
|
ExecMarshalerSupport |
getMarshaler()
|
org.springframework.core.io.Resource |
getWsdl()
|
protected void |
handleProviderExchange(javax.jbi.messaging.MessageExchange exchange)
Handles on the message exchange (provider role). |
protected org.w3c.dom.Document |
parse(java.io.InputStream is)
|
void |
process(javax.jbi.messaging.MessageExchange exchange)
|
void |
setCommand(java.lang.String command)
This attribute specifies the default command to use if no is provided in
the incoming message. |
void |
setMarshaler(ExecMarshalerSupport marshaler)
With this method you can specify a marshaler class which provides the
logic for converting a message into a execution command. |
void |
setWsdl(org.springframework.core.io.Resource wsdl)
This attribute specifies the abstract WSDL describing the endpoint behavior. |
void |
validate()
|
| Methods inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint |
getDefinition, getDescription, getEndpoint, getInterfaceName, getKey, getService, getServiceUnit, isExchangeOkay, prepareExchange, setDefinition, setDescription, setEndpoint, setInterfaceName, setService, setServiceUnit, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DEFAULT_WSDL
public static final java.lang.String DEFAULT_WSDL
- See Also:
- Constant Field Values
ExecEndpoint
public ExecEndpoint()
getCommand
public java.lang.String getCommand()
setCommand
public void setCommand(java.lang.String command)
This attribute specifies the default command to use if no is provided in
the incoming message.
The default value is null.
- Parameters:
command -
getMarshaler
public ExecMarshalerSupport getMarshaler()
getWsdl
public org.springframework.core.io.Resource getWsdl()
setWsdl
public void setWsdl(org.springframework.core.io.Resource wsdl)
This attribute specifies the abstract WSDL describing the endpoint behavior.
- Parameters:
wsdl - the WSDL Resource.
setMarshaler
public void setMarshaler(ExecMarshalerSupport marshaler)
With this method you can specify a marshaler class which provides the
logic for converting a message into a execution command. This class has
to implement the interface class ExecMarshalerSupport. If
you don't specify a marshaler, the DefaultExecMarshaler will
be used.
- Parameters:
marshaler - a ExecMarshalerSupport class representing the
marshaler.
validate
public void validate()
throws javax.jbi.management.DeploymentException
- Specified by:
validate in interface Endpoint- Overrides:
validate in class AbstractEndpoint
- Throws:
javax.jbi.management.DeploymentException
parse
protected org.w3c.dom.Document parse(java.io.InputStream is)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
process
public void process(javax.jbi.messaging.MessageExchange exchange)
throws java.lang.Exception
- Specified by:
process in interface Endpoint- Overrides:
process in class ProviderEndpoint
- Throws:
java.lang.Exception
handleProviderExchange
protected void handleProviderExchange(javax.jbi.messaging.MessageExchange exchange)
throws java.lang.Exception
Handles on the message exchange (provider role).
- Parameters:
exchange - the MessageExchange.
- Throws:
java.lang.Exception
Copyright © 2005-2012 FuseSource. All Rights Reserved.