SMILA 1.0 API documentation

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.


Field Summary
static java.lang.String MIMETYPE_ATTACHMENT
          MIME type of attachments.
 
Method Summary
 java.util.Map<java.lang.String,ContentBody> getAttachmentParts()
          Get attachments parts to add to a multipart request.
 

Field Detail

MIMETYPE_ATTACHMENT

static final java.lang.String MIMETYPE_ATTACHMENT
MIME type of attachments.

See Also:
Constant Field Values
Method Detail

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.

SMILA 1.0 API documentation