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 TypeMethodDescriptionlong
Is there additional content being sent from the local machine to the remote serverGets 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.
-
Constructor Details
-
AbstractCommand
public AbstractCommand()
-
-
Method Details
-
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 interfaceCommand
-
getContentStream
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 interfaceCommand
- Returns:
- the content's input stream.
- Throws:
IOException
-
getResponseContentLength
public long getResponseContentLength()- Specified by:
getResponseContentLength
in interfaceCommand
-
getReponseContentStream
- Specified by:
getReponseContentStream
in interfaceCommand
- Throws:
IOException
-
respond
public boolean respond(org.apache.tools.ant.Project project, long contentLength, InputStream contentStream) throws IOException Description copied from interface:Command
Process any additional data from a response.- Specified by:
respond
in interfaceCommand
- Throws:
IOException
-