private boolean hasMessageBody() throws IOException {
    int statusCode = getStatusCode();
    if (getRequest().getRequestMethod().equals(HttpMethods.HEAD)
        || statusCode / 100 == 1
        || statusCode == HttpStatusCodes.STATUS_CODE_NO_CONTENT
        || statusCode == HttpStatusCodes.STATUS_CODE_NOT_MODIFIED) {
      ignore();
      return false;
    }
    return true;
  }
private boolean hasMessageBody ( ) throws IOException { int statusCode = getStatusCode ( ) ; if ( getRequest ( ) . getRequestMethod ( ) . equals ( HttpMethods . HEAD ) || statusCode / 100 == 1 || statusCode == HttpStatusCodes . STATUS_CODE_NO_CONTENT || statusCode == HttpStatusCodes . STATUS_CODE_NOT_MODIFIED ) { ignore ( ) ; return false ; } return true ; }
Returns whether this response contains a message body as specified in {@href
http://tools.ietf.org/html/rfc2616#section-4.3}, calling {@link #ignore()} if {@code false}.