Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Any of the endpoint options can be provided in either the endpoint URI, or dynamically in a message header. The message header name must be of the format CamelBox.<option>. Note that the inBody option overrides message header, i.e. the endpoint option inBody=option would override a CamelBox.option header.

If a value is not provided for the option defaultRequest either in the endpoint URI or in a message header, it will be assumed to be null. Note that the null value will only be used if other options do not satisfy matching endpoints.

In case of Box API errors the endpoint will throw a RuntimeCamelException with a com.box.restclientv2.exceptions.BoxSDKException derived exception cause.

...

URI Options for collaborations

If a value is not provided for one of the option(s) [defaultRequest] either in the endpoint URI or in a message header, it will be assumed to be null. Note that the null value(s) will only be used if other options do not satisfy matching endpoints.

 

NameType
collabId
NameType
collabIdString
collabRequestcom.box.boxjavalibv2.requests.requestobjects.BoxCollabRequestObject
defaultRequestcom.box.restclientv2.requestsbase.BoxDefaultRequestObject
folderIdString
getAllCollabsRequestcom.box.boxjavalibv2.requests.requestobjects.BoxGetAllCollabsRequestObject

...

Code Block
  box://events/endpoint?[options]

 
 

EndpointShorthand AliasOptionsResult Body Type
getEventOptionseventOptionsdefaultRequestcom.box.boxjavalibv2.dao.BoxCollection
getEventseventseventRequestcom.box.boxjavalibv2.dao.BoxEventCollection
URI Options for events

If a value is not provided for one of the option(s) [defaultRequest] either in the endpoint URI or in a message header, it will be assumed to be null. Note that the null value(s) will only be used if other options do not satisfy matching endpoints. 

NameType
defaultRequestcom.box.restclientv2.requestsbase.BoxDefaultRequestObject
eventRequestcom.box.boxjavalibv2.requests.requestobjects.BoxEventRequestObject

...

EndpointShorthand AliasOptionsResult Body Type
createGroup [groupRequest], [name]com.box.boxjavalibv2.dao.BoxGroup
createMembership [groupId, role, userId], [groupMembershipRequest]com.box.boxjavalibv2.dao.BoxGroupMembership
deleteGroupdeletedefaultRequest, groupId 
deleteMembershipdeletedefaultRequest, membershipId 
getAllCollaborationsallCollaborationsdefaultRequest, groupIdcom.box.boxjavalibv2.dao.BoxCollection
getAllGroupsallGroupsdefaultRequestcom.box.boxjavalibv2.dao.BoxCollection
getMembershipmembershipdefaultRequest, membershipIdcom.box.boxjavalibv2.dao.BoxGroupMembership
getMembershipsmembershipsdefaultRequest, groupIdcom.box.boxjavalibv2.dao.BoxCollection
updateGroupupdategroupId, groupRequestcom.box.boxjavalibv2.dao.BoxGroup
updateMembershipupdate[groupMembershipRequest], [role], membershipIdcom.box.boxjavalibv2.dao.BoxGroupMembership
URI Options for groups

If a value is not provided for one of the option(s) [defaultRequest] either in the endpoint URI or in a message header, it will be assumed to be null. Note that the null value(s) will only be used if other options do not satisfy matching endpoints.

 

NameType
defaultRequestcom.box.restclientv2.requestsbase.BoxDefaultRequestObject
groupIdString
groupMembershipRequestcom.box.boxjavalibv2.requests.requestobjects.BoxGroupMembershipRequestObject
groupRequestcom.box.boxjavalibv2.requests.requestobjects.BoxGroupRequestObject
membershipIdString
nameString
roleString
userIdString

...

EndpointShorthand AliasOptionsResult Body Type
search defaultRequest, searchQuerycom.box.boxjavalibv2.dao.BoxCollection
URI Options for search

If a value is not provided for one of the option(s) [defaultRequest] either in the endpoint URI or in a message header, it will be assumed to be null. Note that the null value(s) will only be used if other options do not satisfy matching endpoints.

.boxjavalibv2.dao.BoxCollection
URI Options for search

 

NameType
defaultRequestcom.box.restclientv2.requestsbase.BoxDefaultRequestObject
searchQueryString

...

NameType
commentIdString
commentRequestcom.box.boxjavalibv2.requests.requestobjects.BoxCommentRequestObject
commentedItemIdString
commentedItemTypecom.box.boxjavalibv2.dao.IBoxType
defaultRequestcom.box.restclientv2.requestsbase.BoxDefaultRequestObject
messageString

...

Endpoint Prefix files and shared-files

The following endpoints can be invoked with the prefix files or shared-files as follows:. The shared-files prefix requires a sharedLink and sharedPassword properties. 

Code Block
   

...

box://files/endpoint?[options]
   

...

box://shared-files/endpoint?[options]

...

EndpointShorthand AliasOptionsResult Body Type
copyFile fileId, itemCopyRequestcom.box.boxjavalibv2.dao.BoxFile
createSharedLinkcreatefileId, sharedLinkRequestcom.box.boxjavalibv2.dao.BoxFile
deleteFile defaultRequest, fileId 
downloadFiledownload[destination, listener], [listener, outputStreams], defaultRequest, fileIdjava.io.InputStream
downloadThumbnaildownloadextension, fileId, imageRequestjava.io.InputStream
getFilefiledefaultRequest, fileIdcom.box.boxjavalibv2.dao.BoxFile
getFileCommentsfileCommentsdefaultRequest, fileIdcom.box.boxjavalibv2.dao.BoxCollection
getFileVersionsfileVersionsdefaultRequest, fileIdjava.util.List
getPreviewpreviewextension, fileId, imageRequestcom.box.boxjavalibv2.dao.BoxPreview
getThumbnailthumbnailextension, fileId, imageRequestcom.box.boxjavalibv2.dao.BoxThumbnail
updateFileInfoupdatefileId, fileRequestcom.box.boxjavalibv2.dao.BoxFile
uploadFileuploadfileUploadRequestcom.box.boxjavalibv2.dao.BoxFile
uploadNewVersionuploadfileId, fileUploadRequestcom.box.boxjavalibv2.dao.BoxFile

...

Code Block
	from("direct:foo")
		.setHeader("CamelFacebook.query", header("bar"))
		.to("facebook://posts");