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, respond
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getReponseContentStream, getResponseContentLength, respond
public java.io.File getFile()
public long getContentLength()
Command
getContentLength
in interface Command
getContentLength
in class AbstractCommand
public java.io.InputStream getContentStream() throws java.io.IOException
Command
getContentStream
in interface Command
getContentStream
in class AbstractCommand
java.io.IOException
public 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)
Command
public boolean execute(org.apache.tools.ant.Project project, long contentLength, java.io.InputStream content) throws java.lang.Throwable
Command