|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jgit.transport.Transport
org.eclipse.jgit.transport.TcpTransport
org.eclipse.jgit.transport.SshTransport
public abstract class SshTransport
The base class for transports that use SSH protocol. This class allows customizing SSH connection settings.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.jgit.transport.Transport |
---|
Transport.Operation |
Field Summary |
---|
Fields inherited from class org.eclipse.jgit.transport.Transport |
---|
DEFAULT_FETCH_THIN, DEFAULT_PUSH_THIN, local, REFSPEC_PUSH_ALL, REFSPEC_TAGS, uri |
Constructor Summary | |
---|---|
protected |
SshTransport(Repository local,
URIish uri)
Create a new transport instance. |
Method Summary | |
---|---|
void |
close()
Close any resources used by this transport. |
protected RemoteSession |
getSession()
Get the default SSH session |
SshSessionFactory |
getSshSessionFactory()
|
void |
setSshSessionFactory(SshSessionFactory factory)
Set SSH session factory instead of the default one for this instance of the transport. |
Methods inherited from class org.eclipse.jgit.transport.Transport |
---|
applyConfig, fetch, findRemoteRefUpdatesFor, findRemoteRefUpdatesFor, getCredentialsProvider, getOptionReceivePack, getOptionUploadPack, getPackConfig, getTagOpt, getTimeout, getTransportProtocols, getURI, isCheckFetchedObjects, isDryRun, isFetchThin, isPushThin, isRemoveDeletedRefs, open, open, open, open, open, open, open, openAll, openAll, openAll, openAll, openFetch, openPush, push, register, setCheckFetchedObjects, setCredentialsProvider, setDryRun, setFetchThin, setOptionReceivePack, setOptionUploadPack, setPackConfig, setPushThin, setRemoveDeletedRefs, setTagOpt, setTimeout, unregister |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected SshTransport(Repository local, URIish uri)
local
- the repository this instance will fetch into, or push out of.
This must be the repository passed to
Transport.open(Repository, URIish)
.uri
- the URI used to access the remote repository. This must be the
URI passed to Transport.open(Repository, URIish)
.Method Detail |
---|
public void setSshSessionFactory(SshSessionFactory factory)
factory
- a factory to set, must not be null
java.lang.IllegalStateException
- if session has been already created.public SshSessionFactory getSshSessionFactory()
protected RemoteSession getSession() throws TransportException
TransportException
- in case of error with opening SSH sessionpublic void close()
Transport
If the remote repository is contacted by a network socket this method must close that network socket, disconnecting the two peers. If the remote repository is actually local (same system) this method must close any open file handles used to read the "remote" repository.
close
in class Transport
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |