Main Page | Packages | Class Hierarchy | Class List | Directories | Class Members | Related Pages

org.colimas.services.xsl.XSLServer Class Reference

List of all members.

Public Member Functions

Document getXSLDOM (String resourcePath) throws IOException, SAXException, ParserConfigurationException, XMLException
Document getXSLDOM (String resourcePath, Locale locale) throws IOException, SAXException, ParserConfigurationException, XMLException

Static Public Member Functions

static Document getXSL (String resourcePath) throws IOException, SAXException, ParserConfigurationException, XMLException
static Document getXSL (String resourcePath, Locale locale) throws IOException, SAXException, ParserConfigurationException, XMLException
static void main (String[] args)

Static Public Attributes

static final String SYSID_COMMENT_PREFIX = "SYSTEM_ID: "
static XSLServer xslServer = new XSLServer()

Protected Member Functions

synchronized Document loadXSLDOM (String resourcePath, String storagePath) throws IOException, SAXException, ParserConfigurationException, XMLException
String localize (String resourcePath, Locale locale)
void trace (String message)

Detailed Description

XSLServer.java

Function:
XSL file parser

Author:
zhao lei
Version:
1.0
Modification History:
 SEQ DATE       ORDER DEVELOPER      DESCRIPTION
 --- ---------- ----- -------------- -----------------------------
 001 2005/12/23          zhao lei       INIT
 001 2005/12/31          zhao lei       delete I_Service interface 
 


Member Function Documentation

static Document org.colimas.services.xsl.XSLServer.getXSL String  resourcePath,
Locale  locale
throws IOException, SAXException, ParserConfigurationException, XMLException [static]
 

Returns an XSL DOM form a resource path. If this resource path has already been parsed, it is retrieved from a memory cache.

Returns:
The XSL DOM
Parameters:
resourcePath An absolute resource path (like "/path/to/file.xsl")
locale A localization parameter to adjust the resource path (for example, "/path/to/file_FR_fr.xsl")

static Document org.colimas.services.xsl.XSLServer.getXSL String  resourcePath  )  throws IOException, SAXException, ParserConfigurationException, XMLException [static]
 

Returns an XSL DOM form a resource path. If this resource path has already been parsed, it is retrieved from a memory cache.

Returns:
The XSL DOM
Parameters:
resourcePath An absolute resource path (like "/path/to/file.xsl")

Document org.colimas.services.xsl.XSLServer.getXSLDOM String  resourcePath,
Locale  locale
throws IOException, SAXException, ParserConfigurationException, XMLException
 

Returns an XSL DOM form a resource path. If this resource path has already been parsed, it is retrieved from a memory cache. If the localized path is not found, the default XSL file is returned.

Returns:
The XSL DOM
Parameters:
resourcePath An absolute resource path (like "/path/to/file.xsl")
locale A localization parameter to adjust the resource path (for example, "/path/to/file_FR_fr.xsl")

Document org.colimas.services.xsl.XSLServer.getXSLDOM String  resourcePath  )  throws IOException, SAXException, ParserConfigurationException, XMLException
 

Returns an XSL DOM form a resource path. If this resource path has already been parsed, it is retrieved from a memory cache.

Returns:
The XSL DOM
Parameters:
resourcePath An absolute resource path (like "/path/to/file.xsl")

synchronized Document org.colimas.services.xsl.XSLServer.loadXSLDOM String  resourcePath,
String  storagePath
throws IOException, SAXException, ParserConfigurationException, XMLException [protected]
 

Retrieve an XSL file form a resource path, parse it and store it for a later use.
This method is synchronized in order to avoir that two users parse the same resourcePath

Returns:
The XSL DOM
Parameters:
resourcePath An absolute resource path (like "/path/to/file.xsl")
storagePath Name of the key for XSL storage into the cache (it null, the resourcePath is used instead)
Exceptions:
java.io.FileNotFoundException If the resource cannot be found.

String org.colimas.services.xsl.XSLServer.localize String  resourcePath,
Locale  locale
[protected]
 

Localize resourcePath according to the given locale. For exemple, "file.xsl" becomes "file_FR_fr.xsl"

Returns:
A localized resource path
Parameters:
resourcePath The default resource path
locale The localization to use

static void org.colimas.services.xsl.XSLServer.main String[]  args  )  [static]
 

Unit test

void org.colimas.services.xsl.XSLServer.trace String  message  )  [protected]
 

Puts a log message

Parameters:
message Message to log


Member Data Documentation

final String org.colimas.services.xsl.XSLServer.SYSID_COMMENT_PREFIX = "SYSTEM_ID: " [static]
 

Constant to append comment that contains XSL system ID path

XSLServer org.colimas.services.xsl.XSLServer.xslServer = new XSLServer() [static]
 

Global XSL server


The documentation for this class was generated from the following file:
Generated on Sat Jan 14 02:04:38 2006 for Colimas by  doxygen 1.4.4