Class: Baykit::BayServer::Docker::Fcgi::FcgWarpHandler::WarpProtocolHandlerFactory

Inherits:
Object
  • Object
show all
Includes:
Protocol, Protocol::ProtocolHandlerFactory
Defined in:
lib/baykit/bayserver/docker/fcgi/fcg_warp_handler.rb

Instance Method Summary collapse

Instance Method Details

#create_protocol_handler(pkt_store) ⇒ Object



28
29
30
31
32
33
34
35
36
37
38
# File 'lib/baykit/bayserver/docker/fcgi/fcg_warp_handler.rb', line 28

def create_protocol_handler(pkt_store)
  warp_handler =  FcgWarpHandler.new
  cmd_unpacker = FcgCommandUnPacker.new(warp_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(warp_handler, pkt_unpacker, pkt_packer, cmd_unpacker, cmd_packer, false)
  warp_handler.init(proto_handler)
  return proto_handler
end