|
Eclipse Platform 2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.update.core.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.
ISite
,
ILocalSite
,
IConfiguredSite
Method Summary | |
static long |
getEstimatedTransferRate(URL site)
Returns an estimate of bytes per second transfer rate for this URL |
static String |
getHttpProxyPort()
Returns the HTTP Proxy Port or null if none |
static String |
getHttpProxyServer()
Returns the HTTP Proxy Server or null if none |
static org.eclipse.update.configuration.ILocalSite |
getLocalSite()
Returns the "local site". |
static String |
getNL()
Returns current locale |
static String |
getOS()
Returns operating system specification. |
static String |
getOSArch()
Returns system architecture specification. |
static ISite |
getSite(URL siteURL)
Deprecated. use getSite(URL,IPogressMonitor) instead |
static ISite |
getSite(URL siteURL,
boolean usesCache)
Deprecated. use getSite(URL,boolean,IPogressMonitor) instead |
static ISite |
getSite(URL siteURL,
boolean usesCache,
IProgressMonitor monitor)
Returns a site object for the site specified by the argument URL. |
static ISite |
getSite(URL siteURL,
IProgressMonitor monitor)
Returns a site object for the site specified by the argument URL. |
static String |
getWS()
Returns system architecture specification. |
static void |
handleNewChanges()
Trigger handling of newly discovered features. |
static boolean |
isHttpProxyEnable()
Returns true if the connection should use the
http proxy server, false otherwise |
static void |
setHttpProxyInfo(boolean enable,
String httpProxyServer,
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(String nl)
Sets the nl. |
static void |
setOS(String os)
Sets the os. |
static void |
setOSArch(String arch)
Sets the arch. |
static void |
setWS(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(URL siteURL) throws CoreException
siteURL
- site URLCoreException
- public static ISite getSite(URL siteURL, IProgressMonitor monitor) throws CoreException
siteURL
- site URLmonitor
- the progress monitorCoreException
- public static ISite getSite(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(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 monitorCoreException
- public static org.eclipse.update.configuration.ILocalSite getLocalSite() throws CoreException
CoreException
- public static void handleNewChanges() throws CoreException
CoreException
- if an error occurs.public static String getOSArch()
BootLoader.ARCH_PA_RISC
,
BootLoader.ARCH_PPC
,
BootLoader.ARCH_SPARC
,
BootLoader.ARCH_X86
public static String getOS()
BootLoader.OS_AIX
,
BootLoader.OS_HPUX
,
BootLoader.OS_LINUX
,
BootLoader.OS_MACOSX
,
BootLoader.OS_QNX
,
BootLoader.OS_SOLARIS
,
BootLoader.OS_WIN32
public static String getWS()
BootLoader.WS_CARBON
,
BootLoader.WS_GTK
,
BootLoader.WS_MOTIF
,
BootLoader.WS_PHOTON
,
BootLoader.WS_WIN32
public static void setOSArch(String arch)
arch
- The arch to setpublic static void setOS(String os)
os
- The os to setpublic static void setWS(String ws)
ws
- The ws to setpublic static void setNL(String nl)
nl
- The nl to setpublic static long getEstimatedTransferRate(URL site)
URL
- the URL of the sitepublic static String getNL()
null
BootLoader.getNL()
public static String getHttpProxyServer()
null
if nonepublic static String getHttpProxyPort()
null
if nonepublic static boolean isHttpProxyEnable()
true
if the connection should use the
http proxy server, false
otherwisepublic static void setHttpProxyInfo(boolean enable, String httpProxyServer, 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
|
Eclipse Platform 2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |