Package org.linphone.core
Interface Headers
public interface Headers
Object representing a chain of protocol headers.
It provides read/write access to the headers of the underlying protocol.
It provides read/write access to the headers of the underlying protocol.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add given header name and corresponding value.long
Gets the native pointer used by this class to make native method calls.Gets the object stored in this object user's dataSearch for a given header name and return its value.void
Add given header name and corresponding value.void
setUserData
(Object data) Sets the object to store in this object user's datatoString()
-
Method Details
-
add
Add given header name and corresponding value.
- Parameters:
name
- the header's namevalue
- the header's value
-
getValue
Search for a given header name and return its value.
- Returns:
- the header's value or null if not found.
-
remove
Add given header name and corresponding value.
- Parameters:
name
- the header's name
-
setUserData
Sets the object to store in this object user's data- Parameters:
data
- the object to store
-
getUserData
Object getUserData()Gets the object stored in this object user's data- Returns:
- the object store if any, null otherwise
-
getNativePointer
long getNativePointer()Gets the native pointer used by this class to make native method calls.- Returns:
- the nativer pointer, as long
-
toString
String toString()
-