1 |
|
//---PACKAGE DECLARATION--- |
2 |
< |
package uk.ac.ukc.iscream.filter; |
2 |
> |
package uk.org.iscream.cms.server.filter; |
3 |
|
|
4 |
|
//---IMPORTS--- |
5 |
|
import java.io.*; |
6 |
|
import java.net.*; |
7 |
|
import java.util.*; |
8 |
< |
import uk.ac.ukc.iscream.core.*; |
9 |
< |
import uk.ac.ukc.iscream.componentmanager.*; |
10 |
< |
import uk.ac.ukc.iscream.filter.*; |
11 |
< |
import uk.ac.ukc.iscream.util.*; |
8 |
> |
import uk.org.iscream.cms.server.core.*; |
9 |
> |
import uk.org.iscream.cms.server.componentmanager.*; |
10 |
> |
import uk.org.iscream.cms.server.filter.*; |
11 |
> |
import uk.org.iscream.cms.server.util.*; |
12 |
|
|
13 |
|
/** |
14 |
|
* Handle an incoming packet as a separate thread. |
60 |
|
int n = _queue.getQueue(); |
61 |
|
// keep these out here, saves recreating the object |
62 |
|
String xml = null; |
63 |
+ |
String parentFilterName = ""; |
64 |
+ |
Filter parent = null; |
65 |
|
while(true) { |
66 |
|
// get a String of xml |
67 |
|
try { |
99 |
|
} |
100 |
|
|
101 |
|
// get parent |
100 |
– |
Filter parent; |
102 |
|
try { |
103 |
< |
String parentFilterName = ConfigurationProxy.getInstance().getProperty(FilterMain.NAME, "Filter.parentFilter"); |
104 |
< |
parent = FilterHelper.narrow(_refman.getCORBARef("iscream.Filter." + parentFilterName)); |
103 |
> |
String newParent = ConfigurationProxy.getInstance().getProperty(FilterMain.NAME, "Filter.parentFilter"); |
104 |
> |
if(!parentFilterName.equals(newParent)) { |
105 |
> |
parentFilterName = newParent; |
106 |
> |
parent = FilterHelper.narrow(_refman.getCORBARef("iscream.Filter." + parentFilterName)); |
107 |
> |
_logger.write(toString(), Logger.DEBUG, "Parent filter changed to: "+parentFilterName); |
108 |
> |
} |
109 |
|
} catch (PropertyNotFoundException e) { |
110 |
|
continue; |
111 |
|
} |
126 |
|
* Overrides the {@link java.lang.Object#toString() Object.toString()} |
127 |
|
* method to provide clean logging (every class should have this). |
128 |
|
* |
129 |
< |
* This uses the uk.ac.ukc.iscream.util.NameFormat class |
129 |
> |
* This uses the uk.org.iscream.cms.server.util.NameFormat class |
130 |
|
* to format the toString() |
131 |
|
* |
132 |
|
* @return the name of this class and its CVS revision |