/*
 * JBoss, the OpenSource J2EE webOS
 *
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */
package org.jboss.jaxr.juddi.axis;

import org.jboss.axis.transport.http.AxisServlet;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.ServletException;
import java.io.IOException;

/**
 * Represents the jUDDI Publish Servlet
 *
 * @author <mailto:Anil.Saldhana@jboss.org>Anil Saldhana
 * @since Mar 10, 2005
 */
public class JBossJuddiPublishServlet extends AxisServlet
{
  /**
   *
   */
   public void doGet(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException
  {
     res.setHeader("Allow","POST");
     res.sendError(HttpServletResponse.SC_METHOD_NOT_ALLOWED,"The request " +
       "method 'GET' is not allowed by the UDDI publish API.");
  }
}
