final class ProtocolV2Parser
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private TransferConfig |
transferConfig |
Constructor and Description |
---|
ProtocolV2Parser(TransferConfig transferConfig) |
Modifier and Type | Method and Description |
---|---|
private static java.lang.String |
consumeCapabilities(PacketLineIn pckIn,
java.util.function.Consumer<java.lang.String> serverOptionConsumer,
java.util.function.Consumer<java.lang.String> agentConsumer) |
(package private) FetchV2Request |
parseFetchRequest(PacketLineIn pckIn)
Parse the incoming fetch request arguments from the wire.
|
(package private) LsRefsV2Request |
parseLsRefsRequest(PacketLineIn pckIn)
Parse the incoming ls-refs request arguments from the wire.
|
private final TransferConfig transferConfig
ProtocolV2Parser(TransferConfig transferConfig)
private static java.lang.String consumeCapabilities(PacketLineIn pckIn, java.util.function.Consumer<java.lang.String> serverOptionConsumer, java.util.function.Consumer<java.lang.String> agentConsumer) throws java.io.IOException
java.io.IOException
FetchV2Request parseFetchRequest(PacketLineIn pckIn) throws PackProtocolException, java.io.IOException
pckIn
- incoming linesPackProtocolException
- incompatible options, wrong type of arguments or other issues
where the request breaks the protocol.java.io.IOException
- an IO error prevented reading the incoming message.LsRefsV2Request parseLsRefsRequest(PacketLineIn pckIn) throws PackProtocolException, java.io.IOException
pckIn
- incoming lines. This method will read until an END line.PackProtocolException
- for inconsistencies in the protocol (e.g. unexpected lines)java.io.IOException
- reporting problems reading the incoming messages from the
wire