@Provider @Consumes(value={"application/x-protobuf","application/protobuf"}) @InterfaceAudience.Private public class ProtobufMessageBodyConsumer extends Object implements javax.ws.rs.ext.MessageBodyReader<ProtobufMessageHandler>
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
ProtobufMessageBodyConsumer() |
Modifier and Type | Method and Description |
---|---|
boolean |
isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
ProtobufMessageHandler |
readFrom(Class<ProtobufMessageHandler> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
InputStream inputStream) |
private static final org.slf4j.Logger LOG
public ProtobufMessageBodyConsumer()
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isReadable
in interface javax.ws.rs.ext.MessageBodyReader<ProtobufMessageHandler>
public ProtobufMessageHandler readFrom(Class<ProtobufMessageHandler> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream inputStream) throws IOException, javax.ws.rs.WebApplicationException
readFrom
in interface javax.ws.rs.ext.MessageBodyReader<ProtobufMessageHandler>
IOException
javax.ws.rs.WebApplicationException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.