Class SendFileCommand
java.lang.Object
net.sf.antcontrib.antserver.commands.AbstractCommand
net.sf.antcontrib.antserver.commands.SendFileCommand
- All Implemented Interfaces:
Serializable
,Command
Place class description here.
- Since:
- Author:
- Matthew Inger,
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
execute
(org.apache.tools.ant.Project project, long contentLength, InputStream content) Execute the command.long
Is there additional content being sent from the local machine to the remote serverGets the content's input stream.getFile()
getTodir()
void
void
void
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 Details
-
SendFileCommand
public SendFileCommand()
-
-
Method Details
-
getFile
-
getContentLength
public long getContentLength()Description copied from interface:Command
Is there additional content being sent from the local machine to the remote server- Specified by:
getContentLength
in interfaceCommand
- Overrides:
getContentLength
in classAbstractCommand
-
getContentStream
Description copied from interface:Command
Gets the content's input stream. Should be called only on the client side for sending the content over the connection- Specified by:
getContentStream
in interfaceCommand
- Overrides:
getContentStream
in classAbstractCommand
- Returns:
- the content's input stream.
- Throws:
IOException
-
setFile
-
getTofile
-
setTofile
-
getTodir
-
setTodir
-
validate
public void validate(org.apache.tools.ant.Project project) Description copied from interface:Command
This should throw a build exception if the parameters are invalid. -
execute
public boolean execute(org.apache.tools.ant.Project project, long contentLength, InputStream content) throws Throwable Description copied from interface:Command
Execute the command.
-