Class ProtocolV0Parser


  • final class ProtocolV0Parser
    extends java.lang.Object
    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.
    • 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