public class ThriftHttpHandler
extends org.glassfish.grizzly.http.server.HttpHandler
You can set the specific response size by constructor for optimal performance.
Usages:
final user-generated.thrift.Processor tprocessor = new user-generated.thrift.Processor(new user-generated.thrift.Handler);
final HttpServer server = new HttpServer();
final NetworkListener listener = new NetworkListener("yourServerName", yourHost, yourPort);
server.addListener(listener);
server.getServerConfiguration().addHttpHandler(new ThriftHttpHandler(tprocessor), "/yourUriPath");
server.start();
// release
//...
| Constructor and Description |
|---|
ThriftHttpHandler(org.apache.thrift.TProcessor processor) |
ThriftHttpHandler(org.apache.thrift.TProcessor processor,
int responseSize) |
ThriftHttpHandler(org.apache.thrift.TProcessor processor,
org.apache.thrift.protocol.TProtocolFactory protocolFactory) |
ThriftHttpHandler(org.apache.thrift.TProcessor processor,
org.apache.thrift.protocol.TProtocolFactory protocolFactory,
int responseSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
service(org.glassfish.grizzly.http.server.Request request,
org.glassfish.grizzly.http.server.Response response) |
destroy, getErrorPageGenerator, getName, getRequestExecutorProvider, getRequestURIEncoding, getSessionCookieName, getSessionManager, isAllowCustomStatusMessage, isAllowEncodedSlash, sendAcknowledgment, setAllowCustomStatusMessage, setAllowEncodedSlash, setDecodeUrl, setDispatcherHelper, setRequestURIEncoding, setRequestURIEncoding, start, updatePathspublic ThriftHttpHandler(org.apache.thrift.TProcessor processor)
public ThriftHttpHandler(org.apache.thrift.TProcessor processor,
org.apache.thrift.protocol.TProtocolFactory protocolFactory)
public ThriftHttpHandler(org.apache.thrift.TProcessor processor,
int responseSize)
public ThriftHttpHandler(org.apache.thrift.TProcessor processor,
org.apache.thrift.protocol.TProtocolFactory protocolFactory,
int responseSize)
Copyright © 2017-2019 Oracle Corporation. All Rights Reserved.