Database Reference
In-Depth Information
XSLTProcessor transformer =
XSLTProcessorFactory.getProcessor();
transformer.process(xmlsource, stylesheet,
xmlresult );
...
java.io.Reader msgbodyReader = new
java.io.StringReader(xmlresult.toString());
return msgbodyReader;
try {
stylesheetfile = task.getStylesheetLocation();
stylesheet = new XSLTInputSource(stylesheetfile);
xmlsource = new XSLTInputSource(reader);
}
catch (Exception e) { ... }
try {
...
XSLTResultTarget xmlresult = new
XSLTResultTarget(out);
XSLTProcessor transformer =
XSLTProcessorFactory.getProcessor();
transformer.process(xmlsource, stylesheet,
xmlresult );
...
java.io.Reader msgbodyReader = new
java.io.StringReader(xmlresult.toString());
return msgbodyReader;
Deliver
The last broker's responsibility is to deliver the message to the ultimate recipient(s):
//Dispatcher uses the task engine to dispatch to the
certain task
...
if(task.getTaskEngine().equals("XDIMB.apache.httpcomponents.httpclient"))
{
log.info("Dispatching as HTTP, TaskCommType: "+
task.getTaskCommType() + "; Engine: "+
task.getTaskEngine());
Search WWH ::




Custom Search