|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Enum
com.trolltech.qt.network.QNetworkProxy.ProxyType
public static final class QNetworkProxy.ProxyType
This enum describes the types of network proxying provided in Qt.
There are two types of proxies that Qt understands: transparent proxies and caching proxies. The first group consists of proxies that can handle any arbitrary data transfer, while the second can only handle specific requests. The caching proxies only make sense for the specific classes where they can be used. The table below lists different proxy types and their capabilities. Since each proxy type has different capabilities, it is important to understand them before choosing a proxy type.
SOCKS 5 | Supports TCP, UDP, binding to a port (incoming connections) and authentication. |
Transparent HTTP | Implemented using the "CONNECT" command, supports only outgoing TCP connections; supports authentication. |
Caching HTTP | Implemented using normal HTTP commands, it is useful only in the context of HTTP requests (see QHttp , QNetworkAccessManager ). The application's default proxy should not be set to the type HttpCachingProxy , since normal, outgoing TCP connections will fail, including those necessary to send the HTTP request in the first place. |
Caching FTP | Implemented using an FTP proxy, it is useful only in the context of FTP requests (see QFtp , QNetworkAccessManager ). The application's default proxy should not be set to the type FtpCachingProxy since normal, outgoing TCP connections will fail, including those necessary to send the FTP request. |
setType()
, type()
, isCachingProxy()
, and isTransparentProxy()
.
Field Summary | |
---|---|
static QNetworkProxy.ProxyType |
DefaultProxy
Proxy is determined based on the application proxy set using setApplicationProxy() |
static QNetworkProxy.ProxyType |
FtpCachingProxy
Proxying for FTP requests only |
static QNetworkProxy.ProxyType |
HttpCachingProxy
Proxying for HTTP requests only |
static QNetworkProxy.ProxyType |
HttpProxy
HTTP transparent proxying is used |
static QNetworkProxy.ProxyType |
NoProxy
No proxying is used |
static QNetworkProxy.ProxyType |
Socks5Proxy
Socks5 proxying is used |
Method Summary | |
---|---|
static QNetworkProxy.ProxyType |
resolve(int value)
|
int |
value()
This function should return an integer value for the enum values of the enumeration that implements this interface. |
static QNetworkProxy.ProxyType |
valueOf(java.lang.String name)
|
static QNetworkProxy.ProxyType[] |
values()
|
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final QNetworkProxy.ProxyType DefaultProxy
setApplicationProxy()
public static final QNetworkProxy.ProxyType Socks5Proxy
Socks5
proxying is used
public static final QNetworkProxy.ProxyType NoProxy
public static final QNetworkProxy.ProxyType HttpProxy
public static final QNetworkProxy.ProxyType HttpCachingProxy
public static final QNetworkProxy.ProxyType FtpCachingProxy
Method Detail |
---|
public static QNetworkProxy.ProxyType[] values()
public static QNetworkProxy.ProxyType valueOf(java.lang.String name)
public int value()
value
in interface QtEnumerator
public static QNetworkProxy.ProxyType resolve(int value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |