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

Comparing projects/cms/source/util/uk/org/iscream/cms/util/XMLPacketMaker.java (file contents):
Revision 1.6 by tdb, Thu Dec 7 23:26:16 2000 UTC vs.
Revision 1.8 by tdb, Thu Jan 18 01:55:57 2001 UTC

# Line 10 | Line 10 | import javax.xml.parsers.SAXParserFactory;
10   import javax.xml.parsers.ParserConfigurationException;
11   import javax.xml.parsers.SAXParser;
12  
13 import uk.ac.ukc.iscream.core.*;
14
13   /**
14   * XMLPacketMaker - Creates an XMLPacket object.
15   *
# Line 54 | Line 52 | public class XMLPacketMaker extends HandlerBase {
52  
53          }
54          catch (Exception e) {
57            _logger.write(this.toString(), Logger.WARNING, e.toString());
58            _logger.write(this.toString(), Logger.WARNING, "An invalid XML UDP packet has been detected: "+packet.printAll());
55              return null;
56          }
57          
# Line 66 | Line 62 | public class XMLPacketMaker extends HandlerBase {
62       * Overrides the {@link java.lang.Object#toString() Object.toString()}
63       * method to provide clean logging (every class should have this).
64       *
65 +     * This uses the uk.ac.ukc.iscream.util.NameFormat class
66 +     * to format the toString()
67 +     *
68       * @return the name of this class and its CVS revision
69       */
70      public String toString() {
71 <        return this.getClass().getName() + "(" + REVISION.substring(11, REVISION.length() - 2) + ")";
71 >        return FormatName.getName(
72 >            _name,
73 >            getClass().getName(),
74 >            REVISION);
75      }
76  
77   //---PRIVATE METHODS---
# Line 78 | Line 80 | public class XMLPacketMaker extends HandlerBase {
80  
81   //---ATTRIBUTES---
82  
83 +    /**
84 +     * Holds the xml
85 +     */
86      String _xml;
87 <    Logger _logger = ReferenceManager.getInstance().getLogger();
87 >    
88 >    /**
89 >     * This is the friendly identifier of the
90 >     * component this class is running in.
91 >     * eg, a Filter may be called "filter1",
92 >     * If this class does not have an owning
93 >     * component,  a name from the configuration
94 >     * can be placed here.  This name could also
95 >     * be changed to null for utility classes.
96 >     */
97 >    private String _name = null;
98  
99   //---STATIC ATTRIBUTES---
100  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines