public class ThriftOverHttpServiceImpl<ThriftRequest extends org.apache.thrift.TBase<?,?>,ThriftResponse extends org.apache.thrift.TBase<?,?>> extends Object implements ThriftOverHttpService<ThriftRequest,ThriftResponse>
Modifier and Type | Field and Description |
---|---|
static okhttp3.MediaType |
THRIFT_CONTENT_TYPE |
static String |
THRIFT_PROTOCOL_HEADER |
Constructor and Description |
---|
ThriftOverHttpServiceImpl(ThriftOverHttpServiceConfig config) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
makeRequest(ThriftRequest thriftRequest,
ThriftResponse thriftResponse) |
public static final okhttp3.MediaType THRIFT_CONTENT_TYPE
public static final String THRIFT_PROTOCOL_HEADER
public ThriftOverHttpServiceImpl(ThriftOverHttpServiceConfig config)
public void makeRequest(ThriftRequest thriftRequest, ThriftResponse thriftResponse) throws IOException
makeRequest
in interface ThriftService<ThriftRequest extends org.apache.thrift.TBase<?,?>,ThriftResponse extends org.apache.thrift.TBase<?,?>>
IOException
public void close()
close
in interface Closeable
close
in interface AutoCloseable