Eclipse Platform
Release 3.3

org.eclipse.core.net.proxy
Interface IProxyChangeEvent


public interface IProxyChangeEvent

Event which describes a change in the proxy information managed by the IProxyService.

This interface is not intended to be implemented by clients.

Since:
1.0
See Also:
IProxyService

Field Summary
static int NONPROXIED_HOSTS_CHANGED
          Type constant that indicates that the list of non-proxied hosts has changed
static int PROXY_DATA_CHANGED
          Type constant that indicates that the data for one or more proxies has changed
static int PROXY_SERVICE_ENABLEMENT_CHANGE
          Type constant that indicates that the enablement of the proxy service has changed.
 
Method Summary
 IProxyData[] getChangedProxyData()
          For a change type of PROXY_DATA_CHANGED, this method returns the state of the changed known proxies after the change occurred.
 int getChangeType()
          Return the type of change this event represents.
 String[] getNonProxiedHosts()
          For a change type of NONPROXIED_HOSTS_CHANGED, this method will return the list of non-proxied hosts after the change occurred.
 String[] getOldNonProxiedHosts()
          For a change type of NONPROXIED_HOSTS_CHANGED, this method will return the list of non-proxied hosts before the change occurred.
 IProxyData[] getOldProxyData()
          For a change type of PROXY_DATA_CHANGED, this method returns the state of all known proxies before the change occurred.
 

Field Detail

NONPROXIED_HOSTS_CHANGED

public static final int NONPROXIED_HOSTS_CHANGED
Type constant that indicates that the list of non-proxied hosts has changed.\

See Also:
getChangeType(), Constant Field Values

PROXY_DATA_CHANGED

public static final int PROXY_DATA_CHANGED
Type constant that indicates that the data for one or more proxies has changed

See Also:
getChangeType(), Constant Field Values

PROXY_SERVICE_ENABLEMENT_CHANGE

public static final int PROXY_SERVICE_ENABLEMENT_CHANGE
Type constant that indicates that the enablement of the proxy service has changed. Client should consult the service to determine the current enablement

See Also:
getChangeType(), IProxyService.isProxiesEnabled(), Constant Field Values
Method Detail

getChangeType

public int getChangeType()
Return the type of change this event represents. Clients should ignore types they do not recognize.

Returns:
the type of change this event represents
See Also:
NONPROXIED_HOSTS_CHANGED, PROXY_DATA_CHANGED

getOldNonProxiedHosts

public String[] getOldNonProxiedHosts()
For a change type of NONPROXIED_HOSTS_CHANGED, this method will return the list of non-proxied hosts before the change occurred.

Returns:
the list of non-proxied hosts before the change occurred

getNonProxiedHosts

public String[] getNonProxiedHosts()
For a change type of NONPROXIED_HOSTS_CHANGED, this method will return the list of non-proxied hosts after the change occurred.

Returns:
the list of non-proxied hosts after the change occurred

getOldProxyData

public IProxyData[] getOldProxyData()
For a change type of PROXY_DATA_CHANGED, this method returns the state of all known proxies before the change occurred.

Returns:
the state of all known proxies before the change occurred

getChangedProxyData

public IProxyData[] getChangedProxyData()
For a change type of PROXY_DATA_CHANGED, this method returns the state of the changed known proxies after the change occurred. Clients should check the IProxyService.isProxiesEnabled() method to see if the proxy data change was the result of proxies being disabled.

Returns:
the state of the changed known proxies after the change occurred

Eclipse Platform
Release 3.3

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.