public class ReceiveCommand extends Object
ReceivePack.
This command instance roughly translates to the server side representation of
the RemoteRefUpdate created by the client.
| Modifier and Type | Class and Description |
|---|---|
static class |
ReceiveCommand.Result
Result of the update command.
|
static class |
ReceiveCommand.Type
Type of operation requested.
|
| Constructor and Description |
|---|
ReceiveCommand(ObjectId oldId,
ObjectId newId,
String name)
Create a new command for
ReceivePack. |
| Modifier and Type | Method and Description |
|---|---|
String |
getMessage() |
ObjectId |
getNewId() |
ObjectId |
getOldId() |
Ref |
getRef() |
String |
getRefName() |
ReceiveCommand.Result |
getResult() |
ReceiveCommand.Type |
getType() |
void |
setResult(ReceiveCommand.Result s)
Set the status of this command.
|
void |
setResult(ReceiveCommand.Result s,
String m)
Set the status of this command.
|
String |
toString() |
public ReceiveCommand(ObjectId oldId, ObjectId newId, String name)
ReceivePack.oldId - the old object id; must not be null. Use
ObjectId.zeroId() to indicate a ref creation.newId - the new object id; must not be null. Use
ObjectId.zeroId() to indicate a ref deletion.name - name of the ref being affected.public ObjectId getOldId()
public ObjectId getNewId()
public String getRefName()
public ReceiveCommand.Type getType()
ReceiveCommand.Type.public Ref getRef()
public ReceiveCommand.Result getResult()
public String getMessage()
public void setResult(ReceiveCommand.Result s)
s - the new status code for this command.public void setResult(ReceiveCommand.Result s, String m)
s - new status code for this command.m - optional message explaining the new status.Copyright © 2012. All Rights Reserved.