org.kde.koala
public class KProtocolManager extends Object implements QtSupport
See Also: KPAC
UNKNOWN: Provides information about I/O (Internet, etc.
Field Summary | |
---|---|
static int | Automatic |
static int | EnvVarProxy |
static int | ManualProxy |
static int | NoProxy
Types of proxy configuration
|
static int | PACProxy |
static int | Prompt
Proxy authorization modes.
|
static int | WPADProxy |
Constructor Summary | |
---|---|
protected | KProtocolManager(Class dummy) |
KProtocolManager() |
Method Summary | |
---|---|
static boolean | autoResume()
Returns true if partial downloads should be
automatically resumed. |
static void | badProxy(String proxy)
Marks this proxy as bad (down). |
static int | cacheControl()
Returns the Cache control directive to be used. |
static String | cacheDir()
The directory which contains the cache files. |
static KConfig | config()
(Shared with SlaveConfig) |
static int | connectTimeout()
Returns the preferred timeout value for remote connections
in seconds. |
static String | defaultUserAgent()
Returns the default user-agent string. |
static String | defaultUserAgent(String keys)
Returns the default user-agent value. |
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
protected void | finalize() Deletes the wrapped C++ instance |
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
static boolean | markPartial()
Returns true if partial downloads should be marked
with a ".part" extension. |
static int | maxCacheAge()
Returns the maximum age in seconds cached files should be
kept before they are deleted as necessary. |
static int | maxCacheSize()
Returns the maximum size that can be used for caching.
|
static int | minimumKeepSize()
Returns the minimum file size for keeping aborted
downloads.
|
static String | noProxyFor()
Returns a comma-separated list of hostnames or partial
host-names that should bypass any proxy settings.
|
static boolean | persistentConnections()
Returns true if connections should be persistent |
static boolean | persistentProxyConnection()
Returns true if proxy connections should be persistent. |
static int | proxyAuthMode()
Returns the way proxy authorization should be handled. |
static String | proxyConfigScript()
Returns the URL of the script for automatic proxy configuration. |
static int | proxyConnectTimeout()
Returns the preferred timeout value for proxy connections
in seconds. |
static String | proxyFor(String protocol)
Returns the proxy server address for a given protocol.
|
static String | proxyForURL(KURL url)
Returns the proxy server address for a given URL.
|
static int | proxyType()
Returns the type of proxy configuration that is used. |
static int | readTimeout()
Returns the preferred timeout value for reading from
remote connections in seconds. |
static void | reparseConfiguration()
Force a reload of the general config file of
io-slaves ( kioslaverc). |
static int | responseTimeout()
Returns the preferred response timeout value for
remote connecting in seconds. |
static String | slaveProtocol(KURL url, StringBuffer proxy)
Return the protocol to use in order to handle the given url
It's usually the same, except that FTP, when handled by a proxy,
needs an HTTP ioslave.
|
static boolean | useCache()
Returns true/false to indicate whether a cache
should be used |
static boolean | useProxy()
Returns true if the user specified a proxy server to make connections. |
static String | userAgentForHost(String hostname)
Returns the userAgent string configured for the
specified host.
|
static boolean | useReverseProxy()
Returns true if the proxy settings should apply to the list
returned by KProtocolManager.
|
UNKNOWN: Proxy authorization modes.
Returns: true to resume partial downloads
UNKNOWN: Returns true if partial downloads should be automatically resumed.
Parameters: proxy the proxy to mark as bad (as URL)
UNKNOWN: Marks this proxy as bad (down).
Returns: the cache control value
UNKNOWN: Returns the Cache control directive to be used.
Returns: the directory that contains the cache files
UNKNOWN: The directory which contains the cache files.
UNKNOWN:
Returns: timeout value for remote connection in secs.
UNKNOWN: Returns the preferred timeout value for remote connections in seconds.
Returns: the default user-agent string
UNKNOWN: Returns the default user-agent string.
Parameters: keys can be any of the following:
Returns: the default user-agent value with the given keys
UNKNOWN: Returns the default user-agent value.
Returns: true if partial downloads should get an ".part" extension
UNKNOWN: Returns true if partial downloads should be marked with a ".
Returns: the maximum cache age in seconds
UNKNOWN: Returns the maximum age in seconds cached files should be kept before they are deleted as necessary.
Returns: the maximum cache size in bytes
UNKNOWN: Returns the maximum size that can be used for caching.
Returns: the minimum keep size for aborted downloads in bytes
UNKNOWN: Returns the minimum file size for keeping aborted downloads.
ManualProxy.
See Also: KProtocolManager KProtocolManager KProtocolManager KProtocolManager
UNKNOWN: Returns a comma-separated list of hostnames or partial host-names that should bypass any proxy settings.
Returns: true if the connections should be persistent
UNKNOWN: Returns true if connections should be persistent
Returns: true if proxy connections should be persistent
UNKNOWN: Returns true if proxy connections should be persistent.
See Also: ProxyAuthMode
UNKNOWN: Returns the way proxy authorization should be handled.
Returns: the proxy configuration script
UNKNOWN: Returns the URL of the script for automatic proxy configuration.
Returns: timeout value for proxy connection in secs.
UNKNOWN: Returns the preferred timeout value for proxy connections in seconds.
Parameters: protocol the protocol whose proxy info is needed
Returns: the proxy server address if one is available, or null if not available
See Also: KProtocolManager KProtocolManager
UNKNOWN: Returns the proxy server address for a given protocol.
Parameters: url the URL whose proxy info is needed
Returns: the proxy server address or the text "DIRECT" if no proxying is needed for the given address.
See Also: KProtocolManager KProtocolManager KProtocolManager
UNKNOWN: Returns the proxy server address for a given URL.
See Also: ProxyType
UNKNOWN: Returns the type of proxy configuration that is used.
Returns: timeout value for remote connection in secs.
UNKNOWN: Returns the preferred timeout value for reading from remote connections in seconds.
UNKNOWN: Force a reload of the general config file of io-slaves ( kioslaverc).
Returns: timeout value for remote connection in seconds.
UNKNOWN: Returns the preferred response timeout value for remote connecting in seconds.
url
It's usually the same, except that FTP, when handled by a proxy,
needs an HTTP ioslave.
When a proxy is to be used, proxy contains the URL for the proxy.Parameters: url the url to check proxy the URL of the proxy to use
Returns: the slave protocol (e.g. 'http'), can be null if unknown
UNKNOWN: Return the protocol to use in order to handle the given url
It's usually the same, except that FTP, when handled by a proxy, needs an HTTP ioslave.
Returns: true to use the cache, false otherwisea
UNKNOWN: Returns true/false to indicate whether a cache should be used
See Also: KProtocolManager KProtocolManager KProtocolManager
UNKNOWN: Returns true if the user specified a proxy server to make connections.
Parameters: hostname name of the host
Returns: specified userAgent string
UNKNOWN: Returns the userAgent string configured for the specified host.
ManualProxy.
See Also: KProtocolManager KProtocolManager KProtocolManager
UNKNOWN: Returns true if the proxy settings should apply to the list returned by @ref noProxyFor.