aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/service/protocol/ProxyInfo.java
blob: 8b983fdd6821e3872dd056fcf285d701ef1132ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/*
 * Jitsi, the OpenSource Java VoIP and Instant Messaging client.
 *
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */
package net.java.sip.communicator.service.protocol;

/**
 * The supported proxy types and properties used to store the values
 * in the configuration service.
 *
 * @author Damian Minkov
 */
public class ProxyInfo
{
    /**
     * Enum which stores possible proxy types
     */
    public static enum ProxyType
    {
        /**
         * Proxy is not used.
         */
        NONE,
        /**
         * HTTP proxy type.
         */
        HTTP,
        /**
         * Proxy type socks4.
         */
        SOCKS4,
        /**
         * Proxy type socks5.
         */
        SOCKS5
    }

    /**
     * Stores in the configuration the connection proxy type.
     */
    public final static String CONNECTION_PROXY_TYPE_PROPERTY_NAME =
        "net.java.sip.communicator.service.connectionProxyType";

    /**
     * Stores in the configuration the connection proxy address.
     */
    public final static String CONNECTION_PROXY_ADDRESS_PROPERTY_NAME =
        "net.java.sip.communicator.service.connectionProxyAddress";

    /**
     * Stores in the configuration the connection proxy port.
     */
    public final static String CONNECTION_PROXY_PORT_PROPERTY_NAME =
        "net.java.sip.communicator.service.connectionProxyPort";

    /**
     * Stores in the configuration the connection proxy username.
     */
    public final static String CONNECTION_PROXY_USERNAME_PROPERTY_NAME =
        "net.java.sip.communicator.service.connectionProxyUsername";

    /**
     * Stores in the configuration the connection proxy password.
     */
    public final static String CONNECTION_PROXY_PASSWORD_PROPERTY_NAME =
        "net.java.sip.communicator.service.connectionProxyPassword";

    /**
     * Stores in the configuration the connection dns forwarding is it enabled.
     */
    public final static String CONNECTION_PROXY_FORWARD_DNS_PROPERTY_NAME =
        "net.java.sip.communicator.service.connectionProxyForwardDNS";

    /**
     * Stores in the configuration the connection dns forwarding address.
     */
    public final static String CONNECTION_PROXY_FORWARD_DNS_ADDRESS_PROPERTY_NAME
        = "net.java.sip.communicator.service.connectionProxyForwardDNSAddress";

    /**
     * Stores in the configuration the connection dns forwarding port.
     */
    public final static String CONNECTION_PROXY_FORWARD_DNS_PORT_PROPERTY_NAME
        = "net.java.sip.communicator.service.connectionProxyForwardDNSPort";
}