Class: RIMS::Protocol::LogoutDecoder

Inherits:
Decoder
  • Object
show all
Defined in:
lib/rims/protocol/decoder.rb

Constant Summary

Constants inherited from Decoder

Decoder::BulkResponse, Decoder::Engine, Decoder::IMAP_CMDs, Decoder::UID_CMDs

Instance Attribute Summary

Attributes inherited from Decoder

#next_decoder

Instance Method Summary collapse

Methods inherited from Decoder

decode_delivery_target_mailbox, encode_delivery_target_mailbox, imap_command, imap_command_normalize, kw_params, logging_error_chain, make_engine_and_recovery_if_needed, new_decoder, #ok_greeting, repl, should_be_imap_command, to_imap_command

Constructor Details

#initialize(parent_decoder, logger) ⇒ LogoutDecoder

Returns a new instance of LogoutDecoder.



553
554
555
556
557
# File 'lib/rims/protocol/decoder.rb', line 553

def initialize(parent_decoder, logger)
  super(nil, logger)
  @parent_decoder = parent_decoder
  @logger.debug("RIMS::Protocol::LogoutDecoder#initialize at #{self}") if @logger.debug?
end

Instance Method Details

#append(tag, mbox_name, *opt_args, msg_text) ⇒ Object

Raises:



653
654
655
# File 'lib/rims/protocol/decoder.rb', line 653

def append(tag, mbox_name, *opt_args, msg_text)
  raise ProtocolError, 'invalid command in logout state.'
end

#auth?Boolean

Returns:

  • (Boolean)


559
560
561
# File 'lib/rims/protocol/decoder.rb', line 559

def auth?
  false
end

#authenticate(tag, client_response_input_gets, server_challenge_output_write, auth_type, inline_client_response_data_base64 = nil) ⇒ Object

Raises:



592
593
594
595
# File 'lib/rims/protocol/decoder.rb', line 592

def authenticate(tag, client_response_input_gets, server_challenge_output_write,
                 auth_type, inline_client_response_data_base64=nil)
  raise ProtocolError, 'invalid command in logout state.'
end

#capability(tag) ⇒ Object

Raises:



577
578
579
# File 'lib/rims/protocol/decoder.rb', line 577

def capability(tag)
  raise ProtocolError, 'invalid command in logout state.'
end

#check(tag) ⇒ Object

Raises:



658
659
660
# File 'lib/rims/protocol/decoder.rb', line 658

def check(tag)
  raise ProtocolError, 'invalid command in logout state.'
end

#cleanupObject



567
568
569
570
571
572
573
574
575
# File 'lib/rims/protocol/decoder.rb', line 567

def cleanup
  @logger.debug("RIMS::Protocol::LogoutDecoder#cleanup at #{self}") if @logger.debug?
  unless (@parent_decoder.nil?) then
    @parent_decoder.cleanup
    @parent_decoder = nil
  end

  nil
end

#close(tag) ⇒ Object

Raises:



663
664
665
# File 'lib/rims/protocol/decoder.rb', line 663

def close(tag)
  raise ProtocolError, 'invalid command in logout state.'
end

#copy(tag, msg_set, mbox_name, uid: false) ⇒ Object

Raises:



688
689
690
# File 'lib/rims/protocol/decoder.rb', line 688

def copy(tag, msg_set, mbox_name, uid: false)
  raise ProtocolError, 'invalid command in logout state.'
end

#create(tag, mbox_name) ⇒ Object

Raises:



613
614
615
# File 'lib/rims/protocol/decoder.rb', line 613

def create(tag, mbox_name)
  raise ProtocolError, 'invalid command in logout state.'
end

#delete(tag, mbox_name) ⇒ Object

Raises:



618
619
620
# File 'lib/rims/protocol/decoder.rb', line 618

def delete(tag, mbox_name)
  raise ProtocolError, 'invalid command in logout state.'
end

#examine(tag, mbox_name) ⇒ Object

Raises:



608
609
610
# File 'lib/rims/protocol/decoder.rb', line 608

def examine(tag, mbox_name)
  raise ProtocolError, 'invalid command in logout state.'
end

#expunge(tag) ⇒ Object

Raises:



668
669
670
# File 'lib/rims/protocol/decoder.rb', line 668

def expunge(tag)
  raise ProtocolError, 'invalid command in logout state.'
end

#fetch(tag, msg_set, data_item_group, uid: false) ⇒ Object

Raises:



678
679
680
# File 'lib/rims/protocol/decoder.rb', line 678

def fetch(tag, msg_set, data_item_group, uid: false)
  raise ProtocolError, 'invalid command in logout state.'
end

#idle(tag, client_input_gets, server_output_write, connection_timer) ⇒ Object

Raises:



693
694
695
# File 'lib/rims/protocol/decoder.rb', line 693

def idle(tag, client_input_gets, server_output_write, connection_timer)
  raise ProtocolError, 'invalid command in logout state.'
end

#list(tag, ref_name, mbox_name) ⇒ Object

Raises:



638
639
640
# File 'lib/rims/protocol/decoder.rb', line 638

def list(tag, ref_name, mbox_name)
  raise ProtocolError, 'invalid command in logout state.'
end

#login(tag, username, password) ⇒ Object

Raises:



598
599
600
# File 'lib/rims/protocol/decoder.rb', line 598

def (tag, username, password)
  raise ProtocolError, 'invalid command in logout state.'
end

#logout(tag) ⇒ Object

Raises:



587
588
589
# File 'lib/rims/protocol/decoder.rb', line 587

def logout(tag)
  raise ProtocolError, 'invalid command in logout state.'
end

#lsub(tag, ref_name, mbox_name) ⇒ Object

Raises:



643
644
645
# File 'lib/rims/protocol/decoder.rb', line 643

def lsub(tag, ref_name, mbox_name)
  raise ProtocolError, 'invalid command in logout state.'
end

#noop(tag) ⇒ Object

Raises:



582
583
584
# File 'lib/rims/protocol/decoder.rb', line 582

def noop(tag)
  raise ProtocolError, 'invalid command in logout state.'
end

#rename(tag, src_name, dst_name) ⇒ Object

Raises:



623
624
625
# File 'lib/rims/protocol/decoder.rb', line 623

def rename(tag, src_name, dst_name)
  raise ProtocolError, 'invalid command in logout state.'
end

#search(tag, *cond_args, uid: false) ⇒ Object

Raises:



673
674
675
# File 'lib/rims/protocol/decoder.rb', line 673

def search(tag, *cond_args, uid: false)
  raise ProtocolError, 'invalid command in logout state.'
end

#select(tag, mbox_name) ⇒ Object

Raises:



603
604
605
# File 'lib/rims/protocol/decoder.rb', line 603

def select(tag, mbox_name)
  raise ProtocolError, 'invalid command in logout state.'
end

#selected?Boolean

Returns:

  • (Boolean)


563
564
565
# File 'lib/rims/protocol/decoder.rb', line 563

def selected?
  false
end

#status(tag, mbox_name, data_item_group) ⇒ Object

Raises:



648
649
650
# File 'lib/rims/protocol/decoder.rb', line 648

def status(tag, mbox_name, data_item_group)
  raise ProtocolError, 'invalid command in logout state.'
end

#store(tag, msg_set, data_item_name, data_item_value, uid: false) ⇒ Object

Raises:



683
684
685
# File 'lib/rims/protocol/decoder.rb', line 683

def store(tag, msg_set, data_item_name, data_item_value, uid: false)
  raise ProtocolError, 'invalid command in logout state.'
end

#subscribe(tag, mbox_name) ⇒ Object

Raises:



628
629
630
# File 'lib/rims/protocol/decoder.rb', line 628

def subscribe(tag, mbox_name)
  raise ProtocolError, 'invalid command in logout state.'
end

#unsubscribe(tag, mbox_name) ⇒ Object

Raises:



633
634
635
# File 'lib/rims/protocol/decoder.rb', line 633

def unsubscribe(tag, mbox_name)
  raise ProtocolError, 'invalid command in logout state.'
end