public class SendFileCommand extends AbstractCommand implements Command
| Constructor and Description |
|---|
SendFileCommand() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute(org.apache.tools.ant.Project project,
long contentLength,
java.io.InputStream content)
Execute the command.
|
long |
getContentLength()
Is there additional content being sent from the local
machine to the remote server
|
java.io.InputStream |
getContentStream()
Gets the content's input stream.
|
java.io.File |
getFile() |
java.lang.String |
getTodir() |
java.lang.String |
getTofile() |
void |
setFile(java.io.File file) |
void |
setTodir(java.lang.String todir) |
void |
setTofile(java.lang.String tofile) |
void |
validate(org.apache.tools.ant.Project project)
This should throw a build exception if the parameters
are invalid.
|
getReponseContentStream, getResponseContentLength, respondclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetReponseContentStream, getResponseContentLength, respondpublic java.io.File getFile()
public long getContentLength()
CommandgetContentLength in interface CommandgetContentLength in class AbstractCommandpublic java.io.InputStream getContentStream()
throws java.io.IOException
CommandgetContentStream in interface CommandgetContentStream in class AbstractCommandjava.io.IOExceptionpublic void setFile(java.io.File file)
public java.lang.String getTofile()
public void setTofile(java.lang.String tofile)
public java.lang.String getTodir()
public void setTodir(java.lang.String todir)
public void validate(org.apache.tools.ant.Project project)
Commandpublic boolean execute(org.apache.tools.ant.Project project,
long contentLength,
java.io.InputStream content)
throws java.lang.Throwable
Command