uk.ac.mrc.hgmp.embreo.filemgr
Class EmbreoFilePut

java.lang.Object
  |
  +--uk.ac.mrc.hgmp.embreo.filemgr.EmbreoFilePut

public class EmbreoFilePut
extends java.lang.Object


Constructor Summary
EmbreoFilePut(EmbreoParams mysettings, java.lang.String fileRoot, java.lang.String fileName, java.lang.Object fileData)
          Put a file to an embreo server
 
Method Summary
 java.lang.String getStatus()
          The status of the request
 java.lang.String getStatusMsg()
          A status message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmbreoFilePut

public EmbreoFilePut(EmbreoParams mysettings,
                     java.lang.String fileRoot,
                     java.lang.String fileName,
                     java.lang.Object fileData)
              throws EmbreoAuthException
Put a file to an embreo server

Parameters:
mysettings - EmbreoParams configuration
fileRoot - Name of the filesystem to send to
fileName - The name of the file relative to fileRoot
fileData - An Object containing the file data
Throws:
and - EmbreoAuthException if authentication fails
Method Detail

getStatus

public java.lang.String getStatus()
The status of the request

Returns:
String 0 for success Anything else for failure

getStatusMsg

public java.lang.String getStatusMsg()
A status message

Returns:
A String explaining what hapened. Usually used to display an error message in the event of a failure