Class: RIMS::Protocol::LogoutDecoder
- Inherits:
-
Decoder
- Object
- Decoder
- RIMS::Protocol::LogoutDecoder
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
-
#append(tag, mbox_name, *opt_args, msg_text) ⇒ Object
-
#auth? ⇒ Boolean
-
#authenticate(tag, client_response_input_gets, server_challenge_output_write, auth_type, inline_client_response_data_base64 = nil) ⇒ Object
-
#capability(tag) ⇒ Object
-
#check(tag) ⇒ Object
-
#cleanup ⇒ Object
-
#close(tag) ⇒ Object
-
#copy(tag, msg_set, mbox_name, uid: false) ⇒ Object
-
#create(tag, mbox_name) ⇒ Object
-
#delete(tag, mbox_name) ⇒ Object
-
#examine(tag, mbox_name) ⇒ Object
-
#expunge(tag) ⇒ Object
-
#fetch(tag, msg_set, data_item_group, uid: false) ⇒ Object
-
#idle(tag, client_input_gets, server_output_write, connection_timer) ⇒ Object
-
#initialize(parent_decoder, logger) ⇒ LogoutDecoder
constructor
A new instance of LogoutDecoder.
-
#list(tag, ref_name, mbox_name) ⇒ Object
-
#login(tag, username, password) ⇒ Object
-
#logout(tag) ⇒ Object
-
#lsub(tag, ref_name, mbox_name) ⇒ Object
-
#noop(tag) ⇒ Object
-
#rename(tag, src_name, dst_name) ⇒ Object
-
#search(tag, *cond_args, uid: false) ⇒ Object
-
#select(tag, mbox_name) ⇒ Object
-
#selected? ⇒ Boolean
-
#status(tag, mbox_name, data_item_group) ⇒ Object
-
#store(tag, msg_set, data_item_name, data_item_value, uid: false) ⇒ Object
-
#subscribe(tag, mbox_name) ⇒ Object
-
#unsubscribe(tag, mbox_name) ⇒ Object
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
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
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
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
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
658
659
660
|
# File 'lib/rims/protocol/decoder.rb', line 658
def check(tag)
raise ProtocolError, 'invalid command in logout state.'
end
|
#cleanup ⇒ Object
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
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
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
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
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
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
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
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
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
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
598
599
600
|
# File 'lib/rims/protocol/decoder.rb', line 598
def login(tag, username, password)
raise ProtocolError, 'invalid command in logout state.'
end
|
#logout(tag) ⇒ Object
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
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
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
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
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
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
563
564
565
|
# File 'lib/rims/protocol/decoder.rb', line 563
def selected?
false
end
|
#status(tag, mbox_name, data_item_group) ⇒ Object
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
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
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
633
634
635
|
# File 'lib/rims/protocol/decoder.rb', line 633
def unsubscribe(tag, mbox_name)
raise ProtocolError, 'invalid command in logout state.'
end
|