public class Attachment extends Object implements Serializable
Constructor and Description |
---|
Attachment(String id,
String data,
String contentType)
Constructor that takes data as String.
|
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getAnonymous() |
long |
getContentLength() |
String |
getContentType() |
String |
getDataBase64()
Only populated if this attachment was created with data as String constructor.
|
String |
getDigest() |
String |
getId() |
int |
getRevpos() |
boolean |
isStub() |
void |
setAnonymous(String key,
Object value) |
void |
setRevpos(int revpos) |
public Attachment(String id, String data, String contentType)
id
- data
- base64-encodedcontentType
- contentLength
- public String getContentType()
public long getContentLength()
public String getDataBase64()
public String getId()
public boolean isStub()
public int getRevpos()
public void setRevpos(int revpos)
public String getDigest()
public Map<String,Object> getAnonymous()
Copyright © 2013. All Rights Reserved.