Package 

Interface NetworkSession


  • 
    public interface NetworkSession
    
                        

    This interface controls all network access. A default implementation will be included within the library, but consumers can also choose to implement it to leverage their own networking code (e.g. OkHttp).

    • Method Summary

      Modifier and Type Method Description
      abstract NetworkResponse loadData(URL url, NetworkRequest request) Requests the given URL with the details provided in the request.
      • Methods inherited from class java.lang.Object

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

      • loadData

         abstract NetworkResponse loadData(URL url, NetworkRequest request)

        Requests the given URL with the details provided in the request.

        Parameters:
        url - The URL endpoint associated with the request.
        request - The details of the required request.