Java org.eclipse.jgit.transport Transport fields, constructors, methods, implement or subclass

Example usage for Java org.eclipse.jgit.transport Transport fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.eclipse.jgit.transport Transport.

The text is from its open source code.

Field

booleanDEFAULT_FETCH_THIN
Default setting for #fetchThin option.
RefSpecREFSPEC_TAGS
Specification for fetch or push operations, to fetch or push all tags.
RefSpecREFSPEC_PUSH_ALL
Specification for push operation, to push all refs under refs/heads.
Listfetch
Specifications to apply during fetch.
Listpush
Specifications to apply during push.

Constructor

Transport(Repository local, URIish uri)
Create a new transport instance.

Method

voidapplyConfig(RemoteConfig cfg)
Apply provided remote configuration on this transport.
voidclose()

Close any resources used by this transport.

CollectionfindRemoteRefUpdatesFor(final Repository db, final Collection specs, Collection fetchSpecs)
Convert push remote refs update specification from org.eclipse.jgit.transport.RefSpec form to org.eclipse.jgit.transport.RemoteRefUpdate .
intgetTimeout()
Get timeout (in seconds) before aborting an IO operation.
ListgetTransportProtocols()
Obtain a copy of the registered protocols.
URIishgetURI()
Get the URI this transport connects to.
booleanisCheckFetchedObjects()
Whether fetch will verify if received objects are formatted correctly.
Transportopen(Repository local, String remote)
Open a new transport instance to connect two repositories.
Transportopen(Repository local, RemoteConfig cfg)
Open a new transport instance to connect two repositories.
Transportopen(Repository local, URIish uri)
Open a new transport instance to connect two repositories.
ListopenAll(final Repository local, final String remote, final Operation op)
Open new transport instances to connect two repositories.
ListopenAll(final Repository local, final RemoteConfig cfg, final Operation op)
Open new transport instances to connect two repositories.
FetchConnectionopenFetch()
Begins a new connection for fetching from the remote repository.
PushConnectionopenPush()
Begins a new connection for pushing into the remote repository.
voidregister(TransportProtocol proto)
Register a TransportProtocol instance for use during open.
voidsetCredentialsProvider(CredentialsProvider credentialsProvider)
A credentials provider to assist with authentication connections..
voidsetDryRun(boolean dryRun)
Set dry run option for push operation.
voidsetOptionReceivePack(String optionReceivePack)
Set remote executable providing receive-pack service for pack transports.
voidsetPushThin(boolean pushThin)
Set thin-pack preference for push operation.
voidsetTagOpt(TagOpt option)
Set the description of how annotated tags should be treated on fetch.
voidsetTimeout(int seconds)
Set the timeout before willing to abort an IO call.
voidunregister(TransportProtocol proto)
Unregister a TransportProtocol instance.