Interface Command
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
AbstractCommand, DisconnectCommand, HelloWorldCommand, RunAntCommand, RunTargetCommand, SendFileCommand, ShutdownCommand
Place class description here.
- Since:
- Author:
- Matthew Inger,
-
Method Summary
Modifier and TypeMethodDescriptionbooleanexecute(org.apache.tools.ant.Project project, long contentLength, InputStream contentStream) Execute the command.longIs there additional content being sent from the local machine to the remote serverGets the content's input stream.longbooleanrespond(org.apache.tools.ant.Project project, long contentLength, InputStream contentStream) Process any additional data from a response.voidvalidate(org.apache.tools.ant.Project project) This should throw a build exception if the parameters are invalid.
-
Method Details
-
validate
void validate(org.apache.tools.ant.Project project) This should throw a build exception if the parameters are invalid. -
getContentLength
long getContentLength()Is there additional content being sent from the local machine to the remote server -
getContentStream
Gets the content's input stream. Should be called only on the client side for sending the content over the connection- Returns:
- the content's input stream.
- Throws:
IOException
-
getResponseContentLength
long getResponseContentLength() -
getReponseContentStream
- Throws:
IOException
-
execute
boolean execute(org.apache.tools.ant.Project project, long contentLength, InputStream contentStream) throws Throwable Execute the command.- Parameters:
project- The project which is being executed- Returns:
- If true, the connection will be closed
- Throws:
Throwable
-
respond
boolean respond(org.apache.tools.ant.Project project, long contentLength, InputStream contentStream) throws IOException Process any additional data from a response.- Throws:
IOException
-