Transport (fetch/push) for different protocols.
Interface Summary Interface Description AdvertiseRefsHookHook to allow callers to take over advertising refs to the client. ConnectionRepresent connection for operation on a remote repository. ConnectivityCheckerChecks that a received pack only depends on objects which are reachable from a defined set of references. FetchConnectionLists known refs from the remote and copies objects of selected refs. FtpChannelAn interface providing FTP operations over a
FtpChannel.DirEntrySimplified remote directory entry. NonceGeneratorA NonceGenerator is used to create a nonce to be sent out to the pusher who will sign the nonce to prove it is not a replay attack on the push certificate. ObjectCountCallbackA callback to tell caller the count of objects ASAP. PackLockA
.keepfile that holds a pack in place.
PackTransportMarker interface an object transport using Git pack transfers. PostReceiveHookHook invoked by
ReceivePackafter all updates are executed.
PostUploadHookHook invoked by
UploadPackafter the pack has been uploaded.
PreReceiveHookHook invoked by
ReceivePackbefore any updates are executed.
PreUploadHookHook invoked by
UploadPackbefore during critical phases.
ProtocolV2HookHook to allow callers to be notified on Git protocol v2 requests. PushConnectionLists known refs from the remote and sends objects to the remote. ReceiveCommandErrorHandlerException handler for processing
RefFilterFilters the list of refs that are advertised to the client. RemoteSessionAn abstraction of a remote "session" for executing remote commands. RemoteSession2A
RemoteSessionthat supports passing environment variables to commands.
SshConfigStoreAn abstraction for a SSH config storage, like the OpenSSH ~/.ssh/config file. SshConfigStore.HostConfigA host entry from the ssh config. TransportBundleMarker interface for transports that supports fetching from a git bundle (sneaker-net object transport). UnpackErrorHandlerException handler for processing an incoming pack file. UploadPack.RequestValidatorValidator for client requests. WalkTransportMarker interface for an object transport walking transport.
Class Summary Class Description AbstractAdvertiseRefsHookImplementation of
AdvertiseRefsHookthat advertises the same refs for upload-pack and receive-pack.
AdvertiseRefsHookthat delegates to a list of other hooks.
AmazonS3A simple HTTP REST client for the Amazon S3 service. AwsRequestSignerV4Utility class for signing requests to AWS service endpoints using the V4 signing protocol. BaseConnectionBase helper class for implementing operations connections. BasePackFetchConnectionFetch implementation using the native Git pack transfer service. BasePackPushConnectionPush implementation using the native Git pack transfer service. BundleWriterCreates a Git bundle file, for sneaker-net transport to another system. CapabilitiesV2RequestCapabilities protocol v2 request. CapabilitiesV2Request.BuilderA builder for
ChainingCredentialsProviderA credentials provider chaining multiple credentials providers ConnectivityChecker.ConnectivityCheckInfoPOJO which is used to pass all information which is needed to perform connectivity check. CredentialItemA credential requested from a
CredentialItem.CharArrayTypeAn item whose value is stored as a char and is therefore clearable. CredentialItem.InformationalMessageAn advice message presented to the user, with no response required. CredentialItem.PasswordPrompt for a password, which is masked on input. CredentialItem.StringTypeAn item whose value is stored as a string. CredentialItem.UsernamePrompt for a username, which is not masked on input. CredentialItem.YesNoTypeAn item whose value is a boolean choice, presented as Yes/No. CredentialsProviderProvide credentials for use in connecting to Git repositories. DaemonBasic daemon for the anonymous
DaemonClientActive network client of
DaemonServiceA service exposed by
FetchResultFinal status after a successful fetch from a remote repository. FetchV2RequestFetch request from git protocol v2. FilterSpecRepresents either a filter specified in a protocol "filter" line, or a placeholder to indicate no filtering. GitProtocolConstantsWire constants for the native Git protocol. HMACSHA1NonceGeneratorThe nonce generator which was first introduced to git-core. HttpConfigA representation of the "http.*" config values in a git
HttpTransportThe base class for transports that use HTTP as underlying protocol. InternalHttpServerGlueInternal API to assist
LsRefsV2Requestls-refs protocol v2 request. LsRefsV2Request.BuilderA builder for
NetRCNetRC file parser. NetRC.NetRCEntry.netrc file entry NetRCCredentialsProviderSimple .netrc credentials provider. ObjectInfoRequestobject-info request. ObjectInfoRequest.BuilderA builder for
OperationResultClass holding result of operation on remote repository. PackedObjectInfoDescription of an object stored in a pack file, including offset. PacketLineInRead Git style pkt-line formatting from an input stream. PacketLineIn.PacketLineInIteratorIterator over packet lines. PacketLineOutWrite Git style pkt-line formatting to an output stream. PackParserParses a pack stream and imports it for an
PackParser.ObjectTypeAndSizeType and size information about an object in the database buffer. PackParser.UnresolvedDeltaInformation about an unresolved delta in this pack stream. PostReceiveHookChain
PostReceiveHookthat delegates to a list of other hooks.
PostUploadHookthat delegates to a list of other hooks.
PreReceiveHookthat delegates to a list of other hooks.
PreUploadHookthat delegates to a list of other hooks.
ProgressSpinnerA simple spinner connected to an
ProtocolV2Hookthat delegates to a list of other hooks.
PushCertificateThe required information to verify the push. PushCertificateIdentIdentity in a push certificate. PushCertificateParserParser for signed push certificates. PushCertificateStoreStorage for recorded push certificates. PushConfigPush section of a Git configuration file. PushResultResult of push operation to the remote repository. ReceiveCommandA command being processed by
ReceivedPackStatistics.BuilderA builder for
ReceivePackImplements the server side of a push connection, receiving objects. ReceivePack.FirstLine Deprecated.Use
RefAdvertiser RefAdvertiser.PacketLineOutRefAdvertiserAdvertiser which frames lines in a
RefLeaseSpecDescribes the expected value for a ref being pushed. RefSpecDescribes how refs in one repository copy into another repository. RemoteConfigA remembered remote repository, including URLs and RefSpecs. RemoteRefUpdateRepresent request and status of a remote ref update. SideBandInputStreamUnmultiplexes the data portion of a side-band channel. SideBandOutputStreamMultiplexes data and progress messages. SignedPushConfigConfiguration for server-side signed push verification. SshConstantsConstants relating to ssh. SshSessionFactoryCreates and destroys SSH connections to a remote system. SshTransportThe base class for transports that use SSH protocol. TcpTransportThe base class for transports based on TCP sockets. TestProtocol<C>Protocol for transport between manually-specified repositories in tests. TrackingRefUpdateUpdate of a locally stored tracking branch. TransferConfigThe standard "transfer", "fetch", "protocol", "receive", and "uploadpack" configuration parameters. TransportConnects two Git repositories together and copies objects between them. TransportAmazonS3Transport over the non-Git aware Amazon S3 protocol. TransportBundleStreamSingle shot fetch from a streamed Git bundle. TransportGitSshTransport through an SSH tunnel. TransportHttpTransport over HTTP and FTP protocols. TransportProtocolDescribes a way to connect to another Git repository. TransportSftpTransport over the non-Git aware SFTP (SSH based FTP) protocol. UploadPackImplements the server side of a fetch connection, transmitting objects. UploadPack.AdvertisedRequestValidatorValidator corresponding to
UploadPack.AnyRequestValidatorValidator corresponding to
UploadPack.ReachableCommitRequestValidatorValidator corresponding to
UploadPack.ReachableCommitTipRequestValidatorValidator corresponding to
UploadPack.TipRequestValidatorValidator corresponding to
URIishThis URI like construct used for referencing Git archives over the net, as well as locally stored archives. UrlConfigSupport for URL translations via git configs
UserAgentUser agent to be reported by this JGit client and server on the network. UsernamePasswordCredentialsProviderSimple
CredentialsProviderthat always uses the same information.
Enum Summary Enum Description HttpConfig.HttpRedirectModeConfig values for http.followRedirect. PackParser.SourceLocation data is being obtained from. PushCertificate.NonceStatusVerification result of the nonce returned during push. PushConfig.PushDefaultGit config values for
PushConfig.PushRecurseSubmodulesModeGit config values for
ReceiveCommand.ResultResult of the update command. ReceiveCommand.TypeType of operation requested. RefSpec.WildcardModeHow strict to be about wildcards. RemoteRefUpdate.StatusRepresent current status of a remote ref update. TagOptSpecification of annotated tag behavior during fetch. TransferConfig.FsckModeA git configuration value for how to handle a fsck failure of a particular kind. TransferConfig.ProtocolVersionA git configuration variable for which versions of the Git protocol to prefer. Transport.OperationType of operation a Transport is being opened for. TransportHttp.AcceptEncodingAccept-Encoding header in the HTTP request (https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). TransportProtocol.URIishFieldFields within a
URIishthat a transport uses.
UploadPack.RequestPolicyPolicy the server uses to validate client requests
Exception Summary Exception Description FtpChannel.FtpExceptionAn
Exceptionfor reporting SFTP errors.
PacketLineIn.InputOverLimitIOExceptionIOException thrown by read when the configured input limit is exceeded. RequestNotYetReadExceptionIndicates that a client request has not yet been read from the wire. ServiceMayNotContinueExceptionIndicates a transport service may not continue execution. UploadPackInternalServerErrorExceptionUploadPack has already reported an error to the client. WantNotValidExceptionIndicates client requested an object the server does not want to serve. WriteAbortedExceptionAn exception to be thrown when the write operation is aborted.