Package 

Class BranchRemoteInterfaceUrlConnection


  • 
    public class BranchRemoteInterfaceUrlConnection
    extends BranchRemoteInterface
                        

    Created by sojanpr on 5/31/17. Class for implementing BranchRemoteInterface using the HttpUrlConnection. This class provides implementation for Branch RESTful operations using HTTP URL Connection.

    • Method Summary

      Modifier and Type Method Description
      BranchRemoteInterface.BranchResponse doRestfulGet(String url) Abstract method to implement the network layer to do a RESTful GET to Branch servers.This method is called whenever Branch SDK want to make a GET request to Branch servers.Please note that this methods always called on the background thread and no need for thread switching for the network operations.
      BranchRemoteInterface.BranchResponse doRestfulPost(String url, JSONObject payload) Abstract method to implement the network layer to do a RESTful GET to Branch servers.This method is called whenever Branch SDK want to make a GET request to Branch servers.Please note that this methods always called on the background thread and no need for thread switching to execute network operations.
      • Methods inherited from class io.branch.referral.network.BranchRemoteInterface

        make_restful_get, make_restful_post
      • Methods inherited from class java.lang.Object

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

      • BranchRemoteInterfaceUrlConnection

        BranchRemoteInterfaceUrlConnection(Branch branch)
    • Method Detail

      • doRestfulGet

         BranchRemoteInterface.BranchResponse doRestfulGet(String url)

        Abstract method to implement the network layer to do a RESTful GET to Branch servers.This method is called whenever Branch SDK want to make a GET request to Branch servers.Please note that this methods always called on the background thread and no need for thread switching for the network operations.

        Parameters:
        url - The url end point
      • doRestfulPost

         BranchRemoteInterface.BranchResponse doRestfulPost(String url, JSONObject payload)

        Abstract method to implement the network layer to do a RESTful GET to Branch servers.This method is called whenever Branch SDK want to make a GET request to Branch servers.Please note that this methods always called on the background thread and no need for thread switching to execute network operations.

        Parameters:
        url - The url end point
        payload - The JSon object payload for the post request