ca.cbc.sportwire.util
Class XslServer
java.lang.Object
|
+--ca.cbc.sportwire.util.XslServer
- All Implemented Interfaces:
- WireFeederProperties
- public class XslServer
- extends java.lang.Object
- implements WireFeederProperties
XslServer.java: utility to obtain Xsl files.
Created: Mon Nov 19 14:02:33 2001
$Log: XslServer.java,v $
Revision 1.2 2002/04/05 21:35:10 garym
implement config option paths for xsl and map files
Revision 1.1 2002/04/04 01:46:09 garym
Skeletal translation of TSN to SportsML
- Version:
- $Id: XslServer.java,v 1.2 2002/04/05 21:35:10 garym Exp $
- Author:
- Gary Lawrence Murphy
Field Summary |
(package private) static org.apache.log4j.Category |
cat
|
Fields inherited from interface ca.cbc.sportwire.WireFeederProperties |
CONFIGFILE_DEFAULT, CONFIGFILE_PROPERTY, DEFAULT_FILENAME_XPATH, DEFAULT_SAX_DRIVER_CLASS, DEFAULT_XML_PATH, DEFAULT_XMLRPC_PORT, DOCHANDLER_DEFAULT, DOCHANDLER_PROPERTY, DOCWORKERS_DEFAULT, DOCWORKERS_PROPERTY, DTD_PATH_PROPERTY, FEED_REGEX_PROPERTY, FEEDCLASS_DEFAULT, FEEDCLASS_PROPERTY, FEEDFILTER_DEFAULT, FEEDFILTER_PROPERTY, FILENAME_XPATH_PROPERTY, IGNOREFILE_PROPERTY, LOGFILE_DEFAULT, LOGFILE_PROPERTY, MAP_PATH_PROPERTY, SAX_CLASS_PROPERTY, WATCHDOG_IDLE_DEFAULT, WATCHDOG_IDLE_PROPERTY, XML_PATH_PROPERTY, XMLRPC_PORT_PROPERTY, XSL_PATH_PROPERTY |
Constructor Summary |
private |
XslServer(org.apache.commons.collections.ExtendedProperties config)
|
Method Summary |
static java.io.File |
getXsl(org.apache.commons.collections.ExtendedProperties conf,
java.lang.String systemId)
getXsl : lookup the SystemID string
and return the corresponding Xsl file. |
static java.io.File |
publicToXslFile(org.apache.commons.collections.ExtendedProperties conf,
java.lang.String systemId)
publicToXslFile : translate the fully qualified
publicID into a XslFile path; for the present purposes, the
publidID is a local file path ending in .dtd and
are mapped to the same location with the suffix
.xsl |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
cat
static org.apache.log4j.Category cat
XslServer
private XslServer(org.apache.commons.collections.ExtendedProperties config)
publicToXslFile
public static java.io.File publicToXslFile(org.apache.commons.collections.ExtendedProperties conf,
java.lang.String systemId)
throws java.io.FileNotFoundException
publicToXslFile
: translate the fully qualified
publicID into a XslFile path; for the present purposes, the
publidID is a local file path ending in .dtd
and
are mapped to the same location with the suffix
.xsl
- Parameters:
systemId
- a String
value- Returns:
- a
File
object describing the xsl file - Throws:
java.io.FileNotFoundException
- if any serious error occurs
getXsl
public static java.io.File getXsl(org.apache.commons.collections.ExtendedProperties conf,
java.lang.String systemId)
throws java.io.FileNotFoundException,
java.lang.Exception
getXsl
: lookup the SystemID
string
and return the corresponding Xsl file.
- Parameters:
systemId
- a String
value- Returns:
- a
File
object for the XSL file - Throws:
java.io.FileNotFoundException
- if an error occurs