KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > jaxr > juddi > axis > JBossJuddiAxisHandler


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.jaxr.juddi.axis;
8
9 /*import org.apache.axis.handlers.BasicHandler;
10 import org.apache.axis.Message;
11 import org.apache.axis.MessageContext;
12 import org.apache.axis.message.SOAPEnvelopeAxisImpl;*/

13
14 import org.jboss.axis.handlers.BasicHandler;
15 import org.jboss.axis.Message;
16 import org.jboss.axis.MessageContext;
17 import org.jboss.axis.message.SOAPEnvelopeAxisImpl;
18
19
20 /**
21  * Axis Handler for jUDDI in JBoss
22  *
23  * @author <mailto:Anil.Saldhana@jboss.org>Anil Saldhana
24  * @since Nov 20, 2004
25  */

26 public class JBossJuddiAxisHandler extends BasicHandler
27 {
28      /**
29    * Init is called when the chain containing this
30    * Handler object is instantiated.
31    */

32   public void init()
33   {
34     super.init();
35   }
36
37   /**
38    * Cleanup is called when the chain containing this
39    * Handler object is done processing the chain.
40    */

41   public void cleanup()
42   {
43     super.cleanup();
44   }
45
46   /**
47    * Invoke is called to do the actual work of the
48    * Handler object. If there is a fault during the
49    * processing of this method it is invoke's job to
50    * catch the exception and undo any partial work that
51    * has been completed. Once we leave 'invoke' if a
52    * fault is thrown, this classes 'onFault' method
53    * will be called. Invoke should rethrow any
54    * exceptions it catches, wrapped in an AxisFault.
55    */

56   public void invoke(MessageContext context)
57   {
58     Message response = new Message(new SOAPEnvelopeAxisImpl());
59     /*Message request = context.getRequestMessage();
60
61     // Determine if this message came from through
62     // the Publish, Inquiry or Admin API and handle
63     // it appropriately.
64
65     Object servlet = context.getProperty("transport.http.servlet");*/

66
67     new JBossJuddiAxisProcessor(response,context);
68
69     context.setResponseMessage(response);
70   }
71 }
72
73
Popular Tags