io.airlift.http.client
Class JsonBodyGenerator<T>
java.lang.Object
io.airlift.http.client.JsonBodyGenerator<T>
- All Implemented Interfaces:
- BodyGenerator
@Beta
public class JsonBodyGenerator<T>
- extends Object
- implements BodyGenerator
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
jsonBodyGenerator
public static <T> JsonBodyGenerator<T> jsonBodyGenerator(JsonCodec<T> jsonCodec,
T instance)
write
public void write(OutputStream out)
throws Exception
- Specified by:
write in interface BodyGenerator
- Throws:
Exception
Copyright © 2010-2012 Airlift. All Rights Reserved.