juddi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From svi...@apache.org
Subject cvs commit: ws-juddi/src/java/org/apache/juddi/transport/axis PublishServlet.java AdminServlet.java InquiryServlet.java
Date Wed, 02 Jun 2004 21:25:13 GMT
sviens      2004/06/02 14:25:13

  Modified:    src/java/org/apache/juddi/transport/axis PublishServlet.java
                        AdminServlet.java InquiryServlet.java
  Log:
  
  
  Revision  Changes    Path
  1.4       +3 -1      ws-juddi/src/java/org/apache/juddi/transport/axis/PublishServlet.java
  
  Index: PublishServlet.java
  ===================================================================
  RCS file: /home/cvs/ws-juddi/src/java/org/apache/juddi/transport/axis/PublishServlet.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- PublishServlet.java	22 Mar 2004 00:12:15 -0000	1.3
  +++ PublishServlet.java	2 Jun 2004 21:25:13 -0000	1.4
  @@ -34,6 +34,8 @@
      public void doGet(HttpServletRequest req, HttpServletResponse res)
       throws ServletException, IOException
     {
  -    req.getRequestDispatcher("/index.html").forward(req,res);
  +     res.setHeader("Allow","POST");
  +     res.sendError(HttpServletResponse.SC_METHOD_NOT_ALLOWED,"The request " +
  +       "method (GET) is not allowed by the UDDI Publish API.");
     }
   }
  
  
  
  1.5       +3 -1      ws-juddi/src/java/org/apache/juddi/transport/axis/AdminServlet.java
  
  Index: AdminServlet.java
  ===================================================================
  RCS file: /home/cvs/ws-juddi/src/java/org/apache/juddi/transport/axis/AdminServlet.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- AdminServlet.java	22 Mar 2004 00:12:15 -0000	1.4
  +++ AdminServlet.java	2 Jun 2004 21:25:13 -0000	1.5
  @@ -34,6 +34,8 @@
      public void doGet(HttpServletRequest req, HttpServletResponse res)
       throws ServletException, IOException
     {
  -    req.getRequestDispatcher("/index.html").forward(req,res);
  +     res.setHeader("Allow","POST");
  +     res.sendError(HttpServletResponse.SC_METHOD_NOT_ALLOWED,"The request " +
  +       "method (GET) is not allowed by the jUDDI Admin API.");
     }
   }
  
  
  
  1.4       +3 -1      ws-juddi/src/java/org/apache/juddi/transport/axis/InquiryServlet.java
  
  Index: InquiryServlet.java
  ===================================================================
  RCS file: /home/cvs/ws-juddi/src/java/org/apache/juddi/transport/axis/InquiryServlet.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- InquiryServlet.java	22 Mar 2004 00:12:15 -0000	1.3
  +++ InquiryServlet.java	2 Jun 2004 21:25:13 -0000	1.4
  @@ -34,6 +34,8 @@
      public void doGet(HttpServletRequest req, HttpServletResponse res)
       throws ServletException, IOException
     {
  -    req.getRequestDispatcher("/index.html").forward(req,res);
  +    res.setHeader("Allow","POST");
  +    res.sendError(HttpServletResponse.SC_METHOD_NOT_ALLOWED,"The request " +
  +      "method (GET) is not allowed by the UDDI Inquiry API.");
     }
   }
  
  
  

Mime
View raw message