ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/server/uk/org/iscream/cms/server/filter/FilterThread.java
(Generate patch)

Comparing projects/cms/source/server/uk/org/iscream/cms/server/filter/FilterThread.java (file contents):
Revision 1.37 by tdb, Fri Sep 6 15:10:48 2002 UTC vs.
Revision 1.40 by tdb, Sun Aug 1 10:40:59 2004 UTC

# Line 1 | Line 1
1   /*
2   * i-scream central monitoring system
3 < * http://www.i-scream.org.uk
3 > * http://www.i-scream.org
4   * Copyright (C) 2000-2002 i-scream
5   *
6   * This program is free software; you can redistribute it and/or
# Line 28 | Line 28 | import java.util.*;
28   import uk.org.iscream.cms.server.core.*;
29   import uk.org.iscream.cms.server.componentmanager.*;
30   import uk.org.iscream.cms.server.filter.*;
31 < import uk.org.iscream.cms.server.util.*;
31 > import uk.org.iscream.cms.util.*;
32  
33   /**
34   * Handle an incoming packet as a separate thread.
# Line 74 | Line 74 | public class FilterThread extends Thread{
74       * sending it on to the parent filter.
75       */
76      public void run(){
77        // setup the XMLPacketMaker
78        XMLPacketMaker xmlPacketMaker = new XMLPacketMaker();
77          // get a queue for ourselves
78          int n = _queue.getQueue();
79          // keep these out here, saves recreating the object
# Line 105 | Line 103 | public class FilterThread extends Thread{
103                  xml += tokenizer.nextToken();
104              }
105              
106 <            // Use XMLPacketMaker to make an XMLPacket object.
106 >            // Get an XMLPacket from the XMLCache.
107              XMLPacket packet = null;
108              try {
109 <                packet = xmlPacketMaker.createXMLPacket(xml);
109 >                packet = _xmlCache.getXMLPacket(xml);
110              } catch(InvalidXMLException e) {
111                  _logger.write(toString(), Logger.ERROR, "Invalid XML: "+e);
112                  // skip the rest of this loop iteration
# Line 143 | Line 141 | public class FilterThread extends Thread{
141       * Overrides the {@link java.lang.Object#toString() Object.toString()}
142       * method to provide clean logging (every class should have this).
143       *
144 <     * This uses the uk.org.iscream.cms.server.util.NameFormat class
144 >     * This uses the uk.org.iscream.cms.util.NameFormat class
145       * to format the toString()
146       *
147       * @return the name of this class and its CVS revision
# Line 187 | Line 185 | public class FilterThread extends Thread{
185       * A reference to the reference manager in use
186       */
187      private ReferenceManager _refman = ReferenceManager.getInstance();
188 +    
189 +    /**
190 +     * A reference to the XMLCache in use
191 +     */
192 +    private XMLCache _xmlCache = XMLCache.getInstance();
193  
194   //---STATIC ATTRIBUTES---
195  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines