|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.jgit.transport.ReceiveCommand
public class ReceiveCommand
A command being processed by ReceivePack.
This command instance roughly translates to the server side representation of
the RemoteRefUpdate created by the client.
| Nested Class Summary | |
|---|---|
static class |
ReceiveCommand.Result
Result of the update command. |
static class |
ReceiveCommand.Type
Type of operation requested. |
| Constructor Summary | |
|---|---|
ReceiveCommand(ObjectId oldId,
ObjectId newId,
java.lang.String name)
Create a new command for ReceivePack. |
|
| Method Summary | |
|---|---|
java.lang.String |
getMessage()
|
ObjectId |
getNewId()
|
ObjectId |
getOldId()
|
Ref |
getRef()
|
java.lang.String |
getRefName()
|
ReceiveCommand.Result |
getResult()
|
ReceiveCommand.Type |
getType()
|
void |
setResult(ReceiveCommand.Result s)
Set the status of this command. |
void |
setResult(ReceiveCommand.Result s,
java.lang.String m)
Set the status of this command. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ReceiveCommand(ObjectId oldId,
ObjectId newId,
java.lang.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.| Method Detail |
|---|
public ObjectId getOldId()
public ObjectId getNewId()
public java.lang.String getRefName()
public ReceiveCommand.Type getType()
ReceiveCommand.Type.public Ref getRef()
public ReceiveCommand.Result getResult()
public java.lang.String getMessage()
public void setResult(ReceiveCommand.Result s)
s - the new status code for this command.
public void setResult(ReceiveCommand.Result s,
java.lang.String m)
s - new status code for this command.m - optional message explaining the new status.public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||