-
public abstract class WebserviceAbstract webservice class designed for any WS call
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classWebservice.WebserviceErrorError thrown by Webservice on error
-
Method Summary
Modifier and Type Method Description Array<byte>executeRequest()Execute the WS call synchronously and return the response static booleanisResponseValid(int statusCode)Tell if an http response code is valid or not static Webservice.WebserviceError.ReasongetResponseErrorCause(int statusCode)Get error reason depending on the status code static Stringencode(String part)URLEncode the part static StringformatDate(Date date)Return the date formatted with RFC 3339 format -
-
Method Detail
-
executeRequest
Array<byte> executeRequest()
Execute the WS call synchronously and return the response
-
isResponseValid
static boolean isResponseValid(int statusCode)
Tell if an http response code is valid or not
-
getResponseErrorCause
static Webservice.WebserviceError.Reason getResponseErrorCause(int statusCode)
Get error reason depending on the status code
-
formatDate
static String formatDate(Date date)
Return the date formatted with RFC 3339 format
-
-
-
-