class TransportHttp.SmartHttpFetchConnection extends BasePackFetchConnection
BasePackFetchConnection.FetchConfig| Modifier and Type | Field and Description |
|---|---|
private TransportHttp.MultiRequestService |
svc |
ADVERTISED, COMMON, MIN_CLIENT_BUFFER, OPTION_ALLOW_REACHABLE_SHA1_IN_WANT, OPTION_ALLOW_TIP_SHA1_IN_WANT, OPTION_INCLUDE_TAG, OPTION_MULTI_ACK, OPTION_MULTI_ACK_DETAILED, OPTION_NO_DONE, OPTION_NO_PROGRESS, OPTION_OFS_DELTA, OPTION_SHALLOW, OPTION_SIDE_BAND, OPTION_SIDE_BAND_64K, OPTION_THIN_PACK, REACHABLEadditionalHaves, in, local, out, outNeedsEnd, pckIn, pckOut, statelessRPC, timeoutIn, timeoutOut, transport, uri| Constructor and Description |
|---|
SmartHttpFetchConnection(java.io.InputStream advertisement) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doFetch(ProgressMonitor monitor,
java.util.Collection<Ref> want,
java.util.Set<ObjectId> have,
java.io.OutputStream outputStream)
Execute common ancestor negotiation and fetch the objects.
|
protected void |
onReceivePack()
Notification event delivered just before the pack is received from the
network.
|
close, didFetchIncludeTags, didFetchTestConnectivity, fetch, fetch, getFetchConfig, getPackLocks, setPackLockMessageaddUserAgentCapability, endOut, getPeerUserAgent, init, isCapableOf, noRepository, readAdvertisedRefs, wantCapabilityavailable, getMessages, getMessageWriter, getRef, getRefs, getRefsMap, markStartedOperation, setMessageWriter, setPeerUserAgentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMessages, getPeerUserAgent, getRef, getRefs, getRefsMapprivate TransportHttp.MultiRequestService svc
SmartHttpFetchConnection(java.io.InputStream advertisement)
throws TransportException
TransportExceptionprotected void doFetch(ProgressMonitor monitor, java.util.Collection<Ref> want, java.util.Set<ObjectId> have, java.io.OutputStream outputStream) throws TransportException
BasePackFetchConnectiondoFetch in class BasePackFetchConnectionmonitor - 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 toTransportException - if any exception occurs.protected void onReceivePack()
BasePackFetchConnectionTransportHttp to
disable its request magic and ensure the pack stream is read correctly.onReceivePack in class BasePackFetchConnection