KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > net > axis > server > WsdlAwareHttpActionHandler


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

7
8 // $Id: WsdlAwareHttpActionHandler.java,v 1.5.6.1 2005/03/02 14:19:51 tdiesler Exp $
9

10
11 package org.jboss.net.axis.server;
12
13 import org.jboss.axis.AxisFault;
14 import org.jboss.axis.MessageContext;
15 import org.jboss.axis.handlers.http.HTTPActionHandler;
16
17 /**
18  * <p>
19  * This HttpActionHandler will influence the wsdl-generation of
20  * action aware service providers, such as {@link org.jboss.net.axis.server.EJBProvider}.
21  * </p>
22  * @author <a HREF="mailto:Christoph.Jung@infor.de">Christoph G. Jung</a>
23  * @since 27.03.2003
24  * @version $Revision: 1.5.6.1 $
25  */

26
27 public class WsdlAwareHttpActionHandler extends HTTPActionHandler
28 {
29
30    /**
31     * sets the presence flag in the context such that any provider
32     * that uses this flag will be able to generate soap-action
33     * information.
34     * @see org.jboss.axis.Handler#generateWSDL(org.jboss.axis.MessageContext)
35     */

36    public void generateWSDL(MessageContext arg0) throws AxisFault
37    {
38       arg0.setProperty(Constants.ACTION_HANDLER_PRESENT_PROPERTY, Boolean.TRUE);
39       super.invoke(arg0);
40    }
41
42 }
43
Popular Tags