|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.antcontrib.antserver.commands.AbstractCommand
net.sf.antcontrib.antserver.commands.SendFileCommand
public class SendFileCommand
Place class description here.
Constructor Summary | |
---|---|
SendFileCommand()
|
Method Summary | |
---|---|
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. |
Methods inherited from class net.sf.antcontrib.antserver.commands.AbstractCommand |
---|
getReponseContentStream, getResponseContentLength, respond |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.antcontrib.antserver.Command |
---|
getReponseContentStream, getResponseContentLength, respond |
Constructor Detail |
---|
public SendFileCommand()
Method Detail |
---|
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
validate
in interface Command
public boolean execute(org.apache.tools.ant.Project project, long contentLength, java.io.InputStream content) throws java.lang.Throwable
Command
execute
in interface Command
project
- The project which is being executed
java.lang.Throwable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |