Package org.eclipse.jgit.transport
Class ProtocolV0Parser
java.lang.Object
org.eclipse.jgit.transport.ProtocolV0Parser
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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) FetchV0Request
recvWants
(PacketLineIn pckIn) Parse an incoming protocol v1 upload request arguments from the wire.
-
Field Details
-
transferConfig
-
-
Constructor Details
-
ProtocolV0Parser
ProtocolV0Parser(TransferConfig transferConfig)
-
-
Method Details
-
recvWants
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
- incoming lines. This method will read until an END line.- Returns:
- a FetchV0Request with the data received in the wire.
- Throws:
PackProtocolException
IOException
-