|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.update.core.SiteManager
public class SiteManager
Site Manager. A helper class used for creating site instance. Site manager is a singleton class. It cannot be instantiated; all functionality is provided by static methods.
Note: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
ISite
,
ILocalSite
,
IConfiguredSite
Method Summary | |
---|---|
static long |
getEstimatedTransferRate(java.net.URL site)
Returns an estimate of bytes per second transfer rate for this URL |
static java.lang.String |
getHttpProxyPort()
Returns the HTTP Proxy Port or null if none |
static java.lang.String |
getHttpProxyServer()
Returns the HTTP Proxy Server or null if none |
static ILocalSite |
getLocalSite()
Returns the "local site". |
static java.lang.String |
getNL()
Returns current locale |
static java.lang.String |
getOS()
Returns operating system specification. |
static java.lang.String |
getOSArch()
Returns system architecture specification. |
static ISite |
getSite(java.net.URL siteURL)
Deprecated. use getSite(URL,IPogressMonitor) instead |
static ISite |
getSite(java.net.URL siteURL,
boolean usesCache)
Deprecated. use getSite(URL,boolean,IPogressMonitor) instead |
static ISite |
getSite(java.net.URL siteURL,
boolean usesCache,
IProgressMonitor monitor)
Returns a site object for the site specified by the argument URL. |
static ISite |
getSite(java.net.URL siteURL,
IProgressMonitor monitor)
Returns a site object for the site specified by the argument URL. |
static java.lang.String |
getWS()
Returns system architecture specification. |
static void |
handleNewChanges()
Deprecated. Do not use this method |
static boolean |
isHttpProxyEnable()
Returns true if the connection should use the
http proxy server, false otherwise |
static void |
setHttpProxyInfo(boolean enable,
java.lang.String httpProxyServer,
java.lang.String httpProxyPort)
Sets the HTTP Proxy information Sets the HTTP proxy server for the HTTP proxy server Sets the HTTP proxy port for the HTTP proxy server If the proxy name is null or the proxy port is
null the connection will not use HTTP proxy server. |
static void |
setNL(java.lang.String nl)
Sets the nl. |
static void |
setOS(java.lang.String os)
Sets the os. |
static void |
setOSArch(java.lang.String arch)
Sets the arch. |
static void |
setWS(java.lang.String ws)
Sets the ws. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ISite getSite(java.net.URL siteURL) throws CoreException
siteURL
- site URL
CoreException
public static ISite getSite(java.net.URL siteURL, IProgressMonitor monitor) throws CoreException
siteURL
- site URLmonitor
- the progress monitor
CoreException
public static ISite getSite(java.net.URL siteURL, boolean usesCache) throws CoreException
siteURL
- site URLusesCache
- false
if the cache should be refreshed, and the site entirely reparsed, false
otherwise.
CoreException
public static ISite getSite(java.net.URL siteURL, boolean usesCache, IProgressMonitor monitor) throws CoreException
siteURL
- site URLusesCache
- false
if the cache should be refreshed, and the site entirely reparsed, false
otherwise.monitor
- the progress monitor
CoreException
public static ILocalSite getLocalSite() throws CoreException
CoreException
public static void handleNewChanges() throws CoreException
CoreException
- if an error occurs.public static java.lang.String getOSArch()
public static java.lang.String getOS()
public static java.lang.String getWS()
public static void setOSArch(java.lang.String arch)
arch
- The arch to setpublic static void setOS(java.lang.String os)
os
- The os to setpublic static void setWS(java.lang.String ws)
ws
- The ws to setpublic static void setNL(java.lang.String nl)
nl
- The nl to setpublic static long getEstimatedTransferRate(java.net.URL site)
site
- the URL of the site
public static java.lang.String getNL()
null
public static java.lang.String getHttpProxyServer()
null
if none
public static java.lang.String getHttpProxyPort()
null
if none
public static boolean isHttpProxyEnable()
true
if the connection should use the
http proxy server, false
otherwise
public static void setHttpProxyInfo(boolean enable, java.lang.String httpProxyServer, java.lang.String httpProxyPort)
null
or the proxy port is
null
the connection will not use HTTP proxy server.
enable
- true
if the connection should use an http
proxy server, false
otherwise.httpProxyServer
- the HTTP proxy server name or IP adresshttpProxyPort
- the HTTP proxy port
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |