Class TransportHttp.SmartHttpFetchConnection

    • Method Detail

      • doFetch

        protected void doFetch​(ProgressMonitor monitor,
                               java.util.Collection<Ref> want,
                               java.util.Set<ObjectId> have,
                               java.io.OutputStream outputStream)
                        throws TransportException
        Description copied from class: BasePackFetchConnection
        Execute common ancestor negotiation and fetch the objects.
        Overrides:
        doFetch in class BasePackFetchConnection
        Parameters:
        monitor - progress monitor to receive status updates. If the monitor is the NullProgressMonitor.INSTANCE, then the no-progress option enabled.
        want - the advertised remote references the caller wants to fetch.
        have - additional objects to assume that already exist locally. This will be added to the set of objects reachable from the destination repository's references.
        outputStream - ouputStream to write sideband messages to
        Throws:
        TransportException - if any exception occurs.
      • onReceivePack

        protected void onReceivePack()
        Description copied from class: BasePackFetchConnection
        Notification event delivered just before the pack is received from the network. This event can be used by RPC such as TransportHttp to disable its request magic and ensure the pack stream is read correctly.
        Overrides:
        onReceivePack in class BasePackFetchConnection