Package org.apache.juneau.rest.httppart
Class RequestQueryParam
java.lang.Object
org.apache.juneau.rest.httppart.RequestHttpPart
org.apache.juneau.rest.httppart.RequestQueryParam
- All Implemented Interfaces:
NameValuePair
Represents a single query parameter on an HTTP request.
Typically accessed through the RequestQueryParams
class.
Some important methods on this class are:
RequestQueryParam
- Methods for retrieving simple string values:
- Methods for retrieving as other common types:
- Methods for retrieving as custom types:
- Methods for performing assertion checks:
- Other methods:
See Also:
-
Constructor Summary
ConstructorDescriptionRequestQueryParam
(RestRequest request, String name, String value) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionparser
(HttpPartParserSession value) Specifies the part parser to use for this part.schema
(HttpPartSchema value) Specifies the part schema for this part.Methods inherited from class org.apache.juneau.rest.httppart.RequestHttpPart
as, as, as, asBoolean, asBooleanPart, asCsvArray, asCsvArrayPart, asDate, asDatePart, asInteger, asIntegerPart, asLong, asLongPart, asMatcher, asMatcher, asMatcher, assertCsvArray, assertDate, assertInteger, assertLong, assertString, asString, asStringPart, asUriPart, def, get, getName, getRequest, getValue, isPresent, orElse, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.http.NameValuePair
getName, getValue
-
Constructor Details
-
RequestQueryParam
Constructor.- Parameters:
request
- The request object.name
- The parameter name.value
- The parameter value.
-
-
Method Details
-
schema
Description copied from class:RequestHttpPart
Specifies the part schema for this part.Used by schema-based part parsers such as
OpenApiParser
.- Overrides:
schema
in classRequestHttpPart
- Parameters:
value
- The part schema.- Returns:
- This object.
-
parser
Description copied from class:RequestHttpPart
Specifies the part parser to use for this part.If not specified, uses the part parser defined on the client by calling
RestContext.Builder.partParser()
.- Overrides:
parser
in classRequestHttpPart
- Parameters:
value
- The new part parser to use for this part.
Ifnull ,SimplePartParser.DEFAULT
will be used.- Returns:
- This object.
-