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.ComponentAware,org.apache.camel.Endpoint,org.apache.camel.IsSingleton,org.apache.camel.Service,org.apache.camel.ShutdownableService,org.apache.camel.spi.HasCamelContext,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
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final StringFields inherited from class org.apache.camel.support.component.AbstractApiEndpoint
apiName, inBody, log, methodHelper, methodNameFields 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
ConstructorsConstructorDescriptionOlingo2Endpoint(String uri, Olingo2Component component, Olingo2ApiName apiName, String methodName, Olingo2Configuration endpointConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidconfigureProperties(Map<String, Object> options) org.apache.camel.ConsumercreateConsumer(org.apache.camel.Processor processor) org.apache.camel.Producerprotected voiddoStart()protected voiddoStop()getApiProxy(org.apache.camel.support.component.ApiMethod method, Map<String, Object> args) protected org.apache.camel.support.component.ApiMethodPropertiesHelper<Olingo2Configuration> protected StringvoidinterceptProperties(Map<String, Object> properties) voidinterceptPropertyNames(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, setInBodyMethods 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, setUseFixedDelayMethods 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, toStringMethods 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, suspendMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.camel.ComponentAware
getComponent, setComponentMethods inherited from interface org.apache.camel.Endpoint
configureExchange, createAsyncProducer, createExchange, createExchange, createPollingConsumer, getCamelContext, getEndpointBaseUri, getEndpointKey, getEndpointUri, getExchangePattern, isLenientProperties, isSingletonProducer, setCamelContextMethods inherited from interface org.apache.camel.IsSingleton
isSingletonMethods inherited from interface org.apache.camel.Service
build, close, init, start, stopMethods inherited from interface org.apache.camel.ShutdownableService
shutdownMethods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspendingMethods inherited from interface org.apache.camel.SuspendableService
isSuspended, resume, suspend
-
Field Details
-
RESOURCE_PATH_PROPERTY
- See Also:
-
RESPONSE_HANDLER_PROPERTY
- See Also:
-
SERVICE_URI_PROPERTY
- See Also:
-
FILTER_ALREADY_SEEN
- See Also:
-
-
Constructor Details
-
Olingo2Endpoint
public Olingo2Endpoint(String uri, Olingo2Component component, Olingo2ApiName apiName, String methodName, Olingo2Configuration endpointConfiguration)
-
-
Method Details
-
createProducer
- Throws:
Exception
-
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:
getPropertiesHelperin classorg.apache.camel.support.component.AbstractApiEndpoint<Olingo2ApiName,Olingo2Configuration>
-
getThreadProfileName
- Specified by:
getThreadProfileNamein classorg.apache.camel.support.component.AbstractApiEndpoint<Olingo2ApiName,Olingo2Configuration>
-
configureProperties
- Specified by:
configurePropertiesin interfaceorg.apache.camel.Endpoint- Overrides:
configurePropertiesin classorg.apache.camel.support.component.AbstractApiEndpoint<Olingo2ApiName,Olingo2Configuration>
-
afterConfigureProperties
protected void afterConfigureProperties()- Specified by:
afterConfigurePropertiesin 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:
getApiProxyin classorg.apache.camel.support.component.AbstractApiEndpoint<Olingo2ApiName,Olingo2Configuration>
-
getComponent
- Specified by:
getComponentin interfaceorg.apache.camel.ComponentAware- Overrides:
getComponentin classorg.apache.camel.support.DefaultEndpoint
-
doStart
- Overrides:
doStartin classorg.apache.camel.support.service.BaseService- Throws:
Exception
-
doStop
- Overrides:
doStopin classorg.apache.camel.support.service.BaseService- Throws:
Exception
-
interceptPropertyNames
- Specified by:
interceptPropertyNamesin interfaceorg.apache.camel.support.component.PropertyNamesInterceptor- Overrides:
interceptPropertyNamesin classorg.apache.camel.support.component.AbstractApiEndpoint<Olingo2ApiName,Olingo2Configuration>
-
interceptProperties
- Specified by:
interceptPropertiesin interfaceorg.apache.camel.support.component.PropertiesInterceptor- Overrides:
interceptPropertiesin classorg.apache.camel.support.component.AbstractApiEndpoint<Olingo2ApiName,Olingo2Configuration>
-