Class OkHttpRequestor.AsyncCallback

  • All Implemented Interfaces:
    com.squareup.okhttp.Callback
    Enclosing class:
    OkHttpRequestor

    public static final class OkHttpRequestor.AsyncCallback
    extends java.lang.Object
    implements com.squareup.okhttp.Callback
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.squareup.okhttp.Response getResponse()  
      void onFailure​(com.squareup.okhttp.Request request, java.io.IOException ex)  
      void onResponse​(com.squareup.okhttp.Response response)  
      • Methods inherited from class java.lang.Object

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

      • getResponse

        public com.squareup.okhttp.Response getResponse()
                                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • onFailure

        public void onFailure​(com.squareup.okhttp.Request request,
                              java.io.IOException ex)
        Specified by:
        onFailure in interface com.squareup.okhttp.Callback
      • onResponse

        public void onResponse​(com.squareup.okhttp.Response response)
                        throws java.io.IOException
        Specified by:
        onResponse in interface com.squareup.okhttp.Callback
        Throws:
        java.io.IOException