Top Description Fields Constructors Methods
org.eclipse.jgit.transport

pack-priv final Class ProtocolV0Parser

extends Object
Class Inheritance
Static Imports
org.eclipse.jgit.transport.GitProtocolConstants.OPTION_FILTER, .GitProtocolConstants.PACKET_DEEPEN, .GitProtocolConstants.PACKET_DEEPEN_NOT, .GitProtocolConstants.PACKET_DEEPEN_SINCE, .GitProtocolConstants.PACKET_SHALLOW, .GitProtocolConstants.PACKET_WANT

Parser for git protocol versions 0 and 1. It reads the lines coming through the PacketLineIn and builds a FetchV0Request object. It requires a transferConfig object to know if the server supports filters.

Field Summary

Modifier and TypeField and Description
private final TransferConfig

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv FetchV0Request

Returns:

a FetchV0Request with the data received in the wire.
recvWants
(PacketLineIn
incoming lines. This method will read until an END line.
pckIn
)

Parse an incoming protocol v1 upload request arguments from the wire.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

transferConfigback to summary
private final TransferConfig transferConfig

Constructor Detail

ProtocolV0Parserback to summary
pack-priv ProtocolV0Parser(TransferConfig transferConfig)

Method Detail

recvWantsback to summary
pack-priv FetchV0Request recvWants(PacketLineIn pckIn) throws PackProtocolException, IOException

Parse an incoming protocol v1 upload request arguments from the wire. The incoming PacketLineIn is consumed until an END line, but the caller is responsible for closing it (if needed).

Parameters
pckIn:PacketLineIn

incoming lines. This method will read until an END line.

Returns:FetchV0Request

a FetchV0Request with the data received in the wire.

Exceptions
PackProtocolException:
if a protocol occurred
IOException:
if an IO error occurred