Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.update.core
Class SiteManager

java.lang.Object
  extended by 
org.eclipse.update.core.SiteManager

Deprecated. The org.eclipse.update component has been replaced by Equinox p2. This provisional API was never promoted to stable API, and may be removed from a future release of the platform.

public class SiteManager
extends Object

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.

Since:
2.0
See Also:
ISite, ILocalSite, IConfiguredSite

Method Summary
static long getEstimatedTransferRate ( URL site)
          Deprecated. Returns an estimate of bytes per second transfer rate for this URL
static  String getHttpProxyPort ()
          Deprecated. clients should access the IProxyService directly
static  String getHttpProxyServer ()
          Deprecated. clients should access the IProxyService directly
static  ILocalSite getLocalSite ()
          Deprecated. Returns the "local site".
static  String getNL ()
          Deprecated. Returns current locale
static  String getOS ()
          Deprecated. Returns operating system specification.
static  String getOSArch ()
          Deprecated. 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)
          Deprecated. Returns a site object for the site specified by the argument URL.
static  ISite getSite ( URL siteURL, IProgressMonitor monitor)
          Deprecated. Returns a site object for the site specified by the argument URL.
static  String getWS ()
          Deprecated. Returns system architecture specification.
static void handleNewChanges ()
          Deprecated. Do not use this method
static boolean isHttpProxyEnable ()
          Deprecated. clients should access the IProxyService directly
static void setHttpProxyInfo (boolean enable, String httpProxyServer, String httpProxyPort)
          Deprecated. clients should use the IProxyService directly
static void setNL ( String nl)
          Deprecated. Sets the nl.
static void setOS ( String os)
          Deprecated. Sets the os.
static void setOSArch ( String arch)
          Deprecated. Sets the arch.
static void setWS ( String ws)
          Deprecated. Sets the ws.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSite

public static 
ISite getSite(
URL siteURL)
                     throws 
CoreException
Deprecated. use getSite(URL,IPogressMonitor) instead

Returns a site object for the site specified by the argument URL. Typically, the URL references a site manifest file on an update site. An update site acts as a source of features for installation actions.

Parameters:
siteURL - site URL
Returns:
site object for the url
Throws:
CoreException
Since:
2.0

getSite

public static 
ISite getSite(
URL siteURL,
                            
IProgressMonitor monitor)
                     throws 
CoreException
Deprecated. 
Returns a site object for the site specified by the argument URL. Typically, the URL references a site manifest file on an update site. An update site acts as a source of features for installation actions.

Parameters:
siteURL - site URL
monitor - the progress monitor
Returns:
site object for the url or null in case a user canceled the connection in the progress monitor.
Throws:
CoreException
Since:
2.1

getSite

public static 
ISite getSite(
URL siteURL,
                            boolean usesCache)
                     throws 
CoreException
Deprecated. use getSite(URL,boolean,IPogressMonitor) instead

Returns a site object for the site specified by the argument URL. Typically, the URL references a site manifest file on an update site. An update site acts as a source of features for installation actions.

Parameters:
siteURL - site URL
usesCache - false if the cache should be refreshed, and the site entirely reparsed, false otherwise.
Returns:
site object for the url
Throws:
CoreException
Since:
2.0

getSite

public static 
ISite getSite(
URL siteURL,
                            boolean usesCache,
                            
IProgressMonitor monitor)
                     throws 
CoreException
Deprecated. 
Returns a site object for the site specified by the argument URL. Typically, the URL references a site manifest file on an update site. An update site acts as a source of features for installation actions.

Parameters:
siteURL - site URL
usesCache - false if the cache should be refreshed, and the site entirely reparsed, false otherwise.
monitor - the progress monitor
Returns:
site object for the url or null in case a user canceled the connection in the progress monitor.
Throws:
CoreException
Since:
2.1

getLocalSite

public static 
ILocalSite getLocalSite()
                               throws 
CoreException
Deprecated. 
Returns the "local site". A local site is a logical collection of configuration information plus one or more file system installation directories, represented as intividual sites. These are potential targets for installation actions.

Returns:
the local site
Throws:
CoreException
Since:
2.0

handleNewChanges

public static void handleNewChanges()
                             throws 
CoreException
Deprecated. Do not use this method

Trigger handling of newly discovered features. This method can be called by the executing application whenever it is invoked with the -newUpdates command line argument.

Throws:
CoreException - if an error occurs.
Since:
2.0

getOSArch

public static 
String getOSArch()
Deprecated. 
Returns system architecture specification. A comma-separated list of arch designators defined by the platform. This information is used as a hint by the installation and update support.

Returns:
system architecture specification
Since:
2.1

getOS

public static 
String getOS()
Deprecated. 
Returns operating system specification. A comma-separated list of os designators defined by the platform. This information is used as a hint by the installation and update support.

Returns:
the operating system specification.
Since:
2.1

getWS

public static 
String getWS()
Deprecated. 
Returns system architecture specification. A comma-separated list of arch designators defined by the platform. This information is used as a hint by the installation and update support.

Returns:
system architecture specification.
Since:
2.1

setOSArch

public static void setOSArch(
String arch)
Deprecated. 
Sets the arch.

Parameters:
arch - The arch to set

setOS

public static void setOS(
String os)
Deprecated. 
Sets the os.

Parameters:
os - The os to set

setWS

public static void setWS(
String ws)
Deprecated. 
Sets the ws.

Parameters:
ws - The ws to set

setNL

public static void setNL(
String nl)
Deprecated. 
Sets the nl.

Parameters:
nl - The nl to set

getEstimatedTransferRate

public static long getEstimatedTransferRate(
URL site)
Deprecated. 
Returns an estimate of bytes per second transfer rate for this URL

Parameters:
site - the URL of the site
Returns:
long a bytes per second estimate rate
Since:
2.1

getNL

public static 
String getNL()
Deprecated. 
Returns current locale

Returns:
the string name of the current locale or null
Since:
2.1

getHttpProxyServer

public static 
String getHttpProxyServer()
Deprecated. clients should access the IProxyService directly

Returns the HTTP Proxy Server or null if none.

Returns:
the HTTP proxy Server

getHttpProxyPort

public static 
String getHttpProxyPort()
Deprecated. clients should access the IProxyService directly

Returns the HTTP Proxy Port or null if none

Returns:
the HTTP proxy Port

isHttpProxyEnable

public static boolean isHttpProxyEnable()
Deprecated. clients should access the IProxyService directly

Returns true if the connection should use the http proxy server, false otherwise

Returns:
is the http proxy server enable

setHttpProxyInfo

public static void setHttpProxyInfo(boolean enable,
                                    
String httpProxyServer,
                                    
String httpProxyPort)
Deprecated. clients should use the IProxyService directly

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.

Parameters:
enable - true if the connection should use an http proxy server, false otherwise.
httpProxyServer - the HTTP proxy server name or IP address
httpProxyPort - the HTTP proxy port

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire