KickJava   Java API By Example, From Geeks To Geeks.

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


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

23 public class JBossJuddiInquiryServlet extends AxisServlet
24 {
25   /**
26    *
27    */

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