Class TransportHttp.SmartHttpPushConnection
java.lang.Object
org.eclipse.jgit.transport.BaseConnection
org.eclipse.jgit.transport.BasePackConnection
org.eclipse.jgit.transport.BasePackPushConnection
org.eclipse.jgit.transport.TransportHttp.SmartHttpPushConnection
- All Implemented Interfaces:
AutoCloseable, Connection, PushConnection
- Enclosing class:
TransportHttp
-
Field Summary
Fields inherited from class BasePackPushConnection
CAPABILITY_DELETE_REFS, CAPABILITY_OFS_DELTA, CAPABILITY_PUSH_OPTIONS, CAPABILITY_REPORT_STATUS, CAPABILITY_SIDE_BAND_64KFields inherited from class BasePackConnection
additionalHaves, CAPABILITY_SYMREF_PREFIX, in, local, out, outNeedsEnd, pckIn, pckOut, statelessRPC, timeoutIn, timeoutOut, transport, uri -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoPush(ProgressMonitor monitor, Map<String, RemoteRefUpdate> refUpdates, OutputStream outputStream) Push one or more objects and update the remote repository.Methods inherited from class BasePackPushConnection
getPushOptions, noRepository, push, pushMethods inherited from class BasePackConnection
addUserAgentCapability, close, endOut, getCapability, getPeerUserAgent, getProtocolVersion, init, isCapableOf, lsRefs, readAdvertisedRefs, setProtocolVersion, updateWithSymRefs, wantCapabilityMethods inherited from class BaseConnection
available, getMessages, getMessageWriter, getRef, getRefs, getRefsMap, markStartedOperation, setMessageWriter, setPeerUserAgentMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Connection
close, getMessages, getPeerUserAgent, getRef, getRefs, getRefsMap
-
Constructor Details
-
SmartHttpPushConnection
SmartHttpPushConnection(InputStream advertisement) throws TransportException - Throws:
TransportException
-
-
Method Details
-
doPush
protected void doPush(ProgressMonitor monitor, Map<String, RemoteRefUpdate> refUpdates, OutputStream outputStream) throws TransportException Description copied from class:BasePackPushConnectionPush one or more objects and update the remote repository.- Overrides:
doPushin classBasePackPushConnection- Parameters:
monitor- progress monitor to receive status updates.refUpdates- update commands to be applied to the remote repository.outputStream- output stream to write sideband messages to- Throws:
TransportException- if any exception occurs.
-