return res;
}
else
{
releaseConn = true;
throw new ReceiveException(
HttpMessages.requestFailedWithStatus(httpMethod.getStatusLine().toString()),
endpoint, timeout);
}
}
catch (ReceiveException e)
{
releaseConn = true;
throw e;
}
catch (Exception e)
{
releaseConn = true;
throw new ReceiveException(endpoint, timeout, e);
}
finally
{
if (releaseConn)
{