org.eclipse.smila.http.client
Interface Attachments
- All Known Implementing Classes:
- AttachmentWrapper, RecordAttachments
public interface Attachments
To add attachments to requests using the RestClient, use an object that implements this interface.
Some implementations can be found in package org.eclipse.smila.http.client.attachments.
See HttpMime Javadoc for
details on the underlying Apache HttpClient classes used to implement requests with attachments.
|
Method Summary |
java.util.Map<java.lang.String,ContentBody> |
getAttachmentParts()
Get attachments parts to add to a multipart request. |
MIMETYPE_ATTACHMENT
static final java.lang.String MIMETYPE_ATTACHMENT
- MIME type of attachments.
- See Also:
- Constant Field Values
getAttachmentParts
java.util.Map<java.lang.String,ContentBody> getAttachmentParts()
- Get attachments parts to add to a multipart request. The keys of the returned map are the attachment names. The
values can wrap different kinds of attachment objects, for example simple byte{] objects or
java.io.InputStreams.
- Returns:
- map of attachment names and values.