io.airlift.http.client
Class JsonBodyGenerator<T>

java.lang.Object
  extended by io.airlift.http.client.JsonBodyGenerator<T>
All Implemented Interfaces:
BodyGenerator

@Beta
public class JsonBodyGenerator<T>
extends Object
implements BodyGenerator


Method Summary
static
<T> JsonBodyGenerator<T>
jsonBodyGenerator(JsonCodec<T> jsonCodec, T instance)
           
 void write(OutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.