public interface Tunnel
| Modifier and Type | Interface | Description |
|---|---|---|
static class |
Tunnel.Mode |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addServer(TunnelConfig tunnelConfig) |
Add a tunnel server configuration.
|
void |
cleanServers() |
Remove all tunnel server addresses previously entered with
addServer(org.linphone.core.TunnelConfig) |
boolean |
connected() |
Check whether the tunnel is connected.
|
boolean |
getActivated() |
Returns whether the tunnel is activated.
|
java.lang.String |
getDomain() |
Get the domain.
|
Tunnel.Mode |
getMode() |
Get the tunnel mode.
|
long |
getNativePointer() |
Gets the native pointer used by this class to make native method calls.
|
TunnelConfig[] |
getServers() |
Get added servers.
|
java.lang.Object |
getUserData() |
Gets the object stored in this object user's data
|
java.lang.String |
getUsername() |
Get the username.
|
boolean |
isDualModeEnabled() |
Get the dual tunnel client mode.
|
boolean |
isSipEnabled() |
Check whether tunnel is set to transport SIP packets.
|
void |
reconnect() |
Force reconnection to the tunnel server.
|
void |
removeServer(TunnelConfig tunnelConfig) |
Remove a tunnel server configuration.
|
void |
setDomain(java.lang.String domain) |
Set the domain.
|
void |
setDualModeEnabled(boolean dualModeEnabled) |
Sets whether or not to use the dual tunnel client mode.
|
void |
setHttpProxy(java.lang.String host,
int port,
java.lang.String username,
java.lang.String passwd) |
Set an optional http proxy to go through when connecting to tunnel server.
|
void |
setHttpProxyAuthInfo(java.lang.String username,
java.lang.String passwd) |
Set authentication info for the http proxy.
|
void |
setMode(Tunnel.Mode mode) |
Set the tunnel mode.
|
void |
setSipEnabled(boolean enable) |
Set whether SIP packets must be directly sent to a UA or pass through the
tunnel. |
void |
setUserData(java.lang.Object data) |
Sets the object to store in this object user's data
|
void |
setUsername(java.lang.String username) |
Set the username.
|
java.lang.String |
toString() |
boolean getActivated()
@Nullable java.lang.String getDomain()
void setDomain(@Nullable
java.lang.String domain)
domain - The domain. boolean isDualModeEnabled()
void setDualModeEnabled(boolean dualModeEnabled)
dualModeEnabled - true to enable it, false to disable it Tunnel.Mode getMode()
Tunnel.Mode void setMode(Tunnel.Mode mode)
mode - The desired Tunnel.Mode @NonNull TunnelConfig[] getServers()
boolean isSipEnabled()
void setSipEnabled(boolean enable)
enable - If true, SIP packets shall pass through the tunnel @Nullable java.lang.String getUsername()
void setUsername(@Nullable
java.lang.String username)
username - The username. void addServer(@NonNull
TunnelConfig tunnelConfig)
tunnelConfig - TunnelConfig object void cleanServers()
addServer(org.linphone.core.TunnelConfig) boolean connected()
void reconnect()
void removeServer(@NonNull
TunnelConfig tunnelConfig)
tunnelConfig - TunnelConfig object void setHttpProxy(@NonNull
java.lang.String host,
int port,
@Nullable
java.lang.String username,
@Nullable
java.lang.String passwd)
host - http proxy host port - http proxy port username - Optional http proxy username if the proxy requestpasswd - Optional http proxy password. Use null if not needed. void setHttpProxyAuthInfo(@Nullable
java.lang.String username,
@Nullable
java.lang.String passwd)
username - User name passwd - Password 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