-
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.
-
-
Constructor Summary
Constructors Constructor Description BranchRemoteInterfaceUrlConnection(Branch branch)
-
Method Summary
Modifier and Type Method Description BranchRemoteInterface.BranchResponsedoRestfulGet(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.BranchResponsedoRestfulPost(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. -
-
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 pointpayload- The JSon object payload for the post request
-
-
-
-