Class: Baykit::BayServer::Docker::Http::H1::H1InboundHandler::InboundProtocolHandlerFactory

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

Instance Method Summary collapse

Instance Method Details

#create_protocol_handler(pkt_store) ⇒ Object



36
37
38
39
40
41
42
43
44
45
46
# File 'lib/baykit/bayserver/docker/http/h1/h1_inbound_handler.rb', line 36

def create_protocol_handler(pkt_store)
  ib_handler = H1InboundHandler.new
  cmd_unpacker = H1CommandUnPacker.new(ib_handler, true)
  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