|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.protocol.sip.net.ProxyConnection
public abstract class ProxyConnection
Abstract class for the determining the address for the SIP proxy.
| Field Summary | |
|---|---|
protected SipAccountID |
account
|
protected InetSocketAddress |
socketAddress
|
protected String |
transport
|
| Constructor Summary | |
|---|---|
protected |
ProxyConnection(SipAccountID account)
Creates a new instance of this class. |
| Method Summary | |
|---|---|
static ProxyConnection |
create(ProtocolProviderServiceSipImpl pps)
Factory method to create a proxy connection based on the account settings of the protocol provider. |
InetSocketAddress |
getAddress()
Gets the address to use for the next connection attempt. |
boolean |
getNextAddress()
Retrieves the next address to use from DNS. |
protected abstract boolean |
getNextAddressFromDns()
Implementations must use this method to get the next address, but do not have to care about duplicate addresses. |
String |
getOutboundProxyString()
In case we are using an outbound proxy this method returns a suitable string for use with Router. |
String |
getTransport()
Gets the transport to use for the next connection attempt. |
boolean |
isSameInetAddress(InetAddress addressToTest)
Compares an InetAddress against the active outbound proxy. |
void |
reset()
Resets the lookup to it's initial state. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String transport
protected InetSocketAddress socketAddress
protected final SipAccountID account
| Constructor Detail |
|---|
protected ProxyConnection(SipAccountID account)
account - the account of this SIP protocol instance| Method Detail |
|---|
public final InetSocketAddress getAddress()
public final String getTransport()
public final String getOutboundProxyString()
public final boolean isSameInetAddress(InetAddress addressToTest)
addressToTest - The addres to test.
public final boolean getNextAddress()
throws DnssecException
getAddress(),
false if the last address was reached. A new lookup from scratch
can be started by calling reset().
DnssecException - if there is a problem related to DNSSEC
protected abstract boolean getNextAddressFromDns()
throws DnssecException
DnssecException - when a DNSSEC validation failure occured.public void reset()
public static ProxyConnection create(ProtocolProviderServiceSipImpl pps)
pps - the protocol provider that needs a SIP server connection.
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||