com.evernote.thrift.transport
Class TTransportFactory
java.lang.Object
com.evernote.thrift.transport.TTransportFactory
public class TTransportFactory
- extends Object
Factory class used to create wrapped instance of Transports.
This is used primarily in servers, which get Transports from
a ServerTransport and then may want to mutate them (i.e. create
a BufferedTransport from the underlying base transport)
TTransportFactory
public TTransportFactory()
getTransport
public TTransport getTransport(TTransport trans)
- Return a wrapped instance of the base Transport.
- Parameters:
trans - The base transport
- Returns:
- Wrapped Transport
Copyright © 2013. All Rights Reserved.