Top Description Fields Constructors Methods
org.eclipse.jgit.api

public Class RemoteListCommand

extends GitCommand<List<RemoteConfig>>
Class Inheritance
Imports
java.net.URISyntaxException, java.util.List, org.eclipse.jgit.api.errors.GitAPIException, .JGitInternalException, org.eclipse.jgit.lib.Repository, org.eclipse.jgit.transport.RemoteConfig

Used to obtain the list of remotes. This class has setters for all supported options and arguments of this command and a call() method to finally execute the command.
Since
4.2
See Also
Git documentation about Remote

Field Summary

Inherited from org.eclipse.jgit.api.GitCommand:
repo

Constructor Summary

AccessConstructor and Description
protected
RemoteListCommand(Repository repo)

Constructor for RemoteListCommand.

Method Summary

Modifier and TypeMethod and Description
public List<RemoteConfig>
call()

Implements abstract org.eclipse.jgit.api.GitCommand.call.

Implements java.util.concurrent.Callable.call.

Computes a result, or throws an exception if unable to do so.

Inherited from org.eclipse.jgit.api.GitCommand:
checkCallablegetRepositorysetCallable

Constructor Detail

RemoteListCommandback to summary
protected RemoteListCommand(Repository repo)

Constructor for RemoteListCommand.

Parameters
repo:Repository

the org.eclipse.jgit.lib.Repository

Method Detail

callback to summary
public List<RemoteConfig> call() throws GitAPIException

Implements abstract org.eclipse.jgit.api.GitCommand.call.

Implements java.util.concurrent.Callable.call.

Doc from org.eclipse.jgit.api.GitCommand.call.

Computes a result, or throws an exception if unable to do so.

Execute the command

Executes the remote command with all the options and parameters collected by the setter methods of this class.

Returns:List<RemoteConfig>

Doc from java.util.concurrent.Callable.call.

computed result

Annotations
@Override