| Modifier and Type | Field and Description |
|---|---|
| private SshSessionFactory | |
| private RemoteSession | sock
The open SSH session |
| Access | Constructor and Description |
|---|---|
| protected | SshTransport(Repository
the repository this instance will fetch into, or push out of.
This must be the repository passed to
local, URIish open(Repository, URIish).the URI used to access the remote repository. This must be the
URI passed to uri)open(Repository, URIish).Create a new transport instance. |
| protected | SshTransport(URIish
the URI used to access the remote repository. This must be the
URI passed to uri)open(URIish).Create a new transport instance without a local repository. |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements abstract org. Implements java. Closes this resource, relinquishing any underlying resources. |
| protected RemoteSession | |
| public SshSessionFactory | Returns: the SSH session factory that will be used for creating SSH sessionsGet the SSH session factory |
| public void | setSshSessionFactory(SshSessionFactory
a factory to set, must not be null factory)Set SSH session factory instead of the default one for this instance of the transport. |
| sch | back to summary |
|---|---|
| private SshSessionFactory sch | |
| sock | back to summary |
|---|---|
| private RemoteSession sock The open SSH session | |
| SshTransport | back to summary |
|---|---|
| protected SshTransport(Repository local, URIish uri) Create a new transport instance.
| |
| SshTransport | back to summary |
|---|---|
| protected SshTransport(URIish uri) Create a new transport instance without a local repository.
| |
| close | back to summary |
|---|---|
| public void close() Implements abstract org. Implements java. Doc from org. Closes this resource, relinquishing any underlying resources.
This method is invoked automatically on objects managed by the
Close any resources used by this 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.
| |
| getSession | back to summary |
|---|---|
| protected RemoteSession getSession() throws TransportException Get the default SSH session
| |
| getSshSessionFactory | back to summary |
|---|---|
| public SshSessionFactory getSshSessionFactory() Get the SSH session factory
| |
| setSshSessionFactory | back to summary |
|---|---|
| public void setSshSessionFactory(SshSessionFactory factory) Set SSH session factory instead of the default one for this instance of the transport.
| |