Database Reference
In-Depth Information
XdiMsgID = cmdHelper.execute(helper);
logger.log( "INFO", "New message received. Message ID:
"+ XdiMsgID", "N/A", "N/A", XDIServlet.servletInstance + "
Front Controller", "N/A", "3");
//In MessageRequestHelper
.....
private static final String elementName = "XDIMSG_ID";
....
public MessageCommand getCommand(){
java.util.ArrayList elementList = new
java.util.ArrayList();
elementList.add(elementName);
return new MessageGetElementCommand(elementList);
}
// In MessageGetElementCommand
public String execute(MessageRequestHelper helper) throws
javax.servlet.ServletException, java.io.IOException {
String elementContent = null;
//
// Start reading content
//
try{
java.io.Reader bodyReader = helper.getReader();
elementContent = getElementContent(bodyReader);
bodyReader.close();
}
catch ( javax.xml.parsers.ParserConfigurationException
e){
throw new javax.servlet.ServletException(e);
}
catch ( org.xml.sax.SAXException e){
throw new javax.servlet.ServletException(e);
}
return elementContent;
}
......
// where getElementContent is SAX Parser implementation
Search WWH ::




Custom Search