Revision 5327 branches/MULTITHREADING_DEVELOPMENT/libraries/libRemoteServices/test/org/gvsig/remoteClient/taskplanning/retrieving/URLRetrieveTest.java
URLRetrieveTest.java | ||
---|---|---|
43 | 43 |
* |
44 | 44 |
* $Id$ |
45 | 45 |
* $Log$ |
46 |
* Revision 1.3.2.1 2006-05-17 09:21:49 jaume
|
|
46 |
* Revision 1.3.2.2 2006-05-22 12:19:12 jaume
|
|
47 | 47 |
* *** empty log message *** |
48 | 48 |
* |
49 |
* Revision 1.3.2.1 2006/05/17 09:21:49 jaume |
|
50 |
* *** empty log message *** |
|
51 |
* |
|
49 | 52 |
* Revision 1.3 2006/05/16 17:10:27 jaume |
50 | 53 |
* *** empty log message *** |
51 | 54 |
* |
... | ... | |
82 | 85 |
public void transferEventReceived(RetrieveEvent event) { |
83 | 86 |
int e = event.getType(); |
84 | 87 |
printMessage("listener1", event.getType()); |
85 |
if (e==RetrieveEvent.REQUEST_FINISHED || e == RetrieveEvent.REQUEST_FAILED || e == RetrieveEvent.REQUEST_CANCELLED )
|
|
88 |
if (e==RetrieveEvent.REQUEST_FINISHED || e == RetrieveEvent.REQUEST_FAILED || e == RetrieveEvent.REQUEST_CANCELED ) |
|
86 | 89 |
finished1 = true; |
87 | 90 |
} |
88 | 91 |
}; |
... | ... | |
99 | 102 |
public void transferEventReceived(RetrieveEvent event) { |
100 | 103 |
int e = event.getType(); |
101 | 104 |
printMessage("listener2", event.getType()); |
102 |
if (e==RetrieveEvent.REQUEST_FINISHED || e == RetrieveEvent.REQUEST_FAILED || e==RetrieveEvent.REQUEST_CANCELLED )
|
|
105 |
if (e==RetrieveEvent.REQUEST_FINISHED || e == RetrieveEvent.REQUEST_FAILED || e==RetrieveEvent.REQUEST_CANCELED ) |
|
103 | 106 |
finished2 = true; |
104 | 107 |
|
105 | 108 |
} |
... | ... | |
112 | 115 |
public void transferEventReceived(RetrieveEvent event) { |
113 | 116 |
int e = event.getType(); |
114 | 117 |
printMessage("listener3", event.getType()); |
115 |
if (e==RetrieveEvent.REQUEST_FINISHED || e == RetrieveEvent.REQUEST_FAILED || e == RetrieveEvent.REQUEST_CANCELLED )
|
|
118 |
if (e==RetrieveEvent.REQUEST_FINISHED || e == RetrieveEvent.REQUEST_FAILED || e == RetrieveEvent.REQUEST_CANCELED ) |
|
116 | 119 |
finished3 = true; |
117 | 120 |
|
118 | 121 |
} |
... | ... | |
125 | 128 |
public void transferEventReceived(RetrieveEvent event) { |
126 | 129 |
int e = event.getType(); |
127 | 130 |
printMessage("listener4", event.getType()); |
128 |
if (e==RetrieveEvent.REQUEST_FINISHED || e == RetrieveEvent.REQUEST_FAILED || e == RetrieveEvent.REQUEST_CANCELLED )
|
|
131 |
if (e==RetrieveEvent.REQUEST_FINISHED || e == RetrieveEvent.REQUEST_FAILED || e == RetrieveEvent.REQUEST_CANCELED ) |
|
129 | 132 |
finished4 = true; |
130 | 133 |
|
131 | 134 |
} |
... | ... | |
259 | 262 |
case RetrieveEvent.TRANSFERRING: |
260 | 263 |
System.out.println(who+": transferring"); |
261 | 264 |
break; |
262 |
case RetrieveEvent.REQUEST_CANCELLED:
|
|
265 |
case RetrieveEvent.REQUEST_CANCELED: |
|
263 | 266 |
System.out.println(who+": cancelled"); |
264 | 267 |
break; |
265 | 268 |
case RetrieveEvent.REQUEST_FINISHED: |
Also available in: Unified diff