public interface Content
Modifier and Type | Method and Description |
---|---|
void |
addContentTypeParameter(java.lang.String name,
java.lang.String value)
Adds a parameter to the ContentType header.
|
Content |
findPartByHeader(java.lang.String headerName,
java.lang.String headerValue)
Find a part from a multipart content looking for a part header with a specified
value.
|
byte[] |
getBuffer()
Get the content data buffer, usually a string.
|
java.lang.String |
getCustomHeader(java.lang.String headerName)
Get a custom header value of a content.
|
java.lang.String |
getEncoding()
Get the encoding of the data buffer, for example "gzip".
|
java.lang.String |
getFilePath()
Get the file transfer filepath set for this content (replace
linphone_chat_message_get_file_transfer_filepath).
|
int |
getFileSize()
Get the file size if content is either a FileContent or a FileTransferContent.
|
java.lang.String |
getKey()
Get the key associated with a RCS file transfer message if encrypted.
|
int |
getKeySize()
Get the size of key associated with a RCS file transfer message if encrypted.
|
java.lang.String |
getName()
Get the name associated with a RCS file transfer message.
|
Content |
getPart(int idx)
Get a part from a multipart content according to its index.
|
Content[] |
getParts()
Get all the parts from a multipart content.
|
int |
getSize()
Get the content data buffer size, excluding null character despite null
character is always set for convenience.
|
java.lang.String |
getStringBuffer()
Get the string content data buffer.
|
java.lang.String |
getSubtype()
Get the mime subtype of the content data.
|
java.lang.String |
getType()
Get the mime type of the content data.
|
java.lang.Object |
getUserData()
Gets the object stored in this object user's data
|
boolean |
isFile()
Tells whether or not this content contains a file.
|
boolean |
isFileTransfer()
Tells whether or not this content is a file transfer.
|
boolean |
isMultipart()
Tell whether a content is a multipart content.
|
boolean |
isText()
Tells whether or not this content contains text.
|
void |
setBuffer(byte[] buffer,
int size)
Set the content data buffer, usually a string.
|
void |
setEncoding(java.lang.String encoding)
Set the encoding of the data buffer, for example "gzip".
|
void |
setFilePath(java.lang.String filePath)
Set the file transfer filepath for this content (replace
linphone_chat_message_set_file_transfer_filepath).
|
void |
setKey(java.lang.String key,
int keyLength)
Set the key associated with a RCS file transfer message if encrypted.
|
void |
setName(java.lang.String name)
Set the name associated with a RCS file transfer message.
|
void |
setSize(int size)
Set the content data size, excluding null character despite null character is
always set for convenience.
|
void |
setStringBuffer(java.lang.String buffer)
Set the string content data buffer.
|
void |
setSubtype(java.lang.String subtype)
Set the mime subtype of the content data.
|
void |
setType(java.lang.String type)
Set the mime type of the content data.
|
void |
setUserData(java.lang.Object data)
Sets the object to store in this object user's data
|
byte[] getBuffer()
java.lang.String getEncoding()
void setEncoding(java.lang.String encoding)
java.lang.String getFilePath()
void setFilePath(java.lang.String filePath)
int getFileSize()
boolean isFile()
boolean isFileTransfer()
boolean isMultipart()
boolean isText()
java.lang.String getKey()
int getKeySize()
java.lang.String getName()
void setName(java.lang.String name)
Content[] getParts()
int getSize()
void setSize(int size)
java.lang.String getStringBuffer()
void setStringBuffer(java.lang.String buffer)
java.lang.String getSubtype()
void setSubtype(java.lang.String subtype)
java.lang.String getType()
void setType(java.lang.String type)
void addContentTypeParameter(java.lang.String name, java.lang.String value)
Content findPartByHeader(java.lang.String headerName, java.lang.String headerValue)
java.lang.String getCustomHeader(java.lang.String headerName)
Content getPart(int idx)
void setBuffer(byte[] buffer, int size)
void setKey(java.lang.String key, int keyLength)
void setUserData(java.lang.Object data)
java.lang.Object getUserData()