org.ibisph.mvc.model
Class XMLSystemIDModelAndDate

java.lang.Object
  extended by org.ibisph.mvc.model.SimpleXMLModelAndDate
      extended by org.ibisph.mvc.model.XMLSystemIDModelAndDate
All Implemented Interfaces:
XMLModelAndDate

public class XMLSystemIDModelAndDate
extends SimpleXMLModelAndDate

Enhanced SimpleXMLModelAndDate object that provides SystemIDs for XML files which are used as the XML data model.

Author:
Garth Braithwaite, STG

Field Summary
 
Fields inherited from class org.ibisph.mvc.model.SimpleXMLModelAndDate
xmlDate, xmlModel
 
Constructor Summary
XMLSystemIDModelAndDate(javax.servlet.http.HttpServletRequest request)
          Simple constructor which looks at the request's URL query string for XML type parameters.
XMLSystemIDModelAndDate(java.lang.String xmlFilename)
          Core constructor which accepts an XML filename to base a verified file SystemID on.
XMLSystemIDModelAndDate(SystemID systemID)
          Accepts any XML System ID and if a FileSystemID sets the associated date.
 
Method Summary
 
Methods inherited from class org.ibisph.mvc.model.SimpleXMLModelAndDate
getXMLDate, getXMLModel, setXMLDate, setXMLDate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLSystemIDModelAndDate

public XMLSystemIDModelAndDate(java.lang.String xmlFilename)
Core constructor which accepts an XML filename to base a verified file SystemID on.

Parameters:
xmlFilename - filename of the XML file to be set as the model and file (Verified File System ID).

XMLSystemIDModelAndDate

public XMLSystemIDModelAndDate(SystemID systemID)
Accepts any XML System ID and if a FileSystemID sets the associated date.

Parameters:
systemID - SystemID of the XML file to be set as the model. If it is a file then the date is automatically set.

XMLSystemIDModelAndDate

public XMLSystemIDModelAndDate(javax.servlet.http.HttpServletRequest request)
                        throws java.io.IOException
Simple constructor which looks at the request's URL query string for XML type parameters. If found then builds a SystemID based on the parameters. Valid parameter names are: 'xmlFile'= filename and path relative to the application's context, 'xmlURL'=URL that points to a filename complete with protocol, full context and directory path, 'xml'=generic xml parameter which tries a file system ID first and if not found then tries the value as a URL.

Parameters:
request - HTTP request's query string to be checked.
Throws:
java.io.IOException