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(".act(): Root element (should be 'request'): " + root.getTagName());
String reqId = root.getAttribute("id");
getLogger().debug(".act(): Request ID: " + reqId);
String reqType = root.getAttribute("type");
getLogger().debug(".act(): 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(".act(): first child element (should be 'data'): " + data.getTagName());
String reqFile = data.getAttribute("id");
getLogger().debug(".act(): Requested File: " + reqFile);
String fileType = data.getAttribute("type");
getLogger().debug(".act(): Requested File's Type: " + fileType);
// close the input stream
reqContent.close();
// Define Files
File tempFileDir =
new File(sitemapPath + relRootDirs.get("temp") + "/" + relRootDirs.get(fileType));