public class AvroHttpSerializer extends Object
| Modifier and Type | Field and Description | 
|---|---|
static String | 
JSON_CHARSET  | 
| Constructor and Description | 
|---|
AvroHttpSerializer()  | 
| Modifier and Type | Method and Description | 
|---|---|
AvroHttpRequest | 
fromBytes(byte[] theBytes)
Convert bytes to AvroHttpRequest. 
 | 
AvroHttpRequest | 
fromString(String jasonStr)
Convert JSON String to AvroHttpRequest. 
 | 
AvroHttpRequest | 
toAvro(ParsedHttpRequest parsedRequest)
Convert from HttpServletRequest to AvroHttpRequest. 
 | 
byte[] | 
toBytes(AvroHttpRequest request)
Convert AvroHttpRequest to bytes. 
 | 
String | 
toString(AvroHttpRequest request)
Convert AvroHttpRequest to JSON String. 
 | 
public static final String JSON_CHARSET
public AvroHttpSerializer()
public AvroHttpRequest toAvro(ParsedHttpRequest parsedRequest) throws javax.servlet.ServletException, IOException
javax.servlet.ServletExceptionIOExceptionpublic String toString(AvroHttpRequest request)
public byte[] toBytes(AvroHttpRequest request)
public AvroHttpRequest fromString(String jasonStr)
public AvroHttpRequest fromBytes(byte[] theBytes)
Copyright © 2015 The Apache Software Foundation. All rights reserved.