Fluent method for adding AccessLevel query and form parameters to a get() or post() call.

@param name the name of the field/attribute to add
@param level the value of the field/attribute to add
@return this GitLabAPiForm instance
429121
public GitLabApiForm withParam(String name, AccessLevel level) throws IllegalArgumentException {
        return (withParam(name, level, false));
    }
1133137
@Route(method= HttpMethod.POST, uri="/")
    public Result post(@FormParameter("id") String id, @FormParameter("name") String name) {
        // The values of id and names are computed the request attributes.
        return ok(id + " - " + name);
    }
175228
public Query appendIf(final String name, final GitlabAccessLevel value) throws UnsupportedEncodingException {
        if (value != null) {
            append(name, Integer.toString(value.accessValue));
        }
        return this;
    }
1311305
public GitlabProjectMember addProjectMember(Integer projectId, Integer userId, GitlabAccessLevel accessLevel) throws IOException {
        Query query = new Query()
                .appendIf("id", projectId)
                .appendIf("user_id", userId)
                .appendIf("access_level", accessLevel);
        String tailUrl = GitlabProject.URL + "/" + projectId + GitlabProjectMember.URL + query.toString();
        return dispatch().to(tailUrl, GitlabProjectMember.class);
    }
249627
public HttpRequest addQueryParameter(String name, String value) {
    queryParameters.put(
        Objects.requireNonNull(name, "Name must be set"),
        Objects.requireNonNull(value, "Value must be set"));
    return this;
  }
1361927
public String getQuery(String name)
    {
        QueryWrapper wrapper = namedNativeQueries != null && name != null ? namedNativeQueries.get(name) : null;
        return wrapper != null ? wrapper.getQuery() : null;
    }
1238863
public function getForm(string $name = '', array $form = null)
    {
        if (!isset($this->_forms[$name])) {
            $this->_forms[$name] = $this->createFormObject($name, $form);
        }

        return $this->_forms[$name];
    }
186367
public static UploadFile getFileParam(String name){
		MultipartFormData multipart = getMultipart();
		if(null != multipart){
			return multipart.getFile(name);
		}
		return null;
	}
257376
public static BoxLegalHoldPolicy.Info create(BoxAPIConnection api, String name) {
        return createOngoing(api, name, null);
    }
1204692
def find_level(name = nil)
      @levels ||= {}
      level = name.nil? ? load_default_request_level : @levels[name.to_sym]
      level = superclass.find_level(name) and @levels[name.to_sym] = level if level.nil? && superclass.present?
      raise NoSuchRequestLevelError.new(name, self.name) if level.nil?
      level
    end
1166554
@Api
	public void getValue(String name, UrlAttribute attribute) {
		attribute.setValue((String) formWidget.getItem(name).getValue());
	}
1338012
public GitlabProjectMember addProjectMember(GitlabProject project, GitlabUser user, GitlabAccessLevel accessLevel) throws IOException {
        return addProjectMember(project.getId(), user.getId(), accessLevel);
    }
859232
public URLTemplate getURLTemplate( String name )
    {
        URLTemplate urlTemplate = null;

        if ( _servletContext != null )
        {
            URLTemplatesFactory urlTemplatesFactory = URLTemplatesFactory.getURLTemplatesFactory( _servletContext );
            if ( urlTemplatesFactory != null )
            {
                urlTemplate = urlTemplatesFactory.getURLTemplate( name );
            }
        }

        return urlTemplate;
    }
964320
protected final Accessor getAccessor (String name)
    {
        int low = 0, high = _accessors.length-1;
        while (low <= high) {
            int mid = (low + high) >> 1;
            Accessor midVal = _accessors[mid];
            int cmp = midVal.name.compareTo(name);
            if (cmp < 0) {
                low = mid + 1;
            } else if (cmp > 0) {
                high = mid - 1;
            } else {
                return midVal; // key found
            }
        }
        throw new IllegalArgumentException("No such field " + getClass().getName() + "." + name);
    }
1233009
public static AddonId from(String name, String version)
   {
      return from(name, version, null);
   }
823336
@Override
    public String getAttribute(final String name) {
        String value;
        value = hash.get(name);
        return value;
    }
1341837
public KieServerHttpRequest basicAuthorization(final String name, final String password ) {
        return header(AUTHORIZATION, "Basic " + org.kie.server.common.rest.Base64Util.encode(name + ':' + password));
    }