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_FILTER, 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, REACHABLE
additionalHaves, 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, setPackLockMessage
addUserAgentCapability, endOut, getPeerUserAgent, init, isCapableOf, noRepository, readAdvertisedRefs, wantCapability
available, getMessages, getMessageWriter, getRef, getRefs, getRefsMap, markStartedOperation, setMessageWriter, setPeerUserAgent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMessages, getPeerUserAgent, getRef, getRefs, getRefsMap
private TransportHttp.MultiRequestService svc
SmartHttpFetchConnection(java.io.InputStream advertisement) throws TransportException
TransportException
protected void doFetch(ProgressMonitor monitor, java.util.Collection<Ref> want, java.util.Set<ObjectId> have, java.io.OutputStream outputStream) throws TransportException
BasePackFetchConnection
doFetch
in class BasePackFetchConnection
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 toTransportException
- if any exception occurs.protected void onReceivePack()
BasePackFetchConnection
TransportHttp
to
disable its request magic and ensure the pack stream is read correctly.onReceivePack
in class BasePackFetchConnection