Class AbstractCommand

    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractCommand()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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.InputStream getReponseContentStream()  
      long getResponseContentLength()  
      boolean respond​(org.apache.tools.ant.Project project, long contentLength, java.io.InputStream contentStream)
      Process any additional data from a response.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractCommand

        public AbstractCommand()
    • Method Detail

      • 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 interface Command
      • getContentStream

        public java.io.InputStream getContentStream()
                                             throws java.io.IOException
        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 interface Command
        Returns:
        the content's input stream.
        Throws:
        java.io.IOException
      • getReponseContentStream

        public java.io.InputStream getReponseContentStream()
                                                    throws java.io.IOException
        Specified by:
        getReponseContentStream in interface Command
        Throws:
        java.io.IOException
      • respond

        public boolean respond​(org.apache.tools.ant.Project project,
                               long contentLength,
                               java.io.InputStream contentStream)
                        throws java.io.IOException
        Description copied from interface: Command
        Process any additional data from a response.
        Specified by:
        respond in interface Command
        Throws:
        java.io.IOException