You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by qu...@apache.org on 2003/01/21 22:00:39 UTC

cvs commit: jakarta-turbine-2/src/java/org/apache/turbine/services/xmlrpc TurbineXmlRpc.java

quintonm    2003/01/21 13:00:39

  Modified:    src/java/org/apache/turbine/services/xmlrpc
                        TurbineXmlRpc.java
  Log:
  - TurbineException is thrown instead of Exception
  - Methods are now public instead of default scope
  - Removed exceptions from throws clauses that are never thrown
  
  Revision  Changes    Path
  1.4       +8 -18     jakarta-turbine-2/src/java/org/apache/turbine/services/xmlrpc/TurbineXmlRpc.java
  
  Index: TurbineXmlRpc.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-2/src/java/org/apache/turbine/services/xmlrpc/TurbineXmlRpc.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TurbineXmlRpc.java	14 Aug 2002 17:08:00 -0000	1.3
  +++ TurbineXmlRpc.java	21 Jan 2003 21:00:39 -0000	1.4
  @@ -90,8 +90,7 @@
        * @param methodName A String with the method name.
        * @param params A Vector with the parameters.
        * @return An Object.
  -     * @exception XmlRpcException.
  -     * @exception IOException.
  +     * @exception TurbineException
        */
       public static Object executeRpc(URL url, String methodName, Vector params)
           throws TurbineException
  @@ -108,8 +107,7 @@
        * @param methodName A String with the method name.
        * @param params A Vector with the parameters.
        * @return An Object.
  -     * @exception XmlRpcException.
  -     * @exception IOException.
  +     * @exception TurbineException
        */
       public static Object executeAuthenticatedRpc(URL url, String username,
                               String password,String methodName, Vector params)
  @@ -125,12 +123,8 @@
        * @param handlerName The name under which we want
        * to register the service
        * @param handler The handler object
  -     * @exception XmlRpcException.
  -     * @exception IOException.
        */
       public static void registerHandler(String handlerName, Object handler)
  -        throws XmlRpcException,
  -               IOException
       {
           getService().registerHandler(handlerName, handler);
       }
  @@ -140,12 +134,8 @@
        * the XmlRpc Server part.
        *
        * @param handler The handler object
  -     * @exception XmlRpcException.
  -     * @exception IOException.
        */
       public static void registerHandler(Object handler)
  -        throws XmlRpcException,
  -               IOException
       {
           getService().registerHandler(handler);
       }
  @@ -208,7 +198,7 @@
                               String sourceFileName,
                               String destinationLocationProperty,
                               String destinationFileName)
  -                            throws Exception
  +                            throws TurbineException
       {
           getService().send(serverURL,
                             sourceLocationProperty,
  @@ -236,7 +226,7 @@
                               String sourceFileName,
                               String destinationLocationProperty,
                               String destinationFileName)
  -                            throws Exception
  +                            throws TurbineException
       {
           getService().send(serverURL,
                             username,
  @@ -261,7 +251,7 @@
                              String sourceFileName,
                              String destinationLocationProperty,
                              String destinationFileName)
  -                           throws Exception
  +                           throws TurbineException
       {
           getService().get(serverURL,
                            sourceLocationProperty,
  @@ -289,7 +279,7 @@
                              String sourceFileName,
                              String destinationLocationProperty,
                              String destinationFileName)
  -                           throws Exception
  +                           throws TurbineException
       {
           getService().get(serverURL,
                            username,
  @@ -311,7 +301,7 @@
       public static void remove(String serverURL,
                                 String sourceLocationProperty,
                                 String sourceFileName)
  -                              throws Exception
  +                              throws TurbineException
       {
           getService().remove(serverURL,
                               sourceLocationProperty,
  @@ -333,7 +323,7 @@
                                 String password,
                                 String sourceLocationProperty,
                                 String sourceFileName)
  -                              throws Exception
  +                              throws TurbineException
       {
           getService().remove(serverURL,
                               username,
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>