Class ProtobufMessageBodyProducer

java.lang.Object
org.apache.hadoop.hbase.rest.provider.producer.ProtobufMessageBodyProducer
All Implemented Interfaces:
org.apache.hbase.thirdparty.javax.ws.rs.ext.MessageBodyWriter<ProtobufMessageHandler>

@Provider @Produces({"application/x-protobuf","application/protobuf"}) @Private public class ProtobufMessageBodyProducer extends Object implements org.apache.hbase.thirdparty.javax.ws.rs.ext.MessageBodyWriter<ProtobufMessageHandler>
An adapter between Jersey and ProtobufMessageHandler implementors. Hooks up protobuf output producing methods to the Jersey content handling framework. Jersey will first call getSize() to learn the number of bytes that will be sent, then writeTo to perform the actual I/O.