Class HttpCall<T>

  • Type Parameters:
    T - the data type of the response
    All Implemented Interfaces:
    Request<T>

    public class HttpCall<T>
    extends java.lang.Object
    implements Request<T>
    Http call can be executed by this class
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T execute()
      Executes synchronously
      void execute​(Callback<T> callback)
      Executes asynchronously
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • execute

        public T execute()
                  throws java.io.IOException
        Description copied from interface: Request
        Executes synchronously
        Specified by:
        execute in interface Request<T>
        Returns:
        Response
        Throws:
        java.io.IOException - an exception if there exist errors
      • execute

        public void execute​(Callback<T> callback)
        Description copied from interface: Request
        Executes asynchronously
        Specified by:
        execute in interface Request<T>
        Parameters:
        callback - the callback is invoked when the execution is completed