org.apache.geronimo.deployment.plugin.remote
Class FileUploadServletClient

java.lang.Object
  extended by org.apache.geronimo.deployment.plugin.remote.FileUploadServletClient
All Implemented Interfaces:
FileUploadClient

public class FileUploadServletClient
extends Object
implements FileUploadClient


Field Summary
static int REMOTE_DEPLOY_REQUEST_VER
           
static int REMOTE_DEPLOY_REQUEST_VER_0
          Note: The below versions should be kept in sync with those in FileUploadServlet.java
static int REMOTE_DEPLOY_RESPONSE_VER
           
static int REMOTE_DEPLOY_RESPONSE_VER_0
           
 
Constructor Summary
FileUploadServletClient()
           
 
Method Summary
protected  URLConnection connectToServer(URL url, String username, String password)
           
protected  AbstractName getDeployerName(Kernel kernel)
           
 URL getRemoteDeployUploadURL(Kernel kernel)
           
protected  void readResponse(URLConnection con, File[] files, List valid, FileUploadProgress progress)
           
 void uploadFilesToServer(URL uploadURL, String username, String password, File[] files, FileUploadProgress progress)
           
protected  void writeRequest(URLConnection con, File[] files, List valid, FileUploadProgress progress)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REMOTE_DEPLOY_REQUEST_VER_0

public static final int REMOTE_DEPLOY_REQUEST_VER_0
Note: The below versions should be kept in sync with those in FileUploadServlet.java

See Also:
Constant Field Values

REMOTE_DEPLOY_RESPONSE_VER_0

public static final int REMOTE_DEPLOY_RESPONSE_VER_0
See Also:
Constant Field Values

REMOTE_DEPLOY_REQUEST_VER

public static final int REMOTE_DEPLOY_REQUEST_VER
See Also:
Constant Field Values

REMOTE_DEPLOY_RESPONSE_VER

public static final int REMOTE_DEPLOY_RESPONSE_VER
See Also:
Constant Field Values
Constructor Detail

FileUploadServletClient

public FileUploadServletClient()
Method Detail

getRemoteDeployUploadURL

public URL getRemoteDeployUploadURL(Kernel kernel)
Specified by:
getRemoteDeployUploadURL in interface FileUploadClient

getDeployerName

protected AbstractName getDeployerName(Kernel kernel)

uploadFilesToServer

public void uploadFilesToServer(URL uploadURL,
                                String username,
                                String password,
                                File[] files,
                                FileUploadProgress progress)
Specified by:
uploadFilesToServer in interface FileUploadClient

readResponse

protected void readResponse(URLConnection con,
                            File[] files,
                            List valid,
                            FileUploadProgress progress)
                     throws IOException
Throws:
IOException

writeRequest

protected void writeRequest(URLConnection con,
                            File[] files,
                            List valid,
                            FileUploadProgress progress)
                     throws IOException,
                            FileNotFoundException
Throws:
IOException
FileNotFoundException

connectToServer

protected URLConnection connectToServer(URL url,
                                        String username,
                                        String password)
                                 throws IOException
Throws:
IOException


Copyright © 2003-2008 The Apache Geronimo development community. All Rights Reserved.