I want to convert from array into get-parameters of URL.
I know HTTPClient of apache, but it’s too large for applet.
is there simple solution?
I have a List(or array) in my applet, and I want to write URL-parameters for HttpRequest.
ParameterFormatter is good, but the jar file is too large for applet.
edit:
I found there is Java Optimizer/Shrinker/Reducer tool allows you to optimize jar. eg proguard
You could simply develop one yourself as you only need to join them together to a query string. I’m doing some assumptions on what you want (such as the key for each variable starts with
var) but here goes:There are of course other naïve implementations and optimizations to the code that you can do. There also might be some Java class that does this already, but it seems that you have to build it on your own or use the Apache Commons 3rd party library (which I understand you can’t).