Class: Baykit::BayServer::Docker::Http::H2::H2InboundHandler::InboundProtocolHandlerFactory

Inherits:
Object
  • Object
show all
Includes:
Protocol, Protocol::ProtocolHandlerFactory
Defined in:
lib/baykit/bayserver/docker/http/h2/h2_inbound_handler.rb

Instance Method Summary collapse

Instance Method Details

#create_protocol_handler(pkt_store) ⇒ Object



29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/baykit/bayserver/docker/http/h2/h2_inbound_handler.rb', line 29

def create_protocol_handler(pkt_store)

  ib_handler = H2InboundHandler.new
  cmd_unpacker = H2CommandUnPacker.new(ib_handler)
  pkt_unpacker = H2PacketUnPacker.new(cmd_unpacker, pkt_store, true)
  pkt_packer = PacketPacker.new()
  cmd_packer = CommandPacker.new(pkt_packer, pkt_store)

  proto_handler = H2ProtocolHandler.new(ib_handler, pkt_unpacker, pkt_packer, cmd_unpacker, cmd_packer, true)
  ib_handler.init(proto_handler)
  return proto_handler
end