All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.juneau.rest.httppart.RequestQueryParam Maven / Gradle / Ivy

// ***************************************************************************************************************************
// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.  See the NOTICE file *
// * distributed with this work for additional information regarding copyright ownership.  The ASF licenses this file        *
// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance            *
// * with the License.  You may obtain a copy of the License at                                                              *
// *                                                                                                                         *
// *  http://www.apache.org/licenses/LICENSE-2.0                                                                             *
// *                                                                                                                         *
// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an  *
// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the License for the        *
// * specific language governing permissions and limitations under the License.                                              *
// ***************************************************************************************************************************
package org.apache.juneau.rest.httppart;

import static org.apache.juneau.httppart.HttpPartType.*;

import java.lang.reflect.*;
import java.util.regex.*;

import org.apache.http.*;
import org.apache.juneau.*;
import org.apache.juneau.httppart.*;
import org.apache.juneau.rest.*;

/**
 * Represents a single query parameter on an HTTP request.
 *
 * 

* Typically accessed through the {@link RequestQueryParams} class. * *

* Some important methods on this class are: *

*
    *
  • {@link RequestQueryParam} *
      *
    • Methods for retrieving simple string values: *
        *
      • {@link RequestQueryParam#asString() asString()} *
      • {@link RequestQueryParam#get() get()} *
      • {@link RequestQueryParam#isPresent() isPresent()} *
      • {@link RequestQueryParam#orElse(String) orElse(String)} *
      *
    • Methods for retrieving as other common types: *
        *
      • {@link RequestQueryParam#asBoolean() asBoolean()} *
      • {@link RequestQueryParam#asBooleanPart() asBooleanPart()} *
      • {@link RequestQueryParam#asCsvArray() asCsvArray()} *
      • {@link RequestQueryParam#asCsvArrayPart() asCsvArrayPart()} *
      • {@link RequestQueryParam#asDate() asDate()} *
      • {@link RequestQueryParam#asDatePart() asDatePart()} *
      • {@link RequestQueryParam#asInteger() asInteger()} *
      • {@link RequestQueryParam#asIntegerPart() asIntegerPart()} *
      • {@link RequestQueryParam#asLong() asLong()} *
      • {@link RequestQueryParam#asLongPart() asLongPart()} *
      • {@link RequestQueryParam#asMatcher(Pattern) asMatcher(Pattern)} *
      • {@link RequestQueryParam#asMatcher(String) asMatcher(String)} *
      • {@link RequestQueryParam#asMatcher(String,int) asMatcher(String,int)} *
      • {@link RequestQueryParam#asStringPart() asStringPart()} *
      • {@link RequestQueryParam#asUriPart() asUriPart()} *
      *
    • Methods for retrieving as custom types: *
        *
      • {@link RequestQueryParam#as(Class) as(Class)} *
      • {@link RequestQueryParam#as(ClassMeta) as(ClassMeta)} *
      • {@link RequestQueryParam#as(Type,Type...) as(Type,Type...)} *
      • {@link RequestQueryParam#parser(HttpPartParserSession) parser(HttpPartParserSession)} *
      • {@link RequestQueryParam#schema(HttpPartSchema) schema(HttpPartSchema)} *
      *
    • Methods for performing assertion checks: *
        *
      • {@link RequestQueryParam#assertCsvArray() assertCsvArray()} *
      • {@link RequestQueryParam#assertDate() assertDate()} *
      • {@link RequestQueryParam#assertInteger() assertInteger()} *
      • {@link RequestQueryParam#assertLong() assertLong()} *
      • {@link RequestQueryParam#assertString() assertString()} *
      *
    • Other methods: *
        *
      • {@link RequestQueryParam#getName() getName()} *
      • {@link RequestQueryParam#getValue() getValue()} *
      *
    * *
    See Also:
    */ public class RequestQueryParam extends RequestHttpPart implements NameValuePair { /** * Constructor. * * @param request The request object. * @param name The parameter name. * @param value The parameter value. */ public RequestQueryParam(RestRequest request, String name, String value) { super(QUERY, request, name, value); } // @Override /* GENERATED */ public RequestQueryParam schema(HttpPartSchema value) { super.schema(value); return this; } @Override /* GENERATED */ public RequestQueryParam parser(HttpPartParserSession value) { super.parser(value); return this; } // }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy