dlr         2002/08/21 02:45:48

  Modified:    src/java/org/apache/xmlrpc XmlRpcServer.java
  Log:
  Added propogation of AuthenticationFailed exception to execute*()
  methods.
  
  Revision  Changes    Path
  1.32      +9 -1      xml-rpc/src/java/org/apache/xmlrpc/XmlRpcServer.java
  
  Index: XmlRpcServer.java
  ===================================================================
  RCS file: /home/cvs/xml-rpc/src/java/org/apache/xmlrpc/XmlRpcServer.java,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -u -r1.31 -r1.32
  --- XmlRpcServer.java 15 Aug 2002 20:37:11 -0000      1.31
  +++ XmlRpcServer.java 21 Aug 2002 09:45:48 -0000      1.32
  @@ -230,6 +230,7 @@
        *
        * @param methodName The name of the XML-RPC method to invoke
        * (this is <i>not</i> the Java method name).
  +     * @throws AuthenticationFailed
        */
       protected Object invokeHandler(Object handler, String methodName,
                                      Vector request, String user,
  @@ -268,6 +269,8 @@
   
           /**
            * Given a request for the server, generates a response.
  +         *
  +         * @throws AuthenticationFailed
            */
           public byte[] execute(InputStream is, String user, String password)
           {
  @@ -290,6 +293,7 @@
            * @param user
            * @param password
            * @return
  +         * @throws AuthenticationFailed
            */
           private byte[] executeInternal(InputStream is, String user,
                   String password)
  @@ -328,6 +332,10 @@
                   writeResponse(outParam, writer);
                   writer.flush();
                   result = buffer.toByteArray();
  +            }
  +            catch (AuthenticationFailed alertCaller)
  +            {
  +                throw alertCaller;
               }
               catch(Exception x)
               {
  
  
  


Reply via email to