Class: Baykit::BayServer::Docker::Fcgi::FcgInboundHandler::InboundProtocolHandlerFactory

Inherits:
Object
  • Object
show all
Includes:
Protocol, Protocol::ProtocolHandlerFactory
Defined in:
lib/baykit/bayserver/docker/fcgi/fcg_inbound_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/fcgi/fcg_inbound_handler.rb', line 20

def create_protocol_handler(pkt_store)
  ib_handler = FcgInboundHandler.new
  cmd_unpacker = FcgCommandUnPacker.new(ib_handler)
  pkt_unpacker = FcgPacketUnPacker.new(pkt_store, cmd_unpacker)
  pkt_packer = PacketPacker.new()
  cmd_packer = CommandPacker.new(pkt_packer, pkt_store)

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