public abstract class BuildableCommand extends Command
Modifier and Type | Field and Description |
---|---|
protected Builder |
builder
An implementation of Builder interface that constructs a
FileContainerInfo object from the server's output..
|
localDirectory
Constructor and Description |
---|
BuildableCommand() |
Modifier and Type | Method and Description |
---|---|
void |
commandTerminated(TerminationEvent e)
Called when server responses with "ok" or "error", (when the command
finishes).
|
Builder |
createBuilder(EventManager eventManager)
Method that is called while the command is being executed.
|
void |
execute(ClientServices client,
EventManager eventManager)
Execute a command.
|
protected boolean |
isBuilderSet()
Returns whether the builder is set.
|
void |
messageSent(BinaryMessageEvent e)
Called when the server wants to send a binary message to be displayed to
the user.
|
void |
messageSent(MessageEvent e)
Called when the server wants to send a message to be displayed to the
user.
|
void |
setBuilder(Builder builder)
Used for setting user-defined builder.
|
clone, fileAdded, fileInfoGenerated, fileRemoved, fileToRemove, fileUpdated, getCVSArguments, getCVSCommand, getDisplayName, getGlobalOptions, getLocalDirectory, getLocalPath, getOptString, getRelativeToLocalPathInUnixStyle, getTrimmedString, hasFailed, moduleExpanded, resetCVSCommand, setCVSCommand, setDisplayName, setLocalDirectory
protected Builder builder
public void execute(ClientServices client, EventManager eventManager) throws CommandException, AuthenticationException
update,
statusetc.)
execute
in class Command
client
- the client services object that provides any necessary
services to this command, including the ability to actually
process all the requestsCommandException
- if an error occurs executing the commandAuthenticationException
public Builder createBuilder(EventManager eventManager)
public void messageSent(BinaryMessageEvent e)
CVSListener
messageSent
in interface CVSListener
messageSent
in class Command
e
- the eventpublic void messageSent(MessageEvent e)
Command
messageSent
in interface CVSListener
messageSent
in class Command
e
- the eventprotected boolean isBuilderSet()
public void setBuilder(Builder builder)
public void commandTerminated(TerminationEvent e)
commandTerminated
in interface CVSListener
commandTerminated
in class Command
Copyright © 2016. All rights reserved.