Package org.eclipse.jgit.transport
Class ProtocolV0Parser
- java.lang.Object
-
- org.eclipse.jgit.transport.ProtocolV0Parser
-
final class ProtocolV0Parser extends java.lang.Object
Parser for git protocol versions 0 and 1. It reads the lines coming through thePacketLineIn
and builds aFetchV0Request
object. It requires a transferConfig object to know if the server supports filters.
-
-
Field Summary
Fields Modifier and Type Field Description private TransferConfig
transferConfig
-
Constructor Summary
Constructors Constructor Description ProtocolV0Parser(TransferConfig transferConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) FetchV0Request
recvWants(PacketLineIn pckIn)
Parse an incoming protocol v1 upload request arguments from the wire.
-
-
-
Field Detail
-
transferConfig
private final TransferConfig transferConfig
-
-
Constructor Detail
-
ProtocolV0Parser
ProtocolV0Parser(TransferConfig transferConfig)
-
-
Method Detail
-
recvWants
FetchV0Request recvWants(PacketLineIn pckIn) throws PackProtocolException, java.io.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
- incoming lines. This method will read until an END line.- Returns:
- a FetchV0Request with the data received in the wire.
- Throws:
PackProtocolException
java.io.IOException
-
-