|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codegist.crest.Params
public final class Params
Method Summary | |
---|---|
static String |
encodeParams(Map<String,Object> params,
String encoding)
Encode the given parameter map into a string for HTTP body content |
static boolean |
isForUpload(Collection<Object> os)
Returns true if any of the given collection of object is considered for upload (File or InputStream) |
static boolean |
isForUpload(Map<String,Object> params)
Returns true if any of the given params of object is considered for upload (File or InputStream) |
static boolean |
isForUpload(Object o)
Returns true if the given object is considered for upload (File or InputStream) |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean isForUpload(Collection<Object> os)
os
- Collection of objects
public static boolean isForUpload(Map<String,Object> params)
params
- Map of objects
public static boolean isForUpload(Object o)
o
- Object to test
public static String encodeParams(Map<String,Object> params, String encoding) throws UnsupportedEncodingException
params
- Parameter mapencoding
- Encoding
UnsupportedEncodingException
- Encoding is not supported
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |