quintonm    2003/01/21 13:00:08

  Modified:    src/java/org/apache/turbine/services/xmlrpc
                        TurbineXmlRpcService.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
  - removed unused instance vairable
  
  Revision  Changes    Path
  1.14      +11 -20    
jakarta-turbine-2/src/java/org/apache/turbine/services/xmlrpc/TurbineXmlRpcService.java
  
  Index: TurbineXmlRpcService.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-turbine-2/src/java/org/apache/turbine/services/xmlrpc/TurbineXmlRpcService.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- TurbineXmlRpcService.java 13 Jan 2003 23:21:23 -0000      1.13
  +++ TurbineXmlRpcService.java 21 Jan 2003 21:00:08 -0000      1.14
  @@ -93,11 +93,14 @@
    * String name = (String)xs.executeRpc(url, "examples.getStateName", vec);
    * </pre></code></blockquote>
    *
  + * <p>TODO: Handle XmlRpc.setDebug(boolean)</p>
  + *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Josh Lucas</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Magn�s ��r Torfason</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Rafal Krzewski</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Jason van Zyl</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Daniel Rall</a>
  + * @author <a href="mailto:[EMAIL PROTECTED]";>Martin Poeschl</a>
    * @version $Id$
    */
   public class TurbineXmlRpcService
  @@ -125,9 +128,6 @@
        */
       private InetAddress address = null;
   
  -    /** The xmlrpc client. */
  -    private XmlRpcClient client = null;
  -
       /** The port to listen on. */
       protected int port = 0;
   
  @@ -312,12 +312,8 @@
        * Register an Object as a default handler for the service.
        *
        * @param handler The handler to use.
  -     * @exception XmlRpcException
  -     * @exception IOException
        */
       public void registerHandler(Object handler)
  -            throws XmlRpcException,
  -            IOException
       {
           registerHandler("$default", handler);
       }
  @@ -327,13 +323,9 @@
        *
        * @param handlerName The name the handler is registered under.
        * @param handler The handler to use.
  -     * @exception XmlRpcException
  -     * @exception IOException
        */
       public void registerHandler(String handlerName,
                                   Object handler)
  -            throws XmlRpcException,
  -            IOException
       {
           if(webserver != null)
           {
  @@ -473,8 +465,7 @@
        * @param methodName A String with the method name.
        * @param params A Vector with the parameters.
        * @return An Object.
  -     * @exception XmlRpcException.
  -     * @exception IOException.
  +     * @throws TurbineException
        */
       public Object executeAuthenticatedRpc(URL url,
                                             String username,
  @@ -509,7 +500,7 @@
                        String sourceFileName,
                        String destinationLocationProperty,
                        String destinationFileName)
  -            throws Exception
  +            throws TurbineException
       {
           FileTransfer.send(serverURL,
                   sourceLocationProperty,
  @@ -537,7 +528,7 @@
                        String sourceFileName,
                        String destinationLocationProperty,
                        String destinationFileName)
  -            throws Exception
  +            throws TurbineException
       {
           FileTransfer.send(serverURL,
                   username,
  @@ -562,7 +553,7 @@
                       String sourceFileName,
                       String destinationLocationProperty,
                       String destinationFileName)
  -            throws Exception
  +            throws TurbineException
       {
           FileTransfer.get(serverURL,
                   sourceLocationProperty,
  @@ -590,7 +581,7 @@
                       String sourceFileName,
                       String destinationLocationProperty,
                       String destinationFileName)
  -            throws Exception
  +            throws TurbineException
       {
           FileTransfer.get(serverURL,
                   username,
  @@ -612,7 +603,7 @@
       public void remove(String serverURL,
                          String sourceLocationProperty,
                          String sourceFileName)
  -            throws Exception
  +            throws TurbineException
       {
           FileTransfer.remove(serverURL,
                   sourceLocationProperty,
  @@ -634,7 +625,7 @@
                          String password,
                          String sourceLocationProperty,
                          String sourceFileName)
  -            throws Exception
  +            throws TurbineException
       {
           FileTransfer.remove(serverURL,
                   username,
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to