Class AbstractCommand
java.lang.Object
net.sf.antcontrib.antserver.commands.AbstractCommand
- All Implemented Interfaces:
Serializable, Command
- Direct Known Subclasses:
DisconnectCommand, HelloWorldCommand, RunAntCommand, RunTargetCommand, SendFileCommand, ShutdownCommand
Place class description here.
- Author:
- Matthew Inger
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongIs 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.
-
Constructor Details
-
AbstractCommand
public AbstractCommand()
-
-
Method Details
-
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
-
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- Returns:
- the content's input stream.
- Throws:
IOException
-
getResponseContentLength
public long getResponseContentLength()- Specified by:
getResponseContentLengthin interfaceCommand
-
getReponseContentStream
- Specified by:
getReponseContentStreamin interfaceCommand- Throws:
IOException
-
respond
public boolean respond(org.apache.tools.ant.Project project, long contentLength, InputStream contentStream) throws IOException Description copied from interface:CommandProcess any additional data from a response.- Specified by:
respondin interfaceCommand- Throws:
IOException
-