org.vrspace.server.command
Class upload

java.lang.Object
  extended byorg.vrspace.server.command.upload
All Implemented Interfaces:
Command

public class upload
extends java.lang.Object
implements Command

Request format: upload className path
className must be a File or one of its subclasses. The command creates a new instance of className in the database with name equal to path. Then it calls set_upload on the new object with the given path.

See Also:
BinarySession, File

Constructor Summary
upload()
           
 
Method Summary
 void exec(Request req)
          Request format: upload className path For non administrator's the path must be in the form userName/dir1/dir2/.../dirn/file, although the directory seperators may be \'s.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

upload

public upload()
Method Detail

exec

public void exec(Request req)
          throws java.lang.Exception
Request format: upload className path For non administrator's the path must be in the form userName/dir1/dir2/.../dirn/file, although the directory seperators may be \'s.

Specified by:
exec in interface Command
Throws:
java.lang.Exception