return null;
}
int length = httpReq.getContentLength();
PostInputStream reqContent = new PostInputStream(httpReq.getInputStream(), length);
// construct DOM document from the request contents
DOMParser parser = (DOMParser) this.manager.lookup(DOMParser.ROLE);
InputSource saxSource = new InputSource(reqContent);
Document requestDoc = parser.parseDocument(saxSource);
// get the root element (should be "request") and its attributes ---> FixMe: Add error handling
Element root = requestDoc.getDocumentElement();
getLogger().debug("root element (should be 'request'): " + root.getTagName());
String reqType = root.getAttribute("type");
getLogger().debug("Request Type: " + reqType);
// get the first child element for root element (should be "data") and its attributes ---> FixMe: Add error handling
Element data = (Element) root.getFirstChild();
getLogger().debug("first child element (should be 'data'): " + data.getTagName());
String fileType = data.getAttribute("type");
getLogger().debug("Requested File's Type: " + fileType);
// close the input stream
reqContent.close();
// Define temp dir
File tempFileDir =
new File(sitemapPath + relRootDirs.get("temp") + "/" + relRootDirs.get(fileType));