Package org.apache.thrift.transport
Class TTransportFactory
java.lang.Object
org.apache.thrift.transport.TTransportFactory
- Direct Known Subclasses:
TFastFramedTransport.Factory,TFramedTransport.Factory,THttpClient.Factory,TSaslServerTransport.Factory,TZlibTransport.Factory
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)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetTransport(TTransport trans) Return a wrapped instance of the base Transport.
-
Constructor Details
-
TTransportFactory
public TTransportFactory()
-
-
Method Details
-
getTransport
Return a wrapped instance of the base Transport.- Parameters:
trans- The base transport- Returns:
- Wrapped Transport
- Throws:
TTransportException
-