Lines Matching defs:parameter

47  * unregistered parameter sanitizer does not allow any special characters,
65 * A simple tuple that holds parameter-value pairs.
70 * Construct a parameter-value tuple.
71 * @param parameter an unencoded parameter
74 public ParameterValuePair(String parameter,
76 mParameter = parameter;
80 * The unencoded parameter
411 * unregistered parameter values.
413 * <b>Note:</b> The default unregistered parameter value sanitizer is
418 * parameter values.
426 * parameter values.
428 * parameter values.
558 * <li>the last instance of a repeated parameter is preferred.
581 * <li>the last instance of a repeated parameter is preferred.
610 * Parse a query. A query string is any number of parameter-value clauses
611 * separated by any non-zero number of ampersands. A parameter-value clause
612 * is a parameter followed by an equal sign, followed by a value. If the
647 * An array list of all of the parameter value pairs in the sanitized
657 * Check if a parameter exists in the current sanitized query.
658 * @param parameter the unencoded name of a parameter.
661 public boolean hasParameter(String parameter) {
662 return mEntries.containsKey(parameter);
666 * Get the value for a parameter in the current sanitized query.
667 * Returns null if the parameter does not
669 * @param parameter the unencoded name of a parameter.
670 * @return the sanitized unencoded value of the parameter,
671 * or null if the parameter does not exist.
673 public String getValue(String parameter) {
674 return mEntries.get(parameter);
678 * Register a value sanitizer for a particular parameter. Can also be used
681 * Registering a non-null value sanitizer for a particular parameter
682 * makes that parameter a registered parameter.
683 * @param parameter an unencoded parameter name
685 * parameter. May be null in order to unregister that parameter.
688 public void registerParameter(String parameter,
691 mSanitizers.remove(parameter);
693 mSanitizers.put(parameter, valueSanitizer);
698 * @param parameters An array of unencoded parameter names.
734 * Set whether or not the first occurrence of a repeated parameter is
735 * preferred. True means the first repeated parameter is preferred.
736 * False means that the last repeated parameter is preferred.
738 * The preferred parameter is the one that is returned when getParameter
743 * parameter is preferred.
752 * Get whether or not the first occurrence of a repeated parameter is
754 * @return true if the first occurrence of a repeated parameter is
763 * Parse an escaped parameter-value pair. The default implementation
764 * unescapes both the parameter and the value, then looks up the
765 * effective value sanitizer for the parameter and uses it to sanitize
767 * the unescaped parameter and the sanitized unescaped value.
768 * @param parameter an escaped parameter
771 protected void parseEntry(String parameter, String value) {
772 String unescapedParameter = unescape(parameter);
785 * Record a sanitized parameter-value pair. Override if you want to
787 * @param parameter an unescaped parameter
790 protected void addSanitizedEntry(String parameter, String value) {
792 new ParameterValuePair(parameter, value));
794 if (mEntries.containsKey(parameter)) {
798 mEntries.put(parameter, value);
802 * Get the value sanitizer for a parameter. Returns null if there
803 * is no value sanitizer registered for the parameter.
804 * @param parameter the unescaped parameter
805 * @return the currently registered value sanitizer for this parameter.
808 public ValueSanitizer getValueSanitizer(String parameter) {
809 return mSanitizers.get(parameter);
813 * Get the effective value sanitizer for a parameter. Like getValueSanitizer,
814 * except if there is no value sanitizer registered for a parameter, and
817 * @param parameter an unescaped parameter
818 * @return the effective value sanitizer for a parameter.
820 public ValueSanitizer getEffectiveValueSanitizer(String parameter) {
821 ValueSanitizer sanitizer = getValueSanitizer(parameter);