Interface Command

All Superinterfaces:
Serializable
All Known Implementing Classes:
AbstractCommand, DisconnectCommand, HelloWorldCommand, RunAntCommand, RunTargetCommand, SendFileCommand, ShutdownCommand

public interface Command extends Serializable
Place class description here.
Since:
Author:
Matthew Inger,
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    execute(org.apache.tools.ant.Project project, long contentLength, InputStream contentStream)
    Execute the command.
    long
    Is there additional content being sent from the local machine to the remote server
    Gets the content's input stream.
     
    long
     
    boolean
    respond(org.apache.tools.ant.Project project, long contentLength, InputStream contentStream)
    Process any additional data from a response.
    void
    validate(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

      InputStream getContentStream() throws IOException
      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

      InputStream getReponseContentStream() throws IOException
      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