@Provider @InterfaceAudience.Private public class ProtobufMessageBodyConsumer extends Object implements javax.ws.rs.ext.MessageBodyReader<ProtobufMessageHandler>
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) |
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-2016 The Apache Software Foundation. All Rights Reserved.