net.sf.antcontrib.antserver

Interface Command

public interface Command extends Serializable

Place class description here.

Since:

Author: Matthew Inger

Method Summary
booleanexecute(Project project, long contentLength, InputStream contentStream)
Execute the command.
longgetContentLength()
Is there additional content being sent from the local machine to the remote server
InputStreamgetContentStream()
Gets the content's input stream.
InputStreamgetReponseContentStream()
longgetResponseContentLength()
booleanrespond(Project project, long contentLength, InputStream contentStream)
Process any additional data from a response.
voidvalidate(Project project)
This should throw a build exception if the parameters are invalid.

Method Detail

execute

public boolean execute(Project project, long contentLength, InputStream contentStream)
Execute the command.

Parameters: project The project which is being executed

Returns: If true, the connection will be closed

Throws: Throwable

getContentLength

public long getContentLength()
Is there additional content being sent from the local machine to the remote server

getContentStream

public InputStream getContentStream()
Gets the content's input stream. Should be called only on the client side for sending the content over the connection

Returns: the content's input stream.

getReponseContentStream

public InputStream getReponseContentStream()

getResponseContentLength

public long getResponseContentLength()

respond

public boolean respond(Project project, long contentLength, InputStream contentStream)
Process any additional data from a response.

validate

public void validate(Project project)
This should throw a build exception if the parameters are invalid.