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.DefaultEndpoint
Send requests to SAP NetWeaver Gateway using HTTP.
  • Field Summary

    Fields inherited from class org.apache.camel.support.service.BaseService

    BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING
  • Constructor Summary

    Constructors
    Constructor
    Description
    NetWeaverEndpoint(String endpointUri, org.apache.camel.Component component)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.camel.Consumer
    createConsumer(org.apache.camel.Processor processor)
     
    org.apache.camel.Producer
     
     
     
     
    boolean
     
    boolean
     
    boolean
     
    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.
    void
    setJson(boolean json)
    Whether to return data in JSON format.
    void
    setJsonAsMap(boolean jsonAsMap)
    To transform the JSON from a String to a Map in the message body.
    void
    setPassword(String password)
    Password for account.
    void
    Url to the SAP net-weaver gateway server.
    void
    setUsername(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

    Methods inherited from interface org.apache.camel.Endpoint

    getEndpointBaseUri, isSingletonProducer

    Methods inherited from interface org.apache.camel.Service

    build, close, init, start, stop

    Methods inherited from interface org.apache.camel.ShutdownableService

    shutdown

    Methods inherited from interface org.apache.camel.StatefulService

    getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspending

    Methods inherited from interface org.apache.camel.SuspendableService

    isSuspended, resume, suspend
  • Constructor Details

    • NetWeaverEndpoint

      public NetWeaverEndpoint(String endpointUri, org.apache.camel.Component component)
  • Method Details

    • createProducer

      public org.apache.camel.Producer createProducer() throws Exception
      Throws:
      Exception
    • 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.