Class Olingo2Configuration

java.lang.Object
org.apache.camel.component.olingo2.Olingo2Configuration
Direct Known Subclasses:
Olingo2AppEndpointConfiguration

@UriParams @Configurer(extended=true) public class Olingo2Configuration extends Object
Component configuration for Olingo2 component.
  • Constructor Details

    • Olingo2Configuration

      public Olingo2Configuration()
  • Method Details

    • getApiName

      public Olingo2ApiName getApiName()
    • setApiName

      public void setApiName(Olingo2ApiName apiName)
      What kind of operation to perform
    • getMethodName

      public String getMethodName()
    • setMethodName

      public void setMethodName(String methodName)
      What sub operation to use for the selected operation
    • getServiceUri

      public String getServiceUri()
    • setServiceUri

      public void setServiceUri(String serviceUri)
      Target OData service base URI, e.g. http://services.odata.org/OData/OData.svc
    • getContentType

      public String getContentType()
    • setContentType

      public void setContentType(String contentType)
      Content-Type header value can be used to specify JSON or XML message format, defaults to application/json;charset=utf-8
    • getHttpHeaders

      public Map<String,String> getHttpHeaders()
    • setHttpHeaders

      public void setHttpHeaders(Map<String,String> httpHeaders)
      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()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object