Package 

Class Webservice


  • 
    public abstract class Webservice
    
                        

    Abstract webservice class designed for any WS call

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public class Webservice.WebserviceError

      Error 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 boolean isResponseValid(int statusCode) Tell if an http response code is valid or not
      static Webservice.WebserviceError.Reason getResponseErrorCause(int statusCode) Get error reason depending on the status code
      static String encode(String part) URLEncode the part
      static String formatDate(Date date) Return the date formatted with RFC 3339 format
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait