public class TransactionJsonSerializer
extends java.lang.Object
Constructor and Description |
---|
TransactionJsonSerializer() |
Modifier and Type | Method and Description |
---|---|
long |
getSize(Transaction t,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
MediaType mediaType) |
boolean |
isReadable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
MediaType mediaType) |
boolean |
isWriteable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
MediaType mediaType) |
Transaction |
readFrom(java.lang.Class<Transaction> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
MediaType mediaType,
<any> httpHeaders,
java.io.InputStream entityStream) |
static JSONObject |
serialize(Transaction transaction) |
void |
writeTo(Transaction t,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
MediaType mediaType,
<any> httpHeaders,
java.io.OutputStream entityStream) |
public boolean isReadable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType)
public Transaction readFrom(java.lang.Class<Transaction> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType, <any> httpHeaders, java.io.InputStream entityStream) throws java.io.IOException, WebApplicationException
java.io.IOException
WebApplicationException
public boolean isWriteable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType)
public void writeTo(Transaction t, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType, <any> httpHeaders, java.io.OutputStream entityStream) throws java.io.IOException, WebApplicationException
java.io.IOException
WebApplicationException
public static JSONObject serialize(Transaction transaction)
public long getSize(Transaction t, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType)
Copyright © 2017. All Rights Reserved.