public class RequestParams
extends java.lang.Object
RequestMethod| Constructor and Description |
|---|
RequestParams() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the parameter map
|
java.lang.String |
getParams()
Return the encoded parameter of this request
ready for HttpURLConnection set on OutputStream
|
void |
put(java.util.Map<java.lang.String,java.lang.String> source)
Put multiple parameters on this parameters
|
void |
put(java.lang.String key,
java.lang.String value)
Put the parameter on this params
note if the parameter name is null or
parameter value is null it will be siently omited from this parameters
|
java.lang.String |
toString() |
public void put(java.util.Map<java.lang.String,java.lang.String> source)
source - the mapa with the parameters of this request
note a null parameter here will thrown a NullPointerExceptionpublic void put(java.lang.String key,
java.lang.String value)
key - the parameter namevalue - the parameter valuepublic void clear()
public java.lang.String getParams()
public java.lang.String toString()
toString in class java.lang.Object