Class Olingo2Endpoint
- java.lang.Object
-
- org.apache.camel.support.service.BaseService
-
- org.apache.camel.support.service.ServiceSupport
-
- org.apache.camel.support.DefaultEndpoint
-
- org.apache.camel.support.ScheduledPollEndpoint
-
- org.apache.camel.support.component.AbstractApiEndpoint<Olingo2ApiName,Olingo2Configuration>
-
- org.apache.camel.component.olingo2.Olingo2Endpoint
-
- All Implemented Interfaces:
AutoCloseable
,org.apache.camel.ApiEndpoint
,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.support.component.PropertiesInterceptor
,org.apache.camel.support.component.PropertyNamesInterceptor
,org.apache.camel.SuspendableService
@UriEndpoint(firstVersion="2.14.0", scheme="olingo2", title="Olingo2", syntax="olingo2:apiName/methodName", apiSyntax="apiName/methodName", category=CLOUD, headersClass=Olingo2Constants.class) public class Olingo2Endpoint extends org.apache.camel.support.component.AbstractApiEndpoint<Olingo2ApiName,Olingo2Configuration>
Communicate with OData 2.0 services using Apache Olingo.
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
FILTER_ALREADY_SEEN
protected static String
RESOURCE_PATH_PROPERTY
protected static String
RESPONSE_HANDLER_PROPERTY
protected static String
SERVICE_URI_PROPERTY
-
Constructor Summary
Constructors Constructor Description Olingo2Endpoint(String uri, Olingo2Component component, Olingo2ApiName apiName, String methodName, Olingo2Configuration endpointConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
afterConfigureProperties()
void
configureProperties(Map<String,Object> options)
org.apache.camel.Consumer
createConsumer(org.apache.camel.Processor processor)
org.apache.camel.Producer
createProducer()
protected void
doStart()
protected void
doStop()
Object
getApiProxy(org.apache.camel.support.component.ApiMethod method, Map<String,Object> args)
Olingo2Component
getComponent()
protected org.apache.camel.support.component.ApiMethodPropertiesHelper<Olingo2Configuration>
getPropertiesHelper()
protected String
getThreadProfileName()
void
interceptProperties(Map<String,Object> properties)
void
interceptPropertyNames(Set<String> propertyNames)
-
Methods inherited from class org.apache.camel.support.component.AbstractApiEndpoint
configureConsumer, getApiName, getCandidates, getConfiguration, getConfigurationProperties, getConfigurationPropertyNames, getEndpointProperties, getEndpointPropertyNames, getExecutorService, getInBody, getMethodHelper, getMethodName, setInBody
-
Methods inherited from class org.apache.camel.support.ScheduledPollEndpoint
configureScheduledPollConsumerProperties, doConfigureConsumer, getBackoffErrorThreshold, getBackoffIdleThreshold, getBackoffMultiplier, getDefaultDelay, getDelay, getInitialDelay, getPollStrategy, getRepeatCount, getRunLoggingLevel, getScheduledExecutorService, getScheduler, getSchedulerProperties, getTimeUnit, isGreedy, isSendEmptyMessageWhenIdle, isStartScheduler, isUseFixedDelay, setBackoffErrorThreshold, setBackoffIdleThreshold, setBackoffMultiplier, setDelay, setGreedy, setInitialDelay, setPollStrategy, setRepeatCount, setRunLoggingLevel, setScheduledExecutorService, setScheduler, setSchedulerProperties, setSendEmptyMessageWhenIdle, setStartScheduler, setTimeUnit, setUseFixedDelay
-
Methods inherited from class org.apache.camel.support.DefaultEndpoint
configureExchange, configurePollingConsumer, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, doInit, equals, getCamelContext, 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
configureExchange, createAsyncProducer, createExchange, createExchange, createPollingConsumer, getCamelContext, getEndpointBaseUri, getEndpointKey, getEndpointUri, getExchangePattern, isLenientProperties, isSingletonProducer, setCamelContext
-
-
-
-
Field Detail
-
RESOURCE_PATH_PROPERTY
protected static final String RESOURCE_PATH_PROPERTY
- See Also:
- Constant Field Values
-
RESPONSE_HANDLER_PROPERTY
protected static final String RESPONSE_HANDLER_PROPERTY
- See Also:
- Constant Field Values
-
SERVICE_URI_PROPERTY
protected static final String SERVICE_URI_PROPERTY
- See Also:
- Constant Field Values
-
FILTER_ALREADY_SEEN
protected static final String FILTER_ALREADY_SEEN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Olingo2Endpoint
public Olingo2Endpoint(String uri, Olingo2Component component, Olingo2ApiName apiName, String methodName, Olingo2Configuration endpointConfiguration)
-
-
Method Detail
-
createConsumer
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor) throws Exception
- Throws:
Exception
-
getPropertiesHelper
protected org.apache.camel.support.component.ApiMethodPropertiesHelper<Olingo2Configuration> getPropertiesHelper()
- Specified by:
getPropertiesHelper
in classorg.apache.camel.support.component.AbstractApiEndpoint<Olingo2ApiName,Olingo2Configuration>
-
getThreadProfileName
protected String getThreadProfileName()
- Specified by:
getThreadProfileName
in classorg.apache.camel.support.component.AbstractApiEndpoint<Olingo2ApiName,Olingo2Configuration>
-
configureProperties
public void configureProperties(Map<String,Object> options)
- Specified by:
configureProperties
in interfaceorg.apache.camel.Endpoint
- Overrides:
configureProperties
in classorg.apache.camel.support.component.AbstractApiEndpoint<Olingo2ApiName,Olingo2Configuration>
-
afterConfigureProperties
protected void afterConfigureProperties()
- Specified by:
afterConfigureProperties
in classorg.apache.camel.support.component.AbstractApiEndpoint<Olingo2ApiName,Olingo2Configuration>
-
getApiProxy
public Object getApiProxy(org.apache.camel.support.component.ApiMethod method, Map<String,Object> args)
- Specified by:
getApiProxy
in classorg.apache.camel.support.component.AbstractApiEndpoint<Olingo2ApiName,Olingo2Configuration>
-
getComponent
public Olingo2Component getComponent()
- Overrides:
getComponent
in classorg.apache.camel.support.DefaultEndpoint
-
doStart
protected void doStart() throws Exception
- Overrides:
doStart
in classorg.apache.camel.support.ScheduledPollEndpoint
- Throws:
Exception
-
doStop
protected void doStop() throws Exception
- Overrides:
doStop
in classorg.apache.camel.support.ScheduledPollEndpoint
- Throws:
Exception
-
interceptPropertyNames
public void interceptPropertyNames(Set<String> propertyNames)
- Specified by:
interceptPropertyNames
in interfaceorg.apache.camel.support.component.PropertyNamesInterceptor
- Overrides:
interceptPropertyNames
in classorg.apache.camel.support.component.AbstractApiEndpoint<Olingo2ApiName,Olingo2Configuration>
-
interceptProperties
public void interceptProperties(Map<String,Object> properties)
- Specified by:
interceptProperties
in interfaceorg.apache.camel.support.component.PropertiesInterceptor
- Overrides:
interceptProperties
in classorg.apache.camel.support.component.AbstractApiEndpoint<Olingo2ApiName,Olingo2Configuration>
-
-