Class Olingo2Configuration
java.lang.Object
org.apache.camel.component.olingo2.Olingo2Configuration
- Direct Known Subclasses:
Olingo2AppEndpointConfiguration
Component configuration for Olingo2 component.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintorg.apache.olingo.odata2.api.ep.EntityProviderReadPropertiesorg.apache.olingo.odata2.api.ep.EntityProviderWritePropertiesorg.apache.http.impl.nio.client.HttpAsyncClientBuilderorg.apache.http.impl.client.HttpClientBuilderorg.apache.http.HttpHostgetProxy()intorg.apache.camel.support.jsse.SSLContextParametersinthashCode()booleanFilter flag for filtering out already seen resultsbooleanvoidsetApiName(Olingo2ApiName apiName) What kind of operation to performvoidsetConnectTimeout(int connectTimeout) HTTP connection creation timeout in milliseconds, defaults to 30,000 (30 seconds)voidsetContentType(String contentType) Content-Type header value can be used to specify JSON or XML message format, defaults to application/json;charset=utf-8voidsetEntityProviderReadProperties(org.apache.olingo.odata2.api.ep.EntityProviderReadProperties entityProviderReadProperties) Custom entity provider read properties applied to all read operations.voidsetEntityProviderWriteProperties(org.apache.olingo.odata2.api.ep.EntityProviderWriteProperties entityProviderWriteProperties) Custom entity provider write properties applied to create, update, patch, batch and merge operations.voidsetFilterAlreadySeen(boolean filterAlreadySeen) Set this to true to filter out results that have already been communicated by this component.voidsetHttpAsyncClientBuilder(org.apache.http.impl.nio.client.HttpAsyncClientBuilder httpAsyncClientBuilder) Custom HTTP async client builder for more complex HTTP client configuration, overrides connectionTimeout, socketTimeout, proxy and sslContext.voidsetHttpClientBuilder(org.apache.http.impl.client.HttpClientBuilder httpClientBuilder) Custom HTTP client builder for more complex HTTP client configuration, overrides connectionTimeout, socketTimeout, proxy and sslContext.voidsetHttpHeaders(Map<String, String> httpHeaders) Custom HTTP headers to inject into every request, this could include OAuth tokens, etc.voidsetMethodName(String methodName) What sub operation to use for the selected operationvoidsetProxy(org.apache.http.HttpHost proxy) HTTP proxy server configurationvoidsetServiceUri(String serviceUri) Target OData service base URI, e.g.voidsetSocketTimeout(int socketTimeout) HTTP request timeout in milliseconds, defaults to 30,000 (30 seconds)voidsetSplitResult(boolean splitResult) For endpoints that return an array or collection, a consumer endpoint will map every element to distinct messages, unless splitResult is set to false.voidsetSslContextParameters(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters) To configure security using SSLContextParameters
-
Constructor Details
-
Olingo2Configuration
public Olingo2Configuration()
-
-
Method Details
-
getApiName
-
setApiName
What kind of operation to perform -
getMethodName
-
setMethodName
What sub operation to use for the selected operation -
getServiceUri
-
setServiceUri
Target OData service base URI, e.g. http://services.odata.org/OData/OData.svc -
getContentType
-
setContentType
Content-Type header value can be used to specify JSON or XML message format, defaults to application/json;charset=utf-8 -
getHttpHeaders
-
setHttpHeaders
Custom HTTP headers to inject into every request, this could include OAuth tokens, etc. -
getEntityProviderReadProperties
public org.apache.olingo.odata2.api.ep.EntityProviderReadProperties getEntityProviderReadProperties() -
setEntityProviderReadProperties
public void setEntityProviderReadProperties(org.apache.olingo.odata2.api.ep.EntityProviderReadProperties entityProviderReadProperties) Custom entity provider read properties applied to all read operations. -
getEntityProviderWriteProperties
public org.apache.olingo.odata2.api.ep.EntityProviderWriteProperties getEntityProviderWriteProperties() -
setEntityProviderWriteProperties
public void setEntityProviderWriteProperties(org.apache.olingo.odata2.api.ep.EntityProviderWriteProperties entityProviderWriteProperties) Custom entity provider write properties applied to create, update, patch, batch and merge operations. For instance users can skip the Json object wrapper or enable content only mode when sending request data. A service URI set in the properties will always be overwritten by the serviceUri configuration parameter. Please consider to using the serviceUri configuration parameter instead of setting the respective write property here. -
getConnectTimeout
public int getConnectTimeout() -
setConnectTimeout
public void setConnectTimeout(int connectTimeout) HTTP connection creation timeout in milliseconds, defaults to 30,000 (30 seconds) -
getSocketTimeout
public int getSocketTimeout() -
setSocketTimeout
public void setSocketTimeout(int socketTimeout) HTTP request timeout in milliseconds, defaults to 30,000 (30 seconds) -
getProxy
public org.apache.http.HttpHost getProxy() -
setProxy
public void setProxy(org.apache.http.HttpHost proxy) HTTP proxy server configuration -
getSslContextParameters
public org.apache.camel.support.jsse.SSLContextParameters getSslContextParameters() -
setSslContextParameters
public void setSslContextParameters(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters) To configure security using SSLContextParameters -
getHttpAsyncClientBuilder
public org.apache.http.impl.nio.client.HttpAsyncClientBuilder getHttpAsyncClientBuilder() -
setHttpAsyncClientBuilder
public void setHttpAsyncClientBuilder(org.apache.http.impl.nio.client.HttpAsyncClientBuilder httpAsyncClientBuilder) Custom HTTP async client builder for more complex HTTP client configuration, overrides connectionTimeout, socketTimeout, proxy and sslContext. Note that a socketTimeout MUST be specified in the builder, otherwise OData requests could block indefinitely -
getHttpClientBuilder
public org.apache.http.impl.client.HttpClientBuilder getHttpClientBuilder() -
setHttpClientBuilder
public void setHttpClientBuilder(org.apache.http.impl.client.HttpClientBuilder httpClientBuilder) Custom HTTP client builder for more complex HTTP client configuration, overrides connectionTimeout, socketTimeout, proxy and sslContext. Note that a socketTimeout MUST be specified in the builder, otherwise OData requests could block indefinitely -
isFilterAlreadySeen
public boolean isFilterAlreadySeen()Filter flag for filtering out already seen results -
setFilterAlreadySeen
public void setFilterAlreadySeen(boolean filterAlreadySeen) Set this to true to filter out results that have already been communicated by this component. -
isSplitResult
public boolean isSplitResult() -
setSplitResult
public void setSplitResult(boolean splitResult) For endpoints that return an array or collection, a consumer endpoint will map every element to distinct messages, unless splitResult is set to false. -
hashCode
public int hashCode() -
equals
-