Class: Thrift::HeaderTransportFactory
- Inherits:
-
BaseTransportFactory
- Object
- BaseTransportFactory
- Thrift::HeaderTransportFactory
- Defined in:
- lib/thrift/transport/header_transport.rb
Overview
Factory for creating HeaderTransport instances
Instance Method Summary collapse
- #get_transport(transport) ⇒ Object
-
#initialize(allowed_client_types = nil, default_protocol = HeaderSubprotocolID::BINARY) ⇒ HeaderTransportFactory
constructor
A new instance of HeaderTransportFactory.
- #to_s ⇒ Object
Constructor Details
#initialize(allowed_client_types = nil, default_protocol = HeaderSubprotocolID::BINARY) ⇒ HeaderTransportFactory
Returns a new instance of HeaderTransportFactory.
549 550 551 552 |
# File 'lib/thrift/transport/header_transport.rb', line 549 def initialize(allowed_client_types = nil, default_protocol = HeaderSubprotocolID::BINARY) @allowed_client_types = allowed_client_types @default_protocol = default_protocol end |
Instance Method Details
#get_transport(transport) ⇒ Object
554 555 556 |
# File 'lib/thrift/transport/header_transport.rb', line 554 def get_transport(transport) HeaderTransport.new(transport, @allowed_client_types, @default_protocol) end |
#to_s ⇒ Object
558 559 560 |
# File 'lib/thrift/transport/header_transport.rb', line 558 def to_s "header" end |