public class AutoProxyConnection extends ProxyConnection
Modifier and Type | Class and Description |
---|---|
protected static class |
AutoProxyConnection.LocalNetworkUtils
Wrapper around
NetworkUtils to support Unit Tests. |
account, socketAddress, transport
Constructor and Description |
---|
AutoProxyConnection(SipAccountIDImpl account,
java.lang.String defaultTransport)
Creates a new instance of this class.
|
AutoProxyConnection(SipAccountIDImpl account,
java.lang.String address,
int port,
java.lang.String defaultTransport)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
getNextAddressFromDns()
Implementations must use this method to get the next address, but do not
have to care about duplicate addresses.
|
void |
reset()
Resets the lookup to it's initial state.
|
protected void |
setNetworkUtils(AutoProxyConnection.LocalNetworkUtils nu)
Sets the NetworkUtils wrapper.
|
create, getAddress, getNextAddress, getOutboundProxyString, getTransport, isSameInetAddress
public AutoProxyConnection(SipAccountIDImpl account, java.lang.String defaultTransport)
account
- the account of this SIP protocol instancedefaultTransport
- the default transport to use when DNS does not
provide a protocol through NAPTR or SRVpublic AutoProxyConnection(SipAccountIDImpl account, java.lang.String address, int port, java.lang.String defaultTransport)
account
- the account of this SIP protocol instanceaddress
- the domain on which to perform autodetectionport
- the destination socket portdefaultTransport
- the default transport to use when DNS does not
provide a protocol through NAPTR or SRVprotected void setNetworkUtils(AutoProxyConnection.LocalNetworkUtils nu)
nu
- the the NetworkUtils wrapper.protected boolean getNextAddressFromDns() throws DnssecException
ProxyConnection
getNextAddressFromDns
in class ProxyConnection
DnssecException
- when a DNSSEC validation failure occured.public void reset()
ProxyConnection
reset
in class ProxyConnection
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.