private HttpEntity paramsToEntity(RequestParams params,ResponseHandlerInterface responseHandler){
  HttpEntity entity=null;
  try {
    if (params != null) {
      entity=params.getEntity(responseHandler);
    }
  }
 catch (  Throwable t) {
    if (responseHandler != null)     responseHandler.sendFailureMessage(0,null,null,t);
 else     t.printStackTrace();
  }
  return entity;
}

private HttpEntity paramsToEntity ( RequestParams params , ResponseHandlerInterface responseHandler ) { HttpEntity entity = null ; try { if ( params != null ) { entity = params . getEntity ( responseHandler ) ; } } catch ( Throwable t ) { if ( responseHandler != null ) responseHandler . sendFailureMessage ( 0 , null , null , t ) ; else t . printStackTrace ( ) ; } return entity ; }
returns httpentity containing data from requestparams included with request declaration . allows also passing progress from upload via provided responsehandler
