Box
Upload, download and manage the files, folders, comments, collaborations, tasks, groups and users of Box, and receive the events of a Box user.
What’s inside
-
Box component, URI syntax:
box:apiName/methodName
Please refer to the above links for usage and configuration details.
Maven coordinates
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-box-starter</artifactId>
</dependency> Spring Boot Auto-Configuration
The starter supports 20 options, which are listed below.
| Name | Description | Default | Type |
|---|---|---|---|
camel.component.box.access-token-cache | The cache of the access tokens of APP_USER_AUTHENTICATION and APP_ENTERPRISE_AUTHENTICATION. When not set, an in-memory LRU cache with maxCacheEntries entries is used. The option is a com.box.sdk.IAccessTokenCache type. | IAccessTokenCache | |
camel.component.box.authentication-type | How the component authenticates to Box: APP_USER_AUTHENTICATION (OAuth 2.0 with a JWT assertion, as the app user of userId), APP_ENTERPRISE_AUTHENTICATION (OAuth 2.0 with a JWT assertion, as the service account of the enterprise of enterpriseId) or STANDARD_AUTHENTICATION (OAuth 2.0 with an authorization code, which the component gets by logging in to Box with userName and userPassword; it fails when the account uses 2-step verification). | APP_USER_AUTHENTICATION | String |
camel.component.box.autowired-enabled | Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc. | true | Boolean |
camel.component.box.bridge-error-handler | Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. Important: This is only possible if the 3rd party component allows Camel to be alerted if an exception was thrown. Some components handle this internally only, and therefore bridgeErrorHandler is not possible. In other situations we may improve the Camel component to hook into the 3rd party component and make this possible for future releases. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | Boolean |
camel.component.box.client-id | The client ID of the Box application. | String | |
camel.component.box.client-secret | The client secret of the Box application. | String | |
camel.component.box.configuration | To use the shared configuration. The option is a org.apache.camel.component.box.BoxConfiguration type. | BoxConfiguration | |
camel.component.box.enabled | Whether to enable auto configuration of the box component. This is enabled by default. | Boolean | |
camel.component.box.encryption-algorithm | The algorithm that signs the JWT assertion of APP_USER_AUTHENTICATION and APP_ENTERPRISE_AUTHENTICATION. | rsa-sha-256 | EncryptionAlgorithm |
camel.component.box.enterprise-id | The ID of the Box enterprise whose service account the component connects as, for APP_ENTERPRISE_AUTHENTICATION. | String | |
camel.component.box.http-params | The proxy of STANDARD_AUTHENTICATION: the entry http.route.default-proxy (an HttpHost of Apache HttpComponents 5) is the proxy of the requests to the Box login page, and the entry http.route.socks-proxy set to true makes it a SOCKS proxy. The calls to the Box API do not use this proxy. | Object> | |
camel.component.box.lazy-start-producer | Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel’s routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. | false | Boolean |
camel.component.box.max-cache-entries | The maximum number of access tokens in the in-memory cache that is used when accessTokenCache is not set. | 100 | Integer |
camel.component.box.private-key-file | The path of the file with the PEM encoded private key that signs the JWT assertion, for APP_USER_AUTHENTICATION and APP_ENTERPRISE_AUTHENTICATION. | String | |
camel.component.box.private-key-password | The password that decrypts the private key of privateKeyFile. | String | |
camel.component.box.public-key-id | The ID of the public key that Box uses to verify the signature of the JWT assertion, for APP_USER_AUTHENTICATION and APP_ENTERPRISE_AUTHENTICATION. | String | |
camel.component.box.ssl-context-parameters | To configure security using SSLContextParameters. The option is a org.apache.camel.support.jsse.SSLContextParameters type. | SSLContextParameters | |
camel.component.box.user-id | The ID of the app user that the component connects as, for APP_USER_AUTHENTICATION. | String | |
camel.component.box.user-name | The login (email address) of the Box user, which the component enters in the Box login form for STANDARD_AUTHENTICATION. | String | |
camel.component.box.user-password | The password of the Box user, which the component enters in the Box login form for STANDARD_AUTHENTICATION. | String |