|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CRest
CRest rest-bounded instances behave as follow :
- methods with a java.io.InputStream or java.io.Reader return type are always considered as expecting the raw server response. Server InputStream/Reader is then return. It is of the responsability of the client to properly call close() on the given Stream in order to free network resources.
- otherwise response is auto-marshalled to the method's return type.
- method's arguments are serialized as follow for the normal default case :
. Objects and primitives types are being serialized using the String.valueOf() method
. Primitive Arrays/Object Arrays/Collections are serialized by calling String.valueOf() for each item and joining the result in a comma separated string.
. java.util.Date are serialized to the ISO-8601 date format
build(Class)
Method Summary | ||
---|---|---|
|
build(Class<T> interfaze)
Build rest-bounded instances of the given interface |
Method Detail |
---|
<T> T build(Class<T> interfaze) throws CRestException
T
- Interface class to get the instance frominterfaze
- Interface class to get the instance from
CRestException
- if anything goes wrongResponseHandler
,
DefaultResponseHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |