public class AttachmentsClientImpl extends java.lang.Object implements AttachmentsClient
Constructor and Description |
---|
AttachmentsClientImpl(SymAuth symAuth,
SymphonyClientConfig config)
Init
|
AttachmentsClientImpl(SymAuth symAuth,
SymphonyClientConfig config,
javax.ws.rs.client.Client httpClient)
If you need to override HttpClient.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getAttachmentData(SymAttachmentInfo symAttachmentInfo,
SymMessage symMessage)
Retrieve attachment data from message
|
SymAttachmentInfo |
postAttachment(java.lang.String sid,
java.io.File attachment)
Send attachment to a given stream
|
public AttachmentsClientImpl(SymAuth symAuth, SymphonyClientConfig config)
symAuth
- Authorization model containing session and key tokensconfig
- Symphony Client Configpublic AttachmentsClientImpl(SymAuth symAuth, SymphonyClientConfig config, javax.ws.rs.client.Client httpClient)
symAuth
- Authorization model containing session and key tokensconfig
- Symphony Client ConfighttpClient
- Custom client utilized to access Symphony APIspublic byte[] getAttachmentData(SymAttachmentInfo symAttachmentInfo, SymMessage symMessage) throws AttachmentsException
AttachmentsClient
getAttachmentData
in interface AttachmentsClient
symAttachmentInfo
- Attachment detailssymMessage
- Message containing the attachmentAttachmentsException
- Exceptions generated from underlying Symphony API callspublic SymAttachmentInfo postAttachment(java.lang.String sid, java.io.File attachment) throws AttachmentsException
AttachmentsClient
postAttachment
in interface AttachmentsClient
sid
- StreamID to send the attachmentattachment
- File to sendAttachmentsException
- Exceptions generated from underlying Symphony API calls