Class AbstractCommand
- java.lang.Object
-
- net.sf.antcontrib.antserver.commands.AbstractCommand
-
- All Implemented Interfaces:
java.io.Serializable
,Command
- Direct Known Subclasses:
DisconnectCommand
,HelloWorldCommand
,RunAntCommand
,RunTargetCommand
,SendFileCommand
,ShutdownCommand
public abstract class AbstractCommand extends java.lang.Object implements Command
Place class description here.- Author:
- Matthew Inger
- See Also:
- Serialized Form
-
-
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 serverjava.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.
-
-
-
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 interfaceCommand
-
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 interfaceCommand
- Returns:
- the content's input stream.
- Throws:
java.io.IOException
-
getResponseContentLength
public long getResponseContentLength()
- Specified by:
getResponseContentLength
in interfaceCommand
-
getReponseContentStream
public java.io.InputStream getReponseContentStream() throws java.io.IOException
- Specified by:
getReponseContentStream
in interfaceCommand
- 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.
-
-