KickJava   Java API By Example, From Geeks To Geeks.

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


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.jboss.axis.transport.http.AxisServlet;
10
11 import javax.servlet.http.HttpServletRequest JavaDoc;
12 import javax.servlet.http.HttpServletResponse JavaDoc;
13 import javax.servlet.ServletException JavaDoc;
14 import java.io.IOException JavaDoc;
15
16 /**
17  * Represents the jUDDI Publish Servlet
18  *
19  * @author <mailto:Anil.Saldhana@jboss.org>Anil Saldhana
20  * @since Mar 10, 2005
21  */

22 public class JBossJuddiPublishServlet extends AxisServlet
23 {
24   /**
25    *
26    */

27    public void doGet(HttpServletRequest JavaDoc req, HttpServletResponse JavaDoc res)
28     throws ServletException JavaDoc, IOException JavaDoc
29   {
30      res.setHeader("Allow","POST");
31      res.sendError(HttpServletResponse.SC_METHOD_NOT_ALLOWED,"The request " +
32        "method 'GET' is not allowed by the UDDI publish API.");
33   }
34 }
35
Popular Tags