de.uni_paderborn.fujaba.preferences.gui
Class ServerListParser

java.lang.Object
  extended byorg.xml.sax.helpers.DefaultHandler
      extended byde.uni_paderborn.fujaba.preferences.gui.ServerListParser
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class ServerListParser
extends org.xml.sax.helpers.DefaultHandler

The ServerListParser parses the PluginServer.xml document to get the URLs for PluginList documents. The PluginDownloadManager scans the document to parse available plug-ins to update and/or download it.

Version:
$Revision: 1.14 $
Author:
$Author: cschneid $

Field Summary
private static java.lang.String PLUGIN_SERVER
           
private static java.lang.String PLUGIN_SERVER_DTD_RESOURCE
           
private static java.lang.String PLUGIN_SERVER_PUBLIC_ID
          Name used in Plugin definitions (XML-files) to identify the DTD.
private static java.lang.String PLUGIN_SERVER_SYSTEM_ID
          URL used in Plugin definitions (XML-files) to identify the DTD.
private static java.lang.String PLUGIN_SERVER_SYSTEM_ID2
          Alternative URL used in Plugin definitions (XML-files) to identify the DTD.
private static java.net.URL pluginServerDTD
           
private static int S_NONE
          State
private static int S_PLUGIN_SERVER
          State
private static int S_URL
          State
private static java.lang.String SERVER_URL
           
private  int state
           
private  java.util.Vector urlVector
          No comment provided by developer, please add a comment to improve documentation.
 
Constructor Summary
ServerListParser()
          Constructor for class ServerListParser
 
Method Summary
 void characters(char[] ch, int start, int length)
          No comment provided by developer, please add a comment to improve documentation.
 void endElement(java.lang.String uri, java.lang.String name, java.lang.String qName)
          No comment provided by developer, please add a comment to improve documentation.
 java.util.Iterator getURLs(java.net.URL xmlURL)
          Get the pluginProperty attribute of the XMLToPluginProperty object
 boolean parseXML(java.net.URL xmlURL)
          No comment provided by developer, please add a comment to improve documentation.
 org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId)
          Method implements interface EntityResolver.
 void startElement(java.lang.String uri, java.lang.String name, java.lang.String qName)
          No comment provided by developer, please add a comment to improve documentation.
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PLUGIN_SERVER_SYSTEM_ID

private static final java.lang.String PLUGIN_SERVER_SYSTEM_ID
URL used in Plugin definitions (XML-files) to identify the DTD. DTD given as "SYSTEM" (non-public) definition.

See Also:
Constant Field Values

PLUGIN_SERVER_SYSTEM_ID2

private static final java.lang.String PLUGIN_SERVER_SYSTEM_ID2
Alternative URL used in Plugin definitions (XML-files) to identify the DTD. DTD given as "SYSTEM" (non-public) definition.

See Also:
Constant Field Values

PLUGIN_SERVER_PUBLIC_ID

private static final java.lang.String PLUGIN_SERVER_PUBLIC_ID
Name used in Plugin definitions (XML-files) to identify the DTD. DTD given as "PUBLIC" definition.

See Also:
Constant Field Values

PLUGIN_SERVER_DTD_RESOURCE

private static final java.lang.String PLUGIN_SERVER_DTD_RESOURCE
See Also:
Constant Field Values

pluginServerDTD

private static java.net.URL pluginServerDTD

PLUGIN_SERVER

private static final java.lang.String PLUGIN_SERVER
See Also:
Constant Field Values

SERVER_URL

private static final java.lang.String SERVER_URL
See Also:
Constant Field Values

S_NONE

private static final int S_NONE
State

See Also:
Constant Field Values

S_PLUGIN_SERVER

private static final int S_PLUGIN_SERVER
State

See Also:
Constant Field Values

S_URL

private static final int S_URL
State

See Also:
Constant Field Values

state

private int state

urlVector

private java.util.Vector urlVector
No comment provided by developer, please add a comment to improve documentation.

Constructor Detail

ServerListParser

public ServerListParser()
Constructor for class ServerListParser

Method Detail

getURLs

public java.util.Iterator getURLs(java.net.URL xmlURL)
Get the pluginProperty attribute of the XMLToPluginProperty object

Parameters:
xmlURL - No description provided
Returns:
The pluginProperty value

parseXML

public boolean parseXML(java.net.URL xmlURL)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
xmlURL - No description provided
Returns:
No description provided

resolveEntity

public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
                                             java.lang.String systemId)
                                      throws org.xml.sax.SAXException
Method implements interface EntityResolver.

Parameters:
publicId - No description provided
systemId - No description provided
Returns:
No description provided
Throws:
org.xml.sax.SAXException - Exception description not provided

startElement

public void startElement(java.lang.String uri,
                         java.lang.String name,
                         java.lang.String qName)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
uri - No description provided
name - No description provided
qName - No description provided

characters

public void characters(char[] ch,
                       int start,
                       int length)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
ch - No description provided
start - No description provided
length - No description provided

endElement

public void endElement(java.lang.String uri,
                       java.lang.String name,
                       java.lang.String qName)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
uri - No description provided
name - No description provided
qName - No description provided