org.eclipse.jgit.transport
Class TransportHttp

java.lang.Object
  extended by org.eclipse.jgit.transport.Transport
      extended by org.eclipse.jgit.transport.HttpTransport
          extended by org.eclipse.jgit.transport.TransportHttp
All Implemented Interfaces:
WalkTransport

public class TransportHttp
extends HttpTransport
implements WalkTransport

Transport over the non-Git aware HTTP and FTP protocol.

The HTTP transport does not require any specialized Git support on the remote (server side) repository. Object files are retrieved directly through standard HTTP GET requests, making it easy to serve a Git repository through a standard web host provider that does not offer specific support for Git.

See Also:
WalkFetchConnection

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
 
Method Summary
 void close()
          Close any resources used by this transport.
 FetchConnection openFetch()
          Begins a new connection for fetching from the remote repository.
 PushConnection openPush()
          Begins a new connection for pushing into the remote repository.
 
Methods inherited from class org.eclipse.jgit.transport.Transport
applyConfig, fetch, findRemoteRefUpdatesFor, findRemoteRefUpdatesFor, getOptionReceivePack, getOptionUploadPack, getTagOpt, getTimeout, getURI, isCheckFetchedObjects, isDryRun, isFetchThin, isPushThin, isRemoveDeletedRefs, open, open, open, open, open, openAll, openAll, openAll, openAll, push, setCheckFetchedObjects, setDryRun, setFetchThin, setOptionReceivePack, setOptionUploadPack, setPushThin, setRemoveDeletedRefs, setTagOpt, setTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

openFetch

public FetchConnection openFetch()
                          throws TransportException
Description copied from class: Transport
Begins a new connection for fetching from the remote repository.

Specified by:
openFetch in class Transport
Returns:
a fresh connection to fetch from the remote repository.
Throws:
TransportException - the remote connection could not be established.

openPush

public PushConnection openPush()
                        throws NotSupportedException,
                               TransportException
Description copied from class: Transport
Begins a new connection for pushing into the remote repository.

Specified by:
openPush in class Transport
Returns:
a fresh connection to push into the remote repository.
Throws:
NotSupportedException - the implementation does not support pushing.
TransportException - the remote connection could not be established

close

public void close()
Description copied from class: Transport
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.

Specified by:
close in class Transport