public static StaticBodyGenerator createStaticBodyGenerator(byte[] body) { return new StaticBodyGenerator(body); }
public static StaticBodyGenerator createStaticBodyGenerator(String body, Charset charset) { return new StaticBodyGenerator(body.getBytes(charset)); }