KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > core > internal > net > ProxyChangeEvent


1 /*******************************************************************************
2  * Copyright (c) 2007 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.core.internal.net;
12
13 import org.eclipse.core.net.proxy.IProxyChangeEvent;
14 import org.eclipse.core.net.proxy.IProxyData;
15
16 public class ProxyChangeEvent implements IProxyChangeEvent {
17
18     private final int type;
19     private final String JavaDoc[] oldHosts;
20     private final String JavaDoc[] nonProxiedHosts;
21     private final IProxyData[] oldData;
22     private final IProxyData[] changeData;
23
24     public ProxyChangeEvent(int type, String JavaDoc[] oldHosts,
25             String JavaDoc[] nonProxiedHosts, IProxyData[] oldData, IProxyData[] changedData) {
26                 this.type = type;
27                 this.oldHosts = oldHosts;
28                 this.nonProxiedHosts = nonProxiedHosts;
29                 this.oldData = oldData;
30                 this.changeData = changedData;
31     }
32
33     public int getChangeType() {
34         return type;
35     }
36
37     public IProxyData[] getChangedProxyData() {
38         return changeData;
39     }
40
41     public String JavaDoc[] getNonProxiedHosts() {
42         return nonProxiedHosts;
43     }
44
45     public String JavaDoc[] getOldNonProxiedHosts() {
46         return oldHosts;
47     }
48
49     public IProxyData[] getOldProxyData() {
50         return oldData;
51     }
52
53 }
54
Popular Tags