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 longgetContentLength()Is there additional content being sent from the local machine to the remote serverjava.io.InputStreamgetContentStream()Gets the content's input stream.java.io.InputStreamgetReponseContentStream()longgetResponseContentLength()booleanrespond(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:CommandIs there additional content being sent from the local machine to the remote server- Specified by:
getContentLengthin interfaceCommand
-
getContentStream
public java.io.InputStream getContentStream() throws java.io.IOExceptionDescription 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:
java.io.IOException
-
getResponseContentLength
public long getResponseContentLength()
- Specified by:
getResponseContentLengthin interfaceCommand
-
getReponseContentStream
public java.io.InputStream getReponseContentStream() throws java.io.IOException- Specified by:
getReponseContentStreamin interfaceCommand- Throws:
java.io.IOException
-
respond
public boolean respond(org.apache.tools.ant.Project project, long contentLength, java.io.InputStream contentStream) throws java.io.IOExceptionDescription copied from interface:CommandProcess any additional data from a response.
-
-