Class: Baykit::BayServer::Docker::Ajp::Command::CmdGetBodyChunk

Inherits:
AjpCommand
  • Object
show all
Defined in:
lib/baykit/bayserver/docker/ajp/command/cmd_get_body_chunk.rb

Instance Attribute Summary collapse

Attributes inherited from AjpCommand

#to_server

Instance Method Summary collapse

Methods inherited from AjpCommand

#pack_header, #unpack

Constructor Details

#initializeCmdGetBodyChunk

Returns a new instance of CmdGetBodyChunk.



20
21
22
# File 'lib/baykit/bayserver/docker/ajp/command/cmd_get_body_chunk.rb', line 20

def initialize()
  super AjpType::GET_BODY_CHUNK, false
end

Instance Attribute Details

#req_lenObject

Returns the value of attribute req_len.



18
19
20
# File 'lib/baykit/bayserver/docker/ajp/command/cmd_get_body_chunk.rb', line 18

def req_len
  @req_len
end

Instance Method Details

#handle(handler) ⇒ Object



33
34
35
# File 'lib/baykit/bayserver/docker/ajp/command/cmd_get_body_chunk.rb', line 33

def handle(handler)
  return handler.handle_get_body_chunk(self)
end

#pack(pkt) ⇒ Object



24
25
26
27
28
29
30
31
# File 'lib/baykit/bayserver/docker/ajp/command/cmd_get_body_chunk.rb', line 24

def pack(pkt)
  acc = pkt.new_ajp_data_accessor()
  acc.put_byte(@type)
  acc.put_short(@req_len)

  # must be called from last line
  super
end