parameters extractor which returns already URL-encoded key-value pairs
Methods
encode(RequestT request)
publicStringencode(RequestTrequest)
Encodes the request in a form of a URL parameters string, for example
"param1=value+1¶m2=value2%26". This method may optionally validate that the name-value
paris are URL-encoded. It will URL encode the key and values if there are any non-allowed
characters. It will then concatenate the valid individual name-value pairs in a valid URL
parameters string.
Note: This will url-encode the key and values during concatenation. Double url-encoding may
occur if the input has values that are already url-encoded.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-03 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the \u003ccode\u003eRequestUrlParamsEncoder\u003c/code\u003e class in the Google Cloud API Client Library for Java, with the latest version being 2.63.1.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRequestUrlParamsEncoder\u003c/code\u003e class is responsible for encoding URL parameters into a single string for a request, implementing the \u003ccode\u003eRequestParamsEncoder\u003c/code\u003e interface.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits methods from the \u003ccode\u003eObject\u003c/code\u003e class, such as \u003ccode\u003eclone()\u003c/code\u003e, \u003ccode\u003eequals()\u003c/code\u003e, and \u003ccode\u003ehashCode()\u003c/code\u003e, allowing for standard object operations.\u003c/p\u003e\n"],["\u003cp\u003eThe constructor \u003ccode\u003eRequestUrlParamsEncoder(RequestParamsExtractor<RequestT> paramsExtractor)\u003c/code\u003e creates an instance of the encoder, utilizing a \u003ccode\u003eRequestParamsExtractor\u003c/code\u003e to retrieve pre-encoded key-value pairs.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eencode(RequestT request)\u003c/code\u003e method takes a request object, extracts the relevant parameters, and returns a URL parameter string, automatically encoding any characters that are not allowed in a URL, with an important note warning about the potential for double URL encoding if the input has values that are already url-encoded.\u003c/p\u003e\n"]]],[],null,[]]