com.xmlserv.main
Class WebInfStylesheetRepository
java.lang.Object
|
+--com.xmlserv.main.WebInfStylesheetRepository
- All Implemented Interfaces:
- StylesheetRepository
- public class WebInfStylesheetRepository
- extends java.lang.Object
- implements StylesheetRepository
This implementation of the StylesheetRepository reads XSL files from
the WEB-INF/ directory of the servlet installation directory.
Unfortunately no modification timestamp can be read via the URL object
used to access the XSL file, so the timestamp is constant, ignoring
modifications of the source file. There is no portable way to directly
read files from the WEB-INF/ directory (according to 'Java Servlet Programming')
Method Summary |
java.io.InputStream |
get(java.lang.String identifier)
Get the stylesheet associated with identifier. |
long |
getTimestamp(java.lang.String identifier)
|
void |
init(javax.servlet.ServletContext context)
Initialize storage medium. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebInfStylesheetRepository
public WebInfStylesheetRepository()
init
public void init(javax.servlet.ServletContext context)
- Initialize storage medium.
- Specified by:
init
in interface StylesheetRepository
get
public java.io.InputStream get(java.lang.String identifier)
throws java.io.IOException
- Get the stylesheet associated with identifier.
- Specified by:
get
in interface StylesheetRepository
- Parameters:
identifier
- The identifier.- Throws:
-
getTimestamp
public long getTimestamp(java.lang.String identifier)
throws java.io.IOException
- Specified by:
getTimestamp
in interface StylesheetRepository