public interface InfoMessage
| Modifier and Type | Method | Description |
|---|---|---|
void |
addHeader(java.lang.String name,
java.lang.String value) |
Add a header to an info message to be sent.
|
Content |
getContent() |
Returns the info message's content as a
Content structure. |
java.lang.String |
getHeader(java.lang.String name) |
Obtain a header value from a received info message.
|
long |
getNativePointer() |
Gets the native pointer used by this class to make native method calls.
|
java.lang.Object |
getUserData() |
Gets the object stored in this object user's data
|
void |
setContent(Content content) |
Assign a content to the info message.
|
void |
setUserData(java.lang.Object data) |
Sets the object to store in this object user's data
|
java.lang.String |
toString() |
void setContent(@Nullable
Content content)
Content are copied, thus the application cancontent - the content described as a Content structure. void addHeader(@NonNull
java.lang.String name,
@Nullable
java.lang.String value)
name - the header'name value - the header's value @Nullable
java.lang.String getHeader(@NonNull
java.lang.String name)
name - the header'name void setUserData(java.lang.Object data)
data - the object to storejava.lang.Object getUserData()
long getNativePointer()
java.lang.String toString()
toString in class java.lang.Object