Package org.apache.juneau.rest.httppart
Class RequestPathParam
java.lang.Object
org.apache.juneau.rest.httppart.RequestHttpPart
org.apache.juneau.rest.httppart.RequestPathParam
- All Implemented Interfaces:
NameValuePair
Represents a single path parameter on an HTTP request.
Typically accessed through the RequestPathParams class.
Some important methods on this class are:
RequestPathParam- 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
ConstructorsConstructorDescriptionRequestPathParam(RestRequest request, String name, String value) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionSets a default value for this part.parser(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, get, getName, getRequest, getValue, isPresent, orElse, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.http.NameValuePair
getName, getValue
-
Constructor Details
-
RequestPathParam
Constructor.- Parameters:
request- The request object.name- The parameter name.value- The parameter value.
-
-
Method Details
-
def
Description copied from class:RequestHttpPartSets a default value for this part.- Overrides:
defin classRequestHttpPart- Parameters:
def- The default value.- Returns:
- This object.
-
parser
Description copied from class:RequestHttpPartSpecifies 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:
parserin classRequestHttpPart- Parameters:
value- The new part parser to use for this part.
Ifnull ,SimplePartParser.DEFAULTwill be used.- Returns:
- This object.
-
schema
Description copied from class:RequestHttpPartSpecifies the part schema for this part.Used by schema-based part parsers such as
OpenApiParser.- Overrides:
schemain classRequestHttpPart- Parameters:
value- The part schema.- Returns:
- This object.
-