1 8 package mx4j.tools.adaptor.http; 9 10 import java.io.IOException ; 11 import javax.management.JMException ; 12 13 import org.w3c.dom.Document ; 14 import org.w3c.dom.Element ; 15 16 21 public class EmptyCommandProcessor extends HttpCommandProcessorAdaptor 22 { 23 24 27 public EmptyCommandProcessor() 28 { 29 } 30 31 32 public Document executeRequest(HttpInputStream in) 33 throws IOException , JMException  34 { 35 Document document = builder.newDocument(); 36 37 Element root = document.createElement("empty"); 38 document.appendChild(root); 39 40 return document; 41 } 42 43 } 44 45 | Popular Tags |