call() method to finally execute the command.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | RemoteSetUrlCommand.
The available URI types for the remote. |
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private URIish | |
| private RemoteSetUrlCommand. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public RemoteConfig | call()
Implements abstract org. Implements java. Computes a result, or throws an exception if unable to do so. |
| public RemoteSetUrlCommand | Returns: thisa remote remoteName remoteName)The name of the remote to change the URL for. |
| public RemoteSetUrlCommand | |
| public RemoteSetUrlCommand | Returns: thisthe typeUriType value to setWhether to change the push URL of the remote instead of the fetch URL. |
| remoteName | back to summary |
|---|---|
| private String remoteName | |
| remoteUri | back to summary |
|---|---|
| private URIish remoteUri | |
| type | back to summary |
|---|---|
| private RemoteSetUrlCommand. | |
| RemoteSetUrlCommand | back to summary |
|---|---|
| protected RemoteSetUrlCommand(Repository repo) Constructor for RemoteSetUrlCommand.
| |
| call | back to summary |
|---|---|
| public RemoteConfig call() throws GitAPIException Implements abstract org. Implements java. Doc from org. Computes a result, or throws an exception if unable to do so. Execute the command
Executes the
| |
| setRemoteName | back to summary |
|---|---|
| public RemoteSetUrlCommand setRemoteName(String remoteName) The name of the remote to change the URL for.
| |
| setRemoteUri | back to summary |
|---|---|
| public RemoteSetUrlCommand setRemoteUri(URIish remoteUri) The new URL for the remote.
| |
| setUriType | back to summary |
|---|---|
| public RemoteSetUrlCommand setUriType(RemoteSetUrlCommand. Whether to change the push URL of the remote instead of the fetch URL.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final RemoteSetUrlCommand. | FETCH
Fetch URL for the remote. |
| public static final RemoteSetUrlCommand. | PUSH
Push URL for the remote. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static RemoteSetUrlCommand. | |
| public static RemoteSetUrlCommand. |
| FETCH | back to summary |
|---|---|
| public static final RemoteSetUrlCommand. Fetch URL for the remote. | |
| PUSH | back to summary |
|---|---|
| public static final RemoteSetUrlCommand. Push URL for the remote. | |
| UriType | back to summary |
|---|---|
| private UriType() | |
| valueOf | back to summary |
|---|---|
| public static RemoteSetUrlCommand. | |
| values | back to summary |
|---|---|
| public static RemoteSetUrlCommand. | |