1 16 package org.apache.juddi.transport.axis; 17 18 import java.io.IOException ; 19 20 import javax.servlet.ServletException ; 21 import javax.servlet.http.HttpServletRequest ; 22 import javax.servlet.http.HttpServletResponse ; 23 24 import org.apache.axis.transport.http.AxisServlet; 25 26 29 public class AdminServlet extends AxisServlet 30 { 31 34 public void doGet(HttpServletRequest req, HttpServletResponse res) 35 throws ServletException , IOException 36 { 37 res.setHeader("Allow","POST"); 38 res.sendError(HttpServletResponse.SC_METHOD_NOT_ALLOWED,"The request " + 39 "method 'GET' is not allowed by the jUDDI Admin API."); 40 } 41 } | Popular Tags |