@UriEndpoint(scheme="xmlrpc", title="XML RPC", syntax="xmlrpc:address", producerOnly=true, label="transformation") public class XmlRpcEndpoint extends DefaultEndpoint
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
Constructor and Description |
---|
XmlRpcEndpoint() |
XmlRpcEndpoint(String uri,
XmlRpcComponent component,
String address) |
Modifier and Type | Method and Description |
---|---|
org.apache.xmlrpc.client.XmlRpcClient |
createClient() |
Consumer |
createConsumer(Processor processor)
Creates a new Event
Driven Consumer which consumes messages from the endpoint using the
given processor
|
Producer |
createProducer()
Creates a new producer which is used send messages into the endpoint
|
protected void |
doStart()
Implementations override this method to support customized start/stop.
|
String |
getAddress() |
org.apache.xmlrpc.client.XmlRpcClientConfigImpl |
getClientConfig() |
XmlRpcClientConfigurer |
getClientConfigurer() |
XmlRpcConfiguration |
getConfiguration() |
String |
getDefaultMethodName() |
boolean |
isSingleton()
Whether this class supports being singleton or not.
|
void |
setAddress(String address)
The server url
|
void |
setClientConfig(org.apache.xmlrpc.client.XmlRpcClientConfigImpl config)
To use the given XmlRpcClientConfigImpl as configuration for the client.
|
void |
setClientConfigurer(XmlRpcClientConfigurer configurer)
To use a custom XmlRpcClientConfigurer to configure the client
|
void |
setConfiguration(XmlRpcConfiguration configuration) |
void |
setDefaultMethodName(String defaultMethodName)
The method name which would be used for the xmlrpc requests by default, if the Message header CamelXmlRpcMethodName is not set.
|
configureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStop, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isBridgeErrorHandler, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setBridgeErrorHandler, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toString
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public XmlRpcEndpoint()
public XmlRpcEndpoint(String uri, XmlRpcComponent component, String address)
public Producer createProducer() throws Exception
Endpoint
Exception
- can be thrownpublic Consumer createConsumer(Processor processor) throws Exception
Endpoint
processor
- the given processorException
- can be thrownpublic boolean isSingleton()
IsSingleton
public org.apache.xmlrpc.client.XmlRpcClient createClient() throws MalformedURLException
MalformedURLException
public String getAddress()
public void setAddress(String address)
public XmlRpcClientConfigurer getClientConfigurer()
public void setClientConfigurer(XmlRpcClientConfigurer configurer)
public void setClientConfig(org.apache.xmlrpc.client.XmlRpcClientConfigImpl config)
public org.apache.xmlrpc.client.XmlRpcClientConfigImpl getClientConfig()
public String getDefaultMethodName()
public void setDefaultMethodName(String defaultMethodName)
public XmlRpcConfiguration getConfiguration()
public void setConfiguration(XmlRpcConfiguration configuration)
protected void doStart() throws Exception
ServiceSupport
ServiceSupport.doStop()
for more details.doStart
in class DefaultEndpoint
Exception
ServiceSupport.doStop()
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.