org.globus.mds.webmds.xmlSources.file
Class FileXmlSource
java.lang.Object
org.globus.mds.webmds.xmlSources.file.FileXmlSource
- All Implemented Interfaces:
- WebmdsXmlSource
- public class FileXmlSource
- extends Object
- implements WebmdsXmlSource
FileXmlSource -- reads an xml document from a file.
This uses one configuration parameter from the servlet config file:
- file
(specified as xmlSource.sourceName.param.file in
the servlet configuration)
- The name of the file to read
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
initParameters
private ParameterMap initParameters
FILE_PARAM_NAME
private final String FILE_PARAM_NAME
- See Also:
- Constant Field Values
requestInfoString
private String requestInfoString
webmdsUtil
private WebmdsUtil webmdsUtil
FileXmlSource
public FileXmlSource()
getXmlSource
public javax.xml.transform.Source getXmlSource(String name,
ParameterMap initParams,
ParameterMap requestParams)
throws WebmdsXmlSourceException,
IOException
- Get an xml Source object corresponding to the contents of an XML file.
- Specified by:
getXmlSource in interface WebmdsXmlSource
- Parameters:
name - nickname of the xml source.initParams - initialization parameters. This must include a
"file" parameter with the path name to the file.requestParams - parameters from the http request. Ignored.
- Throws:
WebmdsXmlSourceException
IOException
init
public void init(WebmdsUtil webmdsUtil)
- Specified by:
init in interface WebmdsXmlSource
getFileParamName
private String getFileParamName()
getRequestInfo
public String getRequestInfo()
- Returns the name of the requested file.
- Specified by:
getRequestInfo in interface WebmdsXmlSource