http - Java: Get body out of HttpContext? -
the problem:
all have httpcontext context interface com.sun.jersey.api.core.httpcontext.
what need:
string entitybodymd5 = digestutils.md5hex(requestbody);
i utilize dropwizard , have provider class implementing injectableprovider interface, i'm not able md5hex value. ideas?
perhaps possible httpservletrequest out of httpcontex, can inputstream. if have thought ... allow me know :-)
as there isn't much info context, check code com.sun.jersey.api.core.httpcontext
. , looks should give request body:
string requestbody = context.getrequest().getentity(string.class);
java http jersey dropwizard
No comments:
Post a Comment