@InterfaceAudience.Private @Produces(value="application/json") public final class GsonMessageBodyWriter<T> extends Object implements org.apache.hbase.thirdparty.javax.ws.rs.ext.MessageBodyWriter<T>
Gson
for JAX-RS.Modifier and Type | Field and Description |
---|---|
private org.apache.hbase.thirdparty.com.google.gson.Gson |
gson |
private static org.slf4j.Logger |
logger |
Constructor and Description |
---|
GsonMessageBodyWriter(org.apache.hbase.thirdparty.com.google.gson.Gson gson) |
Modifier and Type | Method and Description |
---|---|
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
org.apache.hbase.thirdparty.javax.ws.rs.core.MediaType mediaType) |
private static Charset |
requestedCharset(org.apache.hbase.thirdparty.javax.ws.rs.core.MediaType mediaType) |
void |
writeTo(T t,
Class<?> type,
Type genericType,
Annotation[] annotations,
org.apache.hbase.thirdparty.javax.ws.rs.core.MediaType mediaType,
org.apache.hbase.thirdparty.javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
private static final org.slf4j.Logger logger
private final org.apache.hbase.thirdparty.com.google.gson.Gson gson
@Inject public GsonMessageBodyWriter(org.apache.hbase.thirdparty.com.google.gson.Gson gson)
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, org.apache.hbase.thirdparty.javax.ws.rs.core.MediaType mediaType)
isWriteable
in interface org.apache.hbase.thirdparty.javax.ws.rs.ext.MessageBodyWriter<T>
public void writeTo(T t, Class<?> type, Type genericType, Annotation[] annotations, org.apache.hbase.thirdparty.javax.ws.rs.core.MediaType mediaType, org.apache.hbase.thirdparty.javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException, org.apache.hbase.thirdparty.javax.ws.rs.WebApplicationException
writeTo
in interface org.apache.hbase.thirdparty.javax.ws.rs.ext.MessageBodyWriter<T>
IOException
org.apache.hbase.thirdparty.javax.ws.rs.WebApplicationException
private static Charset requestedCharset(org.apache.hbase.thirdparty.javax.ws.rs.core.MediaType mediaType)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.