Class: Thrift::SimpleJsonProtocol
Constant Summary
collapse
- READ_EXCEPTION =
ProtocolException.new(
ProtocolException::NOT_IMPLEMENTED,
'op not implemented'
)
Instance Attribute Summary
Attributes inherited from BaseProtocol
#trans
Instance Method Summary
collapse
#get_type_id_for_type_name, #get_type_name_for_type_id, #initialize, #is_json_numeric, #pop_context, #push_context, #read_binary, #read_bool, #read_byte, #read_double, #read_field_end, #read_i16, #read_i32, #read_i64, #read_json_array_end, #read_json_array_start, #read_json_base64, #read_json_double, #read_json_escape_char, #read_json_integer, #read_json_numeric_chars, #read_json_object_end, #read_json_object_start, #read_json_string, #read_json_syntax_char, #read_list_end, #read_map_end, #read_message_end, #read_set_end, #read_string, #read_struct_begin, #read_struct_end, read_syntax_char, #write_binary, #write_bool, #write_byte, #write_double, #write_field_stop, #write_i16, #write_i32, #write_i64, #write_json_array_end, #write_json_array_start, #write_json_base64, #write_json_char, #write_json_double, #write_json_escape_char, #write_json_integer, #write_json_object_end, #write_json_object_start, #write_json_string, #write_list_end, #write_set_end, #write_string, #write_struct_begin, #write_struct_end
#initialize, #native?, #read_binary, #read_bool, #read_byte, #read_double, #read_field_end, #read_i16, #read_i32, #read_i64, #read_list_end, #read_map_end, #read_message_end, #read_set_end, #read_string, #read_struct_begin, #read_struct_end, #read_type, #skip, #write_binary, #write_bool, #write_byte, #write_double, #write_field, #write_field_stop, #write_i16, #write_i32, #write_i64, #write_list_end, #write_set_end, #write_string, #write_struct_begin, #write_struct_end, #write_type
Instance Method Details
#read_field_begin ⇒ Object
787
788
789
|
# File 'lib/thrift/protocol/json_protocol.rb', line 787
def read_field_begin
raise READ_EXCEPTION
end
|
#read_list_begin ⇒ Object
809
810
811
|
# File 'lib/thrift/protocol/json_protocol.rb', line 809
def read_list_begin
raise READ_EXCEPTION
end
|
#read_map_begin ⇒ Object
797
798
799
|
# File 'lib/thrift/protocol/json_protocol.rb', line 797
def read_map_begin
raise READ_EXCEPTION
end
|
#read_message_begin ⇒ Object
775
776
777
|
# File 'lib/thrift/protocol/json_protocol.rb', line 775
def read_message_begin
raise READ_EXCEPTION
end
|
#read_set_begin ⇒ Object
817
818
819
|
# File 'lib/thrift/protocol/json_protocol.rb', line 817
def read_set_begin
raise READ_EXCEPTION
end
|
#write_field_begin(name, _type, _id) ⇒ Object
783
784
785
|
# File 'lib/thrift/protocol/json_protocol.rb', line 783
def write_field_begin(name, _type, _id)
write_json_string(name)
end
|
#write_field_end ⇒ Object
791
|
# File 'lib/thrift/protocol/json_protocol.rb', line 791
def write_field_end; end
|
#write_list_begin(_etype, _size) ⇒ Object
805
806
807
|
# File 'lib/thrift/protocol/json_protocol.rb', line 805
def write_list_begin(_etype, _size)
write_json_array_start
end
|
#write_map_begin(_ktype, _vtype, _size) ⇒ Object
793
794
795
|
# File 'lib/thrift/protocol/json_protocol.rb', line 793
def write_map_begin(_ktype, _vtype, _size)
write_json_object_start
end
|
#write_map_end ⇒ Object
801
802
803
|
# File 'lib/thrift/protocol/json_protocol.rb', line 801
def write_map_end
write_json_object_end
end
|
#write_message_begin(name, _type, _seqid) ⇒ Object
770
771
772
773
|
# File 'lib/thrift/protocol/json_protocol.rb', line 770
def write_message_begin(name, _type, _seqid)
write_json_object_start
write_json_string(name)
end
|
#write_message_end ⇒ Object
779
780
781
|
# File 'lib/thrift/protocol/json_protocol.rb', line 779
def write_message_end
write_json_object_end
end
|
#write_set_begin(_etype, _size) ⇒ Object
813
814
815
|
# File 'lib/thrift/protocol/json_protocol.rb', line 813
def write_set_begin(_etype, _size)
write_json_array_start
end
|