Android Architect's road network layer architecture design and actual combat

Source: Internet
Author: User

 


1th. Pre-Class notice
describe how to learn, the class suitable for the crowd, how to digest

2nd Chapter Analysis of mainstream network framework
Common Network Framework introduction, analysis Volley, android-async-http, afinal framework, Xutils, Okhttp, retrofit, excellent a bit of a disadvantage, the church choose a framework of what is the standard?

3rd Chapter HTTP Protocol
This paper introduces http1.0, 1.1 2.0 version and Spdy protocol, the application scenario of the request header, the classification of the response header, the cache related fields and so on.

4th Chapter OKHTTP3 Detailed
explain the principle of using OKHTTP3 to send asynchronous requests for synchronous requests get/post/upload files/support caching, HTTP protocol caching implementations

5th Chapter Multi-threaded download function design
This chapter explains the framework building, the download framework is a few key issues to solve, the download related field examples, the framework of the core code, multi-threaded use principle.

6th Chapter Multi-threaded download function optimization
This chapter mainly optimizes the multi-threaded download function, adds the queue mechanism, adds the database support, the progress update, the multithreading optimization, the singleton, the builder pattern actual application explanation, the architecture design some views.

The 7th Chapter client Design
This chapter begins by encapsulating the header of the framework, encapsulating the Status code definition request, encapsulating the response, and actually applying the abstract factory pattern and writing the functionality of the test case Test core architecture

8th Chapter Framework Expansion Design
This chapter begins to expand the support of native HttpURLConnection to realize network request, increase the asynchronous processing and queue mechanism of request, increase the conversion of automatic type and analyze the principle of network framework design and implementation, so as to make it easy for us to meet the specific needs.

9th Chapter Reconstruction of Network framework
This chapter addresses legacy issues in the implementation process, analyzes framework principles, reconstructs network request codes, re-encapsulates reponse and request, niceclient, and so on, making our framework easier to use.

the 10th chapter of Network framework annotation function design and implementation
This chapter explains dynamic agent and annotation processing, and defines related annotations such as GET, POST, Query, QueryMap, Path, Filed, Filedmap, and also enables our network framework to support annotation functionality. Support for sending JSON to server

the 11th chapter error code and the re-connected function design and implementation
This chapter implements the reconnection function with annotations to support the processing of error codes.

12th. Design and implementation of HTTPS function
This chapter will explain the principle of HTTPS, common encryption knowledge, focus on the one-way authentication and two-way authentication, through a practical example of one-way authentication to the client and the server is how to handle the HTTPS function

13th chapter Httpdns function design and realization
This chapter describes common DNS hijacking cases, including DNS hijacking solutions and problems encountered during the use of Httpdns, and the network framework layer adds Httpdns functionality to support native HttpURLConnection and OKHTTP3, Customizable replacement Httpdns functionality

The 14th Chapter supports Rxjava and curriculum summary
This chapter will take you through the Rxjava function for our framework and enable our framework to support responsive programming. This chapter summarizes the framework, I hope we all once again to comb and summarize, the lessons learned to become their own things, finally wish you learn something, learn something!


: Baidu Network Disk download


Android Architect's road network layer architecture design and actual combat

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.