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 TypeMethodDescriptionbooleanexecute(org.apache.tools.ant.Project project, long contentLength, InputStream content) Execute the command.longIs there additional content being sent from the local machine to the remote serverGets the content's input stream.getFile()getTodir()voidvoidvoidvoidvalidate(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, respondMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:CommandIs there additional content being sent from the local machine to the remote server- Specified by:
getContentLengthin interfaceCommand- Overrides:
getContentLengthin classAbstractCommand
-
getContentStream
Description copied from interface:CommandGets the content's input stream. Should be called only on the client side for sending the content over the connection- Specified by:
getContentStreamin interfaceCommand- Overrides:
getContentStreamin 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:CommandThis 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:CommandExecute the command.
-