code: private void checkExecuteConditions(HttpState state, HttpConnection conn)
      throws HttpException {
  
          if (state == null) {
              throw new IllegalArgumentException("HttpState parameter may not be null");
          }
          if (conn == null) {
              throw new IllegalArgumentException("HttpConnection parameter may not be null");
          }
          if (this.aborted) {
              throw new IllegalStateException("Method has been aborted");
          }
          if (!validate()) {
              throw new ProtocolException("HttpMethodBase object not valid");
          }
      }
docs: Tests if the this method is ready to be executed.
  
  @param state the {@link HttpState state} information associated with this method
  @param conn the {@link HttpConnection connection} to be used
  @throws HttpException If the method is in invalid state.