org.apache.turbine.services.xmlrpc.util
Class FileTransfer

java.lang.Object
  |
  +--org.apache.turbine.services.xmlrpc.util.FileTransfer

public class FileTransfer
extends java.lang.Object

Test class for FileHandler.

Version:
$Id: FileTransfer.java,v 1.2 2002/08/14 17:08:00 henning Exp $
Author:
Jason van Zyl

Constructor Summary
FileTransfer()
           
 
Method Summary
static void get(java.lang.String serverURL, java.lang.String sourceLocationProperty, java.lang.String sourceFileName, java.lang.String destinationLocationProperty, java.lang.String destinationFileName)
          Method to allow a client to get a file to a server.
static void get(java.lang.String serverURL, java.lang.String username, java.lang.String password, java.lang.String sourceLocationProperty, java.lang.String sourceFileName, java.lang.String destinationLocationProperty, java.lang.String destinationFileName)
          Method to allow a client to get a file from a server that requires a user name and password.
static void remove(java.lang.String serverURL, java.lang.String sourceLocationProperty, java.lang.String sourceFileName)
          Method to allow a client to remove a file from the server
static void remove(java.lang.String serverURL, java.lang.String username, java.lang.String password, java.lang.String sourceLocationProperty, java.lang.String sourceFileName)
          Method to allow a client to remove a file from a server that requires a user name and password.
static void send(java.lang.String serverURL, java.lang.String sourceLocationProperty, java.lang.String sourceFileName, java.lang.String destinationLocationProperty, java.lang.String destinationFileName)
          Method to allow a client to send a file to a server.
static void send(java.lang.String serverURL, java.lang.String username, java.lang.String password, java.lang.String sourceLocationProperty, java.lang.String sourceFileName, java.lang.String destinationLocationProperty, java.lang.String destinationFileName)
          Method to allow a client to send a file to a server that requires a user name and password.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileTransfer

public FileTransfer()
Method Detail

send

public static void send(java.lang.String serverURL,
                        java.lang.String sourceLocationProperty,
                        java.lang.String sourceFileName,
                        java.lang.String destinationLocationProperty,
                        java.lang.String destinationFileName)
                 throws java.lang.Exception
Method to allow a client to send a file to a server.
Parameters:
serverURL -  
sourceLocationProperty -  
sourceFileName -  
destinationLocationProperty -  
destinationFileName -  

send

public static void send(java.lang.String serverURL,
                        java.lang.String username,
                        java.lang.String password,
                        java.lang.String sourceLocationProperty,
                        java.lang.String sourceFileName,
                        java.lang.String destinationLocationProperty,
                        java.lang.String destinationFileName)
                 throws java.lang.Exception
Method to allow a client to send a file to a server that requires a user name and password.
Parameters:
serverURL -  
username -  
password -  
sourceLocationProperty -  
sourceFileName -  
destinationLocationProperty -  
destinationFileName -  

get

public static void get(java.lang.String serverURL,
                       java.lang.String sourceLocationProperty,
                       java.lang.String sourceFileName,
                       java.lang.String destinationLocationProperty,
                       java.lang.String destinationFileName)
                throws java.lang.Exception
Method to allow a client to get a file to a server.
Parameters:
serverURL -  
sourceLocationProperty -  
sourceFileName -  
destinationLocationProperty -  
destinationFileName -  

get

public static void get(java.lang.String serverURL,
                       java.lang.String username,
                       java.lang.String password,
                       java.lang.String sourceLocationProperty,
                       java.lang.String sourceFileName,
                       java.lang.String destinationLocationProperty,
                       java.lang.String destinationFileName)
                throws java.lang.Exception
Method to allow a client to get a file from a server that requires a user name and password.
Parameters:
serverURL -  
username -  
password -  
sourceLocationProperty -  
sourceFileName -  
destinationLocationProperty -  
destinationFileName -  

remove

public static void remove(java.lang.String serverURL,
                          java.lang.String sourceLocationProperty,
                          java.lang.String sourceFileName)
                   throws java.lang.Exception
Method to allow a client to remove a file from the server
Parameters:
serverURL -  
sourceLocationProperty -  
sourceFileName -  

remove

public static void remove(java.lang.String serverURL,
                          java.lang.String username,
                          java.lang.String password,
                          java.lang.String sourceLocationProperty,
                          java.lang.String sourceFileName)
                   throws java.lang.Exception
Method to allow a client to remove a file from a server that requires a user name and password.
Parameters:
serverURL -  
username -  
password -  
sourceLocationProperty -  
sourceFileName -  


Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.