Class: Baykit::BayServer::Docker::Http::H1::H1WarpHandler::WarpProtocolHandlerFactory

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

Instance Method Summary collapse

Instance Method Details

#create_protocol_handler(pkt_store) ⇒ Object



20
21
22
23
24
25
26
27
28
29
30
# File 'lib/baykit/bayserver/docker/http/h1/h1_warp_handler.rb', line 20

def create_protocol_handler(pkt_store)
  ib_handler = H1WarpHandler.new
  cmd_unpacker = H1CommandUnPacker.new(ib_handler, false)
  pkt_unpacker = H1PacketUnPacker.new(cmd_unpacker, pkt_store)
  pkt_packer = PacketPacker.new
  cmd_packer = CommandPacker.new(pkt_packer, pkt_store)

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