}
@Override
public void setEntity(ReqEntity entity) {
if(entity instanceof ReqEntityByteArray) {
ReqEntityByteArray e = (ReqEntityByteArray) entity;
// content-type charset
jp_content_type_charset.setContentTypeCharset(e.getContentType());
// Set body:
body = e.getBody();
jta.setText(HexDump.getHexDataDumpAsString(e.getBody()));
}
}