KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > jbossnet > document > ObjectElementServer


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.test.jbossnet.document;
8
9 import org.w3c.dom.Element JavaDoc;
10
11 /** An endpoint that receives an XML document
12  */

13 public class ObjectElementServer
14 {
15
16    public Object JavaDoc processObject(Object JavaDoc xmlObject)
17    {
18       System.out.println("processObject: " + xmlObject.getClass());
19       return xmlObject;
20    }
21
22    public Element JavaDoc processElement(Element JavaDoc xmlElement)
23    {
24       System.out.println("processElement: " + xmlElement.getClass());
25       return xmlElement;
26    }
27 }
28
Popular Tags