Class: Baykit::BayServer::Docker::Ajp::Command::CmdGetBodyChunk
- Inherits:
-
AjpCommand
- Object
- Protocol::Command
- AjpCommand
- Baykit::BayServer::Docker::Ajp::Command::CmdGetBodyChunk
- Defined in:
- lib/baykit/bayserver/docker/ajp/command/cmd_get_body_chunk.rb
Instance Attribute Summary collapse
-
#req_len ⇒ Object
Returns the value of attribute req_len.
Attributes inherited from AjpCommand
Instance Method Summary collapse
- #handle(handler) ⇒ Object
-
#initialize ⇒ CmdGetBodyChunk
constructor
A new instance of CmdGetBodyChunk.
- #pack(pkt) ⇒ Object
Methods inherited from AjpCommand
Constructor Details
#initialize ⇒ CmdGetBodyChunk
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_len ⇒ Object
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 |