| Package | Description |
|---|---|
| org.apache.camel.component.soroushbot.component | |
| org.apache.camel.component.soroushbot.service |
| Modifier and Type | Method and Description |
|---|---|
void |
SoroushBotEndpoint.handleDownloadFiles(SoroushMessage message)
check whether
SoroushMessage.fileUrl(SoroushMessage.thumbnailUrl) is null or not, and download
the resource if it is not null this function only set SoroushMessage.file to InputStream get from
Response.readEntity(Class) )} and does not store the resource in file. |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
SoroushService.assertSuccessful(javax.ws.rs.core.Response response,
Class<T> responseType,
SoroushMessage soroushMessage)
throw IOException if the exception is instance of SoroushException it indicates that the soroush does not accept
the message and therefore resending the request will never be succeed
|
SoroushResponse |
SoroushService.assertSuccessful(javax.ws.rs.core.Response response,
SoroushMessage soroushMessage)
check if the response is successfully sent to soroush, by default it assumes that the response type is
SoroushResponse
|
Apache Camel