Design and Implementation of Restful and Json Based Open Apis for Super Color-Ring-Back-Tone Platform

Author
LuPeiZuo
Advisor
LiZuo
School
Beijing University of Posts and Telecommunications
Major
Computer technology
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2013
Downloads
17
Citations
0

Request the full text

Abstract

Nowadays, software architectural style in Web world has changed too much imperceptibly. There are two features belong to software architectural style in Web world, firstly it comes the distributed computing, secondly it is the loose coupling. Along with the rapid developing of Internet, especially the rising of concept of Web2.0, the conventional distributed computing architectual styles such as DO(Distributed Object)、Web Services which have been developing for over10years, run across the bottle neck, the industry needs a completely new architectural style which is, at the same time, more loose coupled to supply a gap exited in the traditional ones for a long time, and to meets today’s Internet’s need.In2000, Roy.Thomas.Fielding gained his Ph.D by posting a paper which caused a sensation in the industry. In that paper he advocated to use a new、light-weighted、more loose coupled architectural style to do the information exchange through the Web. REST, which stands for REpresentational state transfer, came into people’s eyes, and it really has been growed a lot over these years.Super color-ring-back-tone (known as Chao Ji Xuan Ling in Chinese, it will be abbreviated to super-crbt in the rest of this paper) is a new value-added product proposed by China Unicom in2010which is based on CRBT(Color Ring Back Tone). It plays a additional7seconds ring ahead of normal CRBT ring, and meets the requirements of users shch as variety and individuation. Super-crbt allows users to make a ring by writing a section of text on the super-crbt platform and set it as super-crbt ring. Besides, super-crbt provides lots of setting condition, for instance, date ring、period ring, etc. These conditions could satisfy users’ requirements, and because of user could make his ring by himself, it makes users involve in the producing of CRBT rings, this helped to rise the ratio of people who changed his rings in total users and the acceptability of super-crbt itself. Super-crbt adopted Center-Provinces two-tier architecture and adopted conventional Web Services or DO style to implement the ineraction between modules. Along with the expansion of the scale of the super-crbt platform, shortcomings exist in many interfaces is more and more exposed. Super-crbt platform needs a completely new architectural style to finish the technical bottle neck.This article discusses center on the transfer of super-crbt platform interfaces from Web Services to REST. The first chapter introduces the concept of super-crbt、the attributes of system architecture and the implementation of interfaces. The second chapter gives a brief review about architectural style in Web, leads to REST style. The third one introduces super-crbt system architectural style and anaylizes interfaces’s implementation, after comparing features between interfaces based on SOAP and REST, proposes to replace interfaces currently exist on Super-crbt platform with REST interfaces. The fourth chapter is the very kernel one, which illustrates the design and implementation of RESTful and JSON based Open APIs on super-crbt platform in detail. Firstly, there is a introduction to the recognization of resources on the platform. Secondly, based on first step, it comes the design of URI and representation, and the interaction between interfaces and design of modules. Finally, implementation carried out on the base of Jersey framework. The fifth chapter discusses the users’ identification on super-crbt platform from the security view, briefly discusses the flow of verification and authorization based on OAuth、the implementation and the deployment. The last chapter is a summary and outlook about REST’s application in post and telecommunication industry.

Table of contents

Summary 4-6 ABSTRACT 6-9 directory 9-12 introduction 12-13 first Chapter Super CRBT system Overview 13-21 1.1 Super CRBT business Profile 13-14 1.2 Super CRBT system architecture 14-16 <br / > 1.3 interface calls introduction 16 1.4 style and technology 16-20 1.4.1 MVC 17 1.4.2 hierarchy 17-18 1.4.3 DO (Distributed Object) 18 1.4.4 Web Services 18-20 1.5 Summary 20 -21 chapter Web software architecture and REST architectural style introduced 21-29 2.1 Web software architecture style brief review 21-22 2.1.1 software architecture 21 2.1.2 Web-oriented architecture needs 21-22 2.2 Web-oriented software architecture evolution introduced 22-25 2.2. a distributed object (Distributed Object, DO) 22-23 2.2.2 Web Services 23-24 2.2.3 REST 24-25 2.3 REST architectural style 25-27 Status 2.4 REST application 27-28 2.5 Summary 28-29 Chapter III Super CRBT existing REST Interface analysis and evolution 29-39 3.1 Super CRBT existing platform architecture 29-30 3.2 Super CRBT existing interface analysis 30-34 3.2.1 RMI and SOAP 30-34 3.2.1.1 super- hyun bell RMI 30-32 3.2.1.2 Super CRBT the SOAP horizontal contrast 32-34 3.3 architecture style 34-36 3.3.1 distributed 34 3.3.2 scalability 34 3.3.3 unity 34-35 3.3.4 performance 35-36 3.4 using REST transformation of existing interfaces 36-38 3.5 Summary 38-39 Chapter IV design and Implementation of REST and JSON OpenAPI based 39-68 4.1 resource Oriented Architecture -ROA 39-49 4.1.1 identify resources 39-42 4.1.1.1 monomer resources 40-41 4.1.1.2 collections resources 41 4.1.1.3 child resource 41-42 4.1.1.4 CRS resource 42 4.1.2 design URI 42 -46 4.1.2.1 hierarchy 42-45 4.1.2.2 URI template 45-46 4.1.2.3 parameters and paging 46 4.1.3 design representation 46-49 4.1.3.1 presentation format 46-47 4.1.3.2 design JSON representation 47-48 4.1.3.3 design paged presentation 48-49 4.2 interactive process design 49-52 4.2.1 resource state transition analysis 49-50 <br / > 4.2.2 overall design 50-51 4.2.3 module detailed design 51-52 4.2.3.1 presentation layer application 51-52 4.2.3.2 REST interface module 52 4.3 JAX-RS implementations based 52-64 4.3.1 JAX-RS specification 52-53 4.3.2 using Jersey achieve 53-63 4.3.2.1 server -side implementation 55-63 4.3.2.1.1 class structure 58 - 59 4.3.2.1.2 resource class implements 59-61 4.3.2.1.3 express class implements 61-62 4.3.2.1.4 activity class achieve 62-63 4.3.2.2 client implementation 63 4.3.3 integration and deployment 63-64 4.4 caching mechanism 64-67 4.4.1 cache type 65-66 4.4.2 strategies and deployment 66-67 4.5 Summary 67 -68 Chapter safe design 68-72 5.1 Overview 68-69 5.1.1 authentication 68-69 <br / > 5.1.1.1 Basic authentication 68 5.1.1.2 Digest authentication 68-69 5.1.2 identity 69 5.2 OAuth 69-71 5.3 Summary 71-72 Chapter VI test 72-78 6.1 testing purposes 72 <br / > 6.2 test platform 72-73 6.2.1 hardware platform 72-73 6.2.2 software platform 73 6.3 functional Test 73-75 6.3.1 user overhead door 73-74 6.3.2 user Login 74 6.3.3 user Forgot Password 74-75 6.3.4 users through the portal to set tone 75 6.4 performance test 75-77 6.4.1 single Interface Performance test 75-76 6.4.2 process performance test 76-77 6.5 summary 77-78 Chapter VII summary and Outlook . 78-80 7.1 summarizes 78-79 7.2 Prospects . 79-80 References 80-82 Thanks 82

Related dissertations

  1. Research and Application of building Web services based on the REST style
  2. Research on Two-dimensional Harcode Encoding and Decoding Based on Resttul Web Services
    DaiXianGuo ·Hubei University of Technology ·2012 ·Master's thesis
  3. Design and Implementation of the Wireless City Data Service Based on Rest
  4. The Integration Research of ERP and E-commerce System Based on Restful ROA Strcture
    FanZiKang ·Sun Yat-sen University ·2013 ·Master's thesis
  5. Design and Implementation of Land Resource Management System Based on REST
  6. REST-based ATOM Publishing Protocol and its application
    ChenLiang ·Southwest Jiaotong University ·2008 ·Master's thesis
  7. REST-based Web services architecture style of research and design
    YangBo ·Jiangsu University ·2010 ·Master's thesis
  8. Restful Implementation and Research of the Open Course of Computer Networks System
  9. Research and Implementation of Web Service Based on REST Architecture
  10. REST -based applications under ROR WEB2.0 Framework
    ZuoWenTong ·Capital University of Economics ·2010 ·Master's thesis
  11. Resourse Oriented Architecture Application Research Based on JAX-RS
    XieYuKai ·Zhejiang Sci-Tech University ·2011 ·Master's thesis
  12. The calculation model of image cognition of non classical receptive field mechanism based on
    WangXiaoMei ·Fudan University ·2012 ·Doctoral dissertation
  13. Colleges’ Information Integration and Application Based on the Framework of OSGI and REST
    WangZhaoPing ·Hunan University ·2013 ·Master's thesis
  14. Design and Research of Inspection System of Pipe Network
  15. Design and implementation of SNS platform based on MongoDB
  16. Design and implementation of performance assessment system of government based on SOA
    HanShengChao ·Northwestern University ·2013 ·Master's thesis
  17. Design and Implementation of Distribution Resource Planning System for Enterprise
    YanKun ·Xiamen University ·2013 ·Master's thesis
  18. Design and Implementation of Enrollment Management System Based on Cloud Service
    ZhangDongSheng ·Central China Normal University ·2014 ·Master's thesis
  19. Research on Web of Things Service Environment Architecture and Key Technologies
  20. Study on the design of middle school geography teaching training ability of thinking in images
    MengDan ·Shandong Normal University ·2014 ·Master's thesis