Package org.eclipse.jgit.transport
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 org.eclipse.jgit.transport.BasePackPushConnection
CAPABILITY_DELETE_REFS, CAPABILITY_OFS_DELTA, CAPABILITY_PUSH_OPTIONS, CAPABILITY_REPORT_STATUS, CAPABILITY_SIDE_BAND_64KFields inherited from class org.eclipse.jgit.transport.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 org.eclipse.jgit.transport.BasePackPushConnection
getPushOptions, noRepository, push, pushMethods inherited from class org.eclipse.jgit.transport.BasePackConnection
addUserAgentCapability, close, endOut, getCapability, getPeerUserAgent, getProtocolVersion, init, isCapableOf, lsRefs, readAdvertisedRefs, setProtocolVersion, updateWithSymRefs, wantCapabilityMethods inherited from class org.eclipse.jgit.transport.BaseConnection
available, getMessages, getMessageWriter, getRef, getRefs, getRefsMap, markStartedOperation, setMessageWriter, setPeerUserAgentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.jgit.transport.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 TransportExceptionDescription 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.
-