public class LsRemoteCommand extends TransportCommand<LsRemoteCommand,Collection<Ref>>
credentialsProvider, timeout, transportConfigCallbackrepo| Constructor and Description | 
|---|
LsRemoteCommand(Repository repo)
Constructor for LsRemoteCommand 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Collection<Ref> | 
call() | 
Map<String,Ref> | 
callAsMap()
Same as  
call(), but return Map instead of Collection. | 
LsRemoteCommand | 
setHeads(boolean heads)
Include refs/heads in references results 
 | 
LsRemoteCommand | 
setRemote(String remote)
The remote (uri or name) used for the fetch operation. 
 | 
LsRemoteCommand | 
setTags(boolean tags)
Include refs/tags in references results 
 | 
LsRemoteCommand | 
setUploadPack(String uploadPack)
The full path of git-upload-pack on the remote host 
 | 
configure, configure, self, setCredentialsProvider, setTimeout, setTransportConfigCallbackcheckCallable, getRepository, setCallablepublic LsRemoteCommand(Repository repo)
repo - local repository or null for operation without local
            repositorypublic LsRemoteCommand setRemote(String remote)
Constants.DEFAULT_REMOTE_NAME will
 be used.remote - a String object.thisConstants.DEFAULT_REMOTE_NAMEpublic LsRemoteCommand setHeads(boolean heads)
heads - whether to include refs/headsthispublic LsRemoteCommand setTags(boolean tags)
tags - whether to include tagsthispublic LsRemoteCommand setUploadPack(String uploadPack)
uploadPack - the full path of executable providing the git-upload-pack
            service on remote hostthispublic Collection<Ref> call() throws GitAPIException, InvalidRemoteException, TransportException
Execute the command
 Execute the LsRemote command with all the options and parameters
 collected by the setter methods (e.g. setHeads(boolean)) of this
 class. Each instance of this class should only be used for one invocation
 of the command. Don't call this method twice on an instance.
call in interface Callable<Collection<Ref>>call in class GitCommand<Collection<Ref>>GitAPIExceptionInvalidRemoteExceptionTransportExceptionpublic Map<String,Ref> callAsMap() throws GitAPIException, InvalidRemoteException, TransportException
call(), but return Map instead of Collection.GitAPIException - or subclass thereof when an error occursInvalidRemoteException - when called with an invalid remote uriTransportException - for errors that occurs during transportCopyright © 2021 Eclipse JGit Project. All rights reserved.