Class NetWeaverEndpoint
- java.lang.Object
-
- org.apache.camel.support.service.BaseService
-
- org.apache.camel.support.service.ServiceSupport
-
- org.apache.camel.support.DefaultEndpoint
-
- org.apache.camel.component.sap.netweaver.NetWeaverEndpoint
-
- All Implemented Interfaces:
AutoCloseable,org.apache.camel.CamelContextAware,org.apache.camel.Endpoint,org.apache.camel.IsSingleton,org.apache.camel.Service,org.apache.camel.ShutdownableService,org.apache.camel.spi.HasId,org.apache.camel.StatefulService,org.apache.camel.SuspendableService
@UriEndpoint(firstVersion="2.12.0", scheme="sap-netweaver", title="SAP NetWeaver", syntax="sap-netweaver:url", producerOnly=true, category={SAP,CLOUD,API}, headersClass=NetWeaverConstants.class) public class NetWeaverEndpoint extends org.apache.camel.support.DefaultEndpointSend requests to SAP NetWeaver Gateway using HTTP.
-
-
Constructor Summary
Constructors Constructor Description NetWeaverEndpoint(String endpointUri, org.apache.camel.Component component)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.camel.ConsumercreateConsumer(org.apache.camel.Processor processor)org.apache.camel.ProducercreateProducer()StringgetPassword()StringgetUrl()StringgetUsername()booleanisFlatternMap()booleanisJson()booleanisJsonAsMap()voidsetFlatternMap(boolean flatternMap)If the JSON Map contains only a single entry, then flattern by storing that single entry value as the message body.voidsetJson(boolean json)Whether to return data in JSON format.voidsetJsonAsMap(boolean jsonAsMap)To transform the JSON from a String to a Map in the message body.voidsetPassword(String password)Password for account.voidsetUrl(String url)Url to the SAP net-weaver gateway server.voidsetUsername(String username)Username for account.-
Methods inherited from class org.apache.camel.support.DefaultEndpoint
configureConsumer, configureExchange, configurePollingConsumer, configureProperties, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, doInit, doStart, doStop, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isPollingConsumerCopy, isSingleton, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setComponent, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerCopy, setPollingConsumerQueueSize, setProperties, toString
-
Methods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Constructor Detail
-
NetWeaverEndpoint
public NetWeaverEndpoint(String endpointUri, org.apache.camel.Component component)
-
-
Method Detail
-
createConsumer
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor) throws Exception- Throws:
Exception
-
getUrl
public String getUrl()
-
setUrl
public void setUrl(String url)
Url to the SAP net-weaver gateway server.
-
getUsername
public String getUsername()
-
setUsername
public void setUsername(String username)
Username for account.
-
getPassword
public String getPassword()
-
setPassword
public void setPassword(String password)
Password for account.
-
isJson
public boolean isJson()
-
setJson
public void setJson(boolean json)
Whether to return data in JSON format. If this option is false, then XML is returned in Atom format.
-
isJsonAsMap
public boolean isJsonAsMap()
-
setJsonAsMap
public void setJsonAsMap(boolean jsonAsMap)
To transform the JSON from a String to a Map in the message body.
-
isFlatternMap
public boolean isFlatternMap()
-
setFlatternMap
public void setFlatternMap(boolean flatternMap)
If the JSON Map contains only a single entry, then flattern by storing that single entry value as the message body.
-
-